UNPKG

ng-apimock

Version:

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

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