Creates HTTP server based on your contract.
$ gem install contracto
Start server:
$ contracto start https://github.com/contracto-lab/contracto-format.git
Test server (default port is 54321):
$ curl localhost:54321/users; curl localhost:54321/users/1; curl localhost:54321/users/2
Stop server:
$ contracto stop
See documentation.
http://martinfowler.com/articles/consumerDrivenContracts.html
- Fork it ( https://github.com/[my-github-username]/contracto/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request