GraphQL API - Postman integration

Introduction

The PSO data dispatch service uses a GraphQL api for PSO data extraction. Postman has a convenient GraphQL client to help us query the API.

GraphQL APIs have “introspection queries” that provide the client with information about the data that can be retrieved. This means that with zero documentation you can explore the possible data to be retrieved.

Postman integration

  1. Create a new request

  2. Choose GraphQL

  3. Authorization

    1. Choose OAuth2

  4. On the schema tab, fire the introspection query

    It should become a “tick”

  5. Query tab has the query operations available

  6. Choose one of then

  7. Fill the query,

  8. Clic on the “Query” button to launch the request.

Postman limitation

For the getPsoRecordsquery, the “fields” argument can not be set by using the Query wizard, because List arguments are not currently supported by Postman (Postman v11.21.0 Last checked on Dec 4, 2024)

It must be set in the editable query panel:

How to do pagination?

The following query:

Give the following result:

To do pagination, set a cursor value into the after parameter, in over example, the last cursor is Mg==

So the next request will have a response which start after the last returned PSO.

The response:

Last updated