byoutline / MockServer

Simple REST server that makes simulating API easy.
Apache License 2.0
30 stars 4 forks source link

Option to fetch different data from same url, based on call order. #6

Open smdremedy opened 8 years ago

smdremedy commented 8 years ago

When I have an endpoint with some time dependent data I would like to be able to specify e.g. index in request description and get different responses each time: "requests": [ { "method": "GET", "index":0, "path": "/latest_books", "response file": "books1.json" }, { "method": "GET", "index": 1, "path": "/latest_books", "response file": "books2.json" }, { //default - every other call "method": "GET", "path": "/books", "response file": "books3.json" },