A set of example HTTP requests for the GraphQL-based Spire Vessels V2 API using the Postman API client.
In order to utilize this repo you will need two things:
- A Spire API access token.
- Postman for Mac, Windows, or Chrome.
- Clone this repo to your local machine.
- Open Postman.
- In the top left corner click "Import".
- Drag or find both the
Spire_GraphQL_Postman_Collection.postman_collection.json
&Spire.postman_environment.json
files and click open.
- Both the collection and the environment variables will be imported to Postman.
- In the top right corner, click the gear icon and select "Manage Environments".
- Click "Spire".
- Locate the access token sent to you by the Spire Customer Experience team.
- Navigate back to Postman and replace
your-api-token
with your actual credentials.
- Click "Update" and close the window.
- Click the environment drop down again and select "Spire".
- You are now ready to start making API calls!
- Try querying all Spire vessels by clicking the 01_Vessels folder > "List All Vessels" > Send.
If you encounter any issues please email Spire Customer Experience. Please also feel free to improve upon the collection and submit pull requests. :-)