Skip to content

Instantly share code, notes, and snippets.

View DHFW's full-sized avatar

Didier Hartong DHFW

View GitHub Profile
@DHFW
DHFW / GraphQL definition.json
Created December 21, 2018 21:17
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"
@DHFW
DHFW / projects.json
Created December 21, 2018 20:38
Get projects
{
"expression": "/projects",
"method": "GET",
"name": "getProjects",
"responses": {
"allProjects": {
"default": true,
"status": 200,
"delay": 200,
"file": "mocks/data/getAllProjects.json"