In this article, we will learn to use the REST Client in VS Code to test Business Central APIs. We will start by understanding what REST API is. Then, we will install and set up the REST Client extension in VS Code. We will retrieve an access token and use it in HTTP requests to consume API endpoints.
Tag Archives: REST
How to Call a Rest API GET Request in AL (Making a real-time currency exchange rates viewer)
Here you can get knowledge about how to send a GET request and read a JSON response in Business Central – AL. I made a simple real-time currency exchange rates viewing page. I used a free rest API to get currency exchange rates. Follow the below steps and AL code and try it yourself.
REST API integration in S2S (Service to Service)
The consumption of the Business Central REST APIs via OAuth2 authentication has as a prerequisite an AAD user who has been associated with a paid license of Business Central.
Service to service authentication in Business Central 18.3 – How to test (REST Client & PowerShell)
In the previous blog posts I’ve described the usage scenarios around OAuth client credentials flow for Business Central and how to set it up. The next step is to test the APIs and with OAuth authentication to see if it works properly. In this post, I want to focus on the REST Client extension for VS Code and PowerShell. In the next posts, I will also cover Postman, Insomnia and C#.
Source : Kauffmann @ Dynamics 365 Business Central
Read more…
AL support for REST Web Services
A few days ago we did a webinar about the current status of AL in Visual Studio Code. The webinar was organized by NAV Skills and together with Waldo, Erik Hougaard and Daniel Rimmelzwaan we had a full hour of content. And it really felt like we just got started. I had the pleasure to talk about the support of web services in AL language.
REST Web Services using Json and requiring authentication
Yesterday I started to develop an integration solution for bokun.io. Their API is RESTful and uses Json file formats. It also requires authentication.
Using REST/Json web services from NAV
One of my most popular blog entry is the one about Json. I have also had some questions outside this website about this topic.
This week I got a task. We need to communicate with a payment service that uses REST web services and Json file format.