1.0.5 • Published 4 years ago

sneezy-mock-api v1.0.5

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

sneezy

sneezy-mock-api

Sneezy is a mock API server for testing purposees. Run sneezy and get whatever response you want.

Install

npm install -g sneezy-mock-api

Usage

  • Start the mock server on default port 9000

    sneezy
  • Or if the port is being used by another process, use the command below to run it on a different port

    sneezy --port 9001
  • Ctrl + C to exit

API

  • http://localhost:9000/200
    Returns HTTP Status Code 200
  • http://localhost:9000/500
    Returns HTTP Status Code 500
  • http://localhost:9000/sneezy
    Returns HTTP 200 for most of the time. One in 10 times it returns 500
  • http://localhost:9000/echo
    Returns HTTP 200 with request headers and request body as response body
  • Anything else gets an HTTP 404 response
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago