{"repo":"dhuan/mock","free":true,"listed":false,"github":"https://github.com/dhuan/mock","clone":"git clone https://github.com/dhuan/mock.git","description":"Build and test APIs easily","language":"Go","stars":172,"topics":["api","api-mocking","command-line-tool","e2e-tests","golang","mock","mock-server","server","testing"],"license":"MIT","category":"cli-tools","readme_excerpt":"mock mock is an API utility - it lets you: - define API routes easily through API configuration files or through command-line parameters. - use shells scripts as response handlers. Or any other type of program can act as response handlers. - test your API - make assertions on whether an endpoint was requested. The fastest way to learn and understand mock is to see the examples page. Quick links - User guide - User guide (main branch, not released yet) - How-tos & Examples Getting started Let's test it out: mock lets you also extend other APIs (or any HTTP service, for that matter.) Suppose you want to add a new route to an existing API running at example.com : With the --base example.com option above, your API will act as proxy to that other website, and extend it with an extra route GET /some-new-route . Look up \"Base APIs\" in the docs for more details. There are many other ways of further customising your APIs with mock . Read further through the guide to learn. Installing mock is distributed as a single-file executable. Check the releases page and download the latest tarball. License mock is licensed under MIT. For more information check the LICENSE file.","default_branch":null,"files":null,"tree":[],"storefront":"/r/dhuan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dhuan/mock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}