GraphQL API call using HTTPAPI

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
teknoloz400
Posts: 2
Joined: Fri Feb 03, 2023 5:51 pm

GraphQL API call using HTTPAPI

Post by teknoloz400 »

Has anyone tried calling graphQL API using HTTPAPI tool? Just checking if its possible or not. Thank you!
bryandietz
Posts: 1
Joined: Wed Jul 28, 2021 2:40 pm

Re: GraphQL API call using HTTPAPI

Post 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
teknoloz400
Posts: 2
Joined: Fri Feb 03, 2023 5:51 pm

Re: GraphQL API call using HTTPAPI

Post by teknoloz400 »

Thank you!
Post Reply