Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/penx/openapi-mock
Start a mock server from an OpenAPI/Swagger spec file
https://github.com/penx/openapi-mock
mock nodejs openapi stub swagger
Last synced: about 2 months ago
JSON representation
Start a mock server from an OpenAPI/Swagger spec file
- Host: GitHub
- URL: https://github.com/penx/openapi-mock
- Owner: penx
- Created: 2018-02-07T18:36:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T08:45:47.000Z (over 4 years ago)
- Last Synced: 2024-10-12T16:12:30.654Z (2 months ago)
- Topics: mock, nodejs, openapi, stub, swagger
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/openapi-mock
- Size: 220 KB
- Stars: 29
- Watchers: 3
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAPI Mock
CLI utility to start a mock server based upon a Swagger/OpenAPI JSON or YAML spec file.
Uses [swagger-node-runner](https://github.com/theganyo/swagger-node-runner) and [sway](https://github.com/apigee-127/sway).
## Install
`npm install -g openapi-mock`
## Usage
```
Usage: openapi-mock [options]Options:
-V, --version output the version number
-m, --mock path to mock directory
-c, --config path to config file
-p, --port port to start the mock server on
-h, --help output usage information
```