I've been trying to figure out a way to use a static folder of pre-canned json api responses essentially as a spec for an application - something that can be used to test
I've been searching for something that can be used to serve ember pre-canned json for GET and POST requests, and preferably that thing also has a server mode that can fire requests to the live backend and validate they match what's expected in the folder of pre-canned json.
testjson/
/todo
/0 -> a file with no extension and just an example json response
/1 -> another json object for another todo
/todos -> another json file, an array consisting of todos 0 and 1
/todos/new -> responds to POST request with a new todo (doesn't necessarily have to have ID 2)
Essentially it's just a different take on fixture data - the idea is you would just keep it in it's own folder and it can be used for unit testing of the client and server side. I'm not sure it would lend itself very well to integration testing. I feel like something for testing API's already exists in some form.