UNPKG

grunt-ng-apimock

Version:

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

26 lines (23 loc) 424 B
{ "expression": "online\/rest\/some\/api\/.*\/and\/.*", "method": "POST", "name": "updateTodo", "responses": { "successful": { "status": 200, "default": true, "data": { "some": "thing" } }, "anotherSuccess": { "status": 200, "data": { "some": "thing else" } }, "internal-server-error": { "status": 500 } } }