Postman Example

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



Authentication


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


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.


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...

The information on this page is based on Link 2.12