Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Postman is a widely used application to access data from REST APIs.

This is a tutorial on how to configure Postman to access data from the More Service API using OAuth 2.0 with Password Grant.  

Documentation on the available endpoints in More Service can be found here: https://api.tmsportal.no/gapi/swagger/ui/index#!/

In short, first you fetch an access token in step 1, then you can request data from the API using your given token in Step 2.

Table of Contents

Step 1 - Fetch a Token from More Service API

  1. Open Postman and enter the following URL: https://oauth2.tmsportal.no/token

...

7. If all the parameters entered are valid, the server will respond with a JSON object containing an Access Token.


Step 2 - Fetch data from the REST API using the Access Token

8. Add the following URL to Postman: https://api.tmsportal.no/gapi/v1/[controller-action] (See a list of available actions here:  https://api.tmsportal.no/gapi/swagger/ui/index#!/)

...