Here is a guide to install RapidAPI into VSCode.
Once you have installed RapidAPI, check out this guide for creating new requests.
Once you have created a new request for the custom service, change the request type to “POST” and put the full url to the service in the address box. For this example I am using the standard service for converting a decimal number to text.
https://xxx.axcloud.dynamics.com/api/Services/SharedServices/RNumDateInWordConverterService/numeralsToAccountingCurrency
To configure a service for D365FO, click on “Auth”, and then “OAuth 2”. Click on the “Client Credentials” radio button, enter the client id and client secret from the web application in Azure AD.
The access token url is https://sts.windows.net/xxxxxxx/oauth2/v2.0/token where xxxxxxx is the tenant that the D365FO environment belongs to.
The scope is the url of the D365FO environment followed by “/.default”
The Token Prefix is “Bearer”
When you press the “Get Access Token” button, assuming the configuration is correct, you will get a pop up dialog showing the access token. Click on “Use Token” to accept and use the token. Note that once the OAuth 2 settings have been entered, the Headers tab will automatically update to show that the service will use OAuth 2 to authenticate.
Switch to the “Body” tab and enter the following JSON:
{
"_sourceNumber": 12.34,
"_languageId": "en-GB"
}
Pressing send will then send the request to D365FO and show the response:
Though I have not tested it yet, it appears that the request type can implement the ODATA verbs which would be very useful for testing data entities.
So, what do you think? Is this a contender for a Postman replacement for testing integration services with D365FO?