Skip to content
Start a mock server from an OpenAPI/Swagger spec file
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example in example and default, use no-key version of petstore api spec Aug 8, 2018
lib code cleanup Aug 10, 2018
.gitignore Feature/cli (#2) Feb 8, 2018
README.md
app.js code cleanup Aug 10, 2018
app.test.js no need to timeout now we are awaiting Aug 10, 2018
cli.js use @penx/swagger-node-runner fork (#4) Feb 9, 2018
default.yaml swagger node runner fork/branch ref Feb 13, 2018
package-lock.json mocha for tests Aug 10, 2018
package.json mocha for tests Aug 10, 2018

README.md

OpenAPI Mock

CLI utility to start a mock server based upon a Swagger/OpenAPI JSON or YAML spec file.

Uses swagger-node-runner and sway.

Install

npm install -g openapi-mock

Usage

Usage: openapi-mock [options] <spec>


Options:

  -V, --version        output the version number
  -m, --mock <dir>     path to mock directory
  -c, --config <file>  path to config file
  -p, --port <n>       port to start the mock server on
  -h, --help           output usage information
You can’t perform that action at this time.