Postman Example

The following file can be imported into Postman and shows a simple request getting partners using the Password Credentials flow (ResourceOwner).


REST API - Single Document Flow.json


Authentication


After importing the file edit the collection and setup OAuth2 authentication with the following values:

image2020-9-3_14-30-24.png


Variables

The Postman collection uses variables for the URL to the Rest API and to carry a document-id through the flow.

The only variable you need to set is the URL:

{{LinkPublicApiUrl}} should be set to the base URL for the Rest API site. Eg. http://restapi.dev2.ediportal.dk/

This is done in your Environment Settings in Postman.


Setup the Client


Finally insert the following row into the tApiClients table.

image2020-6-17_14-24-40.png


Run the collection

Now you are ready to run the flow - it's important to run the tests in the correct order 01, 02, 03, etc...