1.0.0 • Published 4 years ago

mocky-cli v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

mocky-cli

CircleCI XO code style code style: prettier install size Downloads

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