UNPKG

grunt-ng-apimock

Version:

Grunt plugin that provides the ability to use scenario based api mocking of angular apps

23 lines (20 loc) 464 B
{ "expression": "online\/rest\/some\/api\/.*\/and\/.*", "method": "GET", "name": "getAllTodos", "isArray": true, "responses": { "some-meaningful-scenario-name": { "status": 200, "data": [{"x":"%%replaceMe%%"}], "headers": {"Content-type":"application/json"}, "statusText": "text" }, "another-meaningful-scenario-name": { "data": [{"a":"b"}] }, "internal-server-error": { "status":500 } } }