Hello everyone,
My apologies for my ignorance here- I am new to the Graphql world.
I am just trying to connect a resource and have been given the following basic instructions. However, I cannot for the life of me work out how to get retool to connect to it!
I've tried reading a bit on how to but a lot of the lingo doesn't make sense to me at my current knowledge base.
Any advice would be warmly appreciated.
API URL: https://XXXXX.io
To authenticate and retrieve a token, send a POST here: https://demo.api.XXX
With these credentials as body:
username: apiuser
password: ******
grant_type: password
scope: api_access
The response should return an access token to use against the graphql API and a refresh token.
Example:
query {
visit(id: Id!) {
orders {
product { pimsId, label, productType }
treatments(fromDt: Datetime!, untilDt: Datetime!) {
isCompleted
completedDt
markedAt
measurement
treatmentNotes { treatmentNote }
user { nameFirst, nameLast, username }
}
}
}
}