-
-
Save debu999/2c3db13cbb979cbcc93cf1f9fb48f94b to your computer and use it in GitHub Desktop.
How to send a GraphQL request with HTTPie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http -f https://graphqlapiurl/graphql Authorization:"Bearer accessToken" query="query { Process(id=\"test\") { id title } }" | |
http -f https://graphqlapiurl/graphql Authorization:"Bearer accessToken" query="mutation { Process(id=\"test\", title=\"testtitle\") { id title } }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Authorization is now a days common but can be removed for unprotected data. query is the default option you can add operation and variables to the call as well if required.