Created
December 21, 2018 21:17
-
-
Save DHFW/9c75064343f8cfed5c6f006093a68516 to your computer and use it in GitHub Desktop.
ng-apimock endpoint definition file for GraphQL api's
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
{ | |
"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