GraphQL API call using HTTPAPI
-
- Posts: 2
- Joined: Fri Feb 03, 2023 5:51 pm
GraphQL API call using HTTPAPI
Has anyone tried calling graphQL API using HTTPAPI tool? Just checking if its possible or not. Thank you!
-
- Posts: 1
- Joined: Wed Jul 28, 2021 2:40 pm
Re: GraphQL API call using HTTPAPI
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
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
-
- Posts: 2
- Joined: Fri Feb 03, 2023 5:51 pm
Re: GraphQL API call using HTTPAPI
Thank you!