File based Node REST API mock server
This application requires Node 6
or higher.
For Node <6
please use node-mock-server@0.22.1
For Node <4
please use node-mock-server@0.11.0
$ npm install node-mock-server --save-dev
$ node node_modules/node-mock-server/init
node-mock-server usage examples
$ node <nodeScript> --help
Usage
$ node <nodeScript> [--version] [--help] <command> [<args>]
Options
$ start mock server
$ --version print node-mock-server version
$ --help print help
$ swagger-import run a swagger import
$ validate run a validation for all mock data
$ collections print all available collections
$ collection <id> activate collection
Examples
$ node demo/index.js --version
$ node demo/index.js collections
git clone https://github.com/smollweide/node-mock-server.git
cd node-mock-server
npm install
node demo
Please see the Releases