-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ivy-lmu/readme
add docu
- Loading branch information
Showing
6 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# GraphQL Demo | ||
|
||
[![CI Build](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml) | ||
[![CI Build](https://github.com/ivy-lmu/graphql-demo/actions/workflows/ci.yml/badge.svg)](https://github.com/ivy-lmu/graphql-demo/actions/workflows/ci.yml) | ||
|
||
"YOUR SHORT DESCRIPTION GOES HERE" | ||
Demonstration of a GraphQL endpoint that allows clients to query for tasks and users. | ||
|
||
Read our [documentation](graphql-demo-product/README.md). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
# GraphQL Demo | ||
|
||
YOUR DESCRIPTION GOES HERE | ||
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](https://community.axonivy.com/d/526-graphql) community post. | ||
|
||
## Demo | ||
|
||
YOUR DEMO DESCRIPTION GOES HERE | ||
For the following demonstration of sending queries to the endpoint, the [Altair GraphQL Client](https://altairgraphql.dev) 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](assets/all-tasks.gif) | ||
![Query for tasks with state filter](assets/task-by-state.gif) | ||
![Create new user](assets/create-user.gif) | ||
|
||
## Setup | ||
|
||
YOUR SETUP DESCRIPTION GOES HERE | ||
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`. | ||
|
||
|
||
``` | ||
@variables.yaml@ | ||
``` | ||
On client side the header `X-Requested-By` must be set, e.g. to `myClient` to make valid POST requests. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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