Page 1 of 1
GraphQL API call using HTTPAPI
Posted: Fri Feb 03, 2023 5:52 pm
by teknoloz400
Has anyone tried calling graphQL API using HTTPAPI tool? Just checking if its possible or not. Thank you!
Re: GraphQL API call using HTTPAPI
Posted: Mon Feb 06, 2023 4:54 pm
by bryandietz
I never used, a quick test following the helloworld
https://graphql.org/graphql-js/running- ... ql-server/
and using the curl example, (putting the "-d" data into an IFS file):
https://graphql.org/graphql-js/graphql-clients/
HTTPAPI URL('http://my_server:4000/graphql')
REQTYPE(*POST)
UPLOAD('/home/me/post_data.json')
TYPE('application/json')
this returned the example string.
Bryan
Re: GraphQL API call using HTTPAPI
Posted: Mon Feb 06, 2023 5:38 pm
by teknoloz400
Thank you!