Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Record & Replay proxy.
$ git clone https://github.com/y2k2mt/replay && cd replay
$ make clean && make install
Recording
$ replay -r http://your-awesome-api
...
$ curl localhost:8899/endpoint
Hello # Record and return a response from the real server.(http://your-awesome-api/endpoint)
Replaying(Work as a mock server)
$ replay -R http://your-awesome-api
...
$ curl localhost:8899/endpoint
Hello # Answering from 'replay' server.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)