0.0.6 • Published 8 years ago

x-mocks v0.0.6

Weekly downloads
1
License
BSD-2-Clause
Repository
-
Last release
8 years ago

x-mocks

Dynamic multiple mock server

NPM

Build Status

Basic usage

Install the package:

npm install -g x-mocks

Create a new directory:

mkdir x-mocks-example && cd x-mocks-example

Create a JSON file (e.g. first-example.json) containing:

{  
  "uri":"/v1/example",
  "method":"get",
  "response":{  
    "status":200,
    "body":"It works!"
  }
}

Run:

x-mocks .

It's done:

Access http://localhost:3000/routes to list all registered routes,

and http://localhost:3000/v1/example to see our first example.

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago