mocky-cli
v1.0.0
Published
Mock your HTTP responses to test your REST API
Downloads
8
Maintainers
Readme
mocky-cli
Mock your HTTP responses to test your REST API
It is using the www.mocky.io
API.
Install
$ npm install -g mocky-cli
Usage
Usage:
$ mocky
Options:
--statusCode, The status code for the response (the default is 200)
--body, The body for the response (the default is empty string)
--location, The redirect location (it works if the status code is redirection status code)
Examples:
$ mocky --statusCode 201 --body "{\"message\": \"CREATED\"}"
$ mocky --statusCode 302 --location https://github.com/acestojanoski
License
MIT