Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.09 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.09 KB

GraphQL Demo

This Demo provides a GraphQL endpoint running with the Ivy Engine. The endpoint supports querying tasks and users and allows creating new users. For more information, see the GraphQL community post.

Demo

For the following demonstration of sending queries to the endpoint, the Altair GraphQL Client is used. This client is available for most common platforms. Any other client that can send POST requests can be used instead.

Query for all tasks Query for tasks with state filter Create new user

Setup

No special setup is required on Ivy Engine side. The GraphQL Resource com.axonivy.demo.graphql.resource.GraphQLResource is automatically detected and published by the Ivy Engine. Then the endpoint is accessible via http://your-ivy-engine-url/your-application/api/graphql, e.g. http://localhost:8081/designer/api/graphql.

On client side the header X-Requested-By must be set, e.g. to myClient to make valid POST requests.