docker run -d -p 80:80 cnam/mock-server
Write new mock
curl 127.0.0.1/write -XPOST -d '{"request":{"uri":"test"}, "response": {"body": {"json":"test-data"}}}'
Read mock from application
Request
curl 127.0.0.1/test
Response
{
"json": "test-data"
}