Using GraphQL
The GraphQL endpoint and Explorer
Last updated
The GraphQL endpoint and Explorer
Last updated
Having worked our way through a number of iterations of REST APIs we are now building exclusively on our federated GraphQL API.
We already use this GraphQL API to power our white-label UI applications and have found that the query flexibility given by GraphQL allows for rapid development whilst providing a well structured data model.
The API is accessible through a single endpoint:
You can take a look at some .
Because GraphQL operations consist of multiline JSON, for interactive exploration we recommend using the to make GraphQL calls. You can also use cURL or any other HTTP-speaking library.
To query GraphQL using cURL, make a POST (or GET) request with a JSON payload. The payload must contain a string that contains the GraphQL commands to run such as query
:
For details on the Authorization
header see GraphQL Authentication.