Skip to content

Instantly share code, notes, and snippets.

@DHFW
Created December 21, 2018 21:17
Show Gist options
  • Save DHFW/9c75064343f8cfed5c6f006093a68516 to your computer and use it in GitHub Desktop.
Save DHFW/9c75064343f8cfed5c6f006093a68516 to your computer and use it in GitHub Desktop.
ng-apimock endpoint definition file for GraphQL api's
{
"expression": "/graphql",
"body": "(.*)query projects(.*)",
"method": "POST",
"name": "getProjects",
"responses": {
"allProjects": {
"status": 200,
"delay": 200,
"file": "mocks/order-proces/data/getProject.json"
},
"emptyList": {
"status": 200,
"delay": 200,
"data": { "data": { "projects": [] } }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment