Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 18 days ago
JSON representation

Start a mock server from an OpenAPI/Swagger spec file

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
```