B2B Integration 10.5 | Administering and Monitoring B2B Transactions | Service Development Help | 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.
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.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.