Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Working with GraphQL Descriptors | Invoking a GraphQL Descriptor | Working with GET Request
 
Working with GET Request
For a GraphQL HTTP GET request, the GraphQL query must be specified in the query Query String. For example, if you want to execute the following GraphQL query:
{
emp {
name
}
}
You can send the request via an HTTP GET as below:
http://<HOST>:5555/graphql/graphqlDescriptor?query={emp{name}}
You can send the query variables as a JSON-encoded string in an additional query parameter called variables. If the query contains several named operations, you can use a query parameter operationName to control the execution.
Note: 
1. While executing GET request, if the request body contains some content, then Integration Server ignores it.
2. If the request does not contain query Query parameter then Integration Server returns the result of Introspection query.
3. If the request is invalid then Integration Server returns an error.