@parthar/swagger-mockapi
v1.0.0
Published
API Mocking for Swagger OpenAPI Spec
Downloads
2
Maintainers
Readme
swagger-mockapi
API Mocking for Swagger OpenAPI Spec
Overview
This module provides API mocking utility based on Swagger/OpenAPI specification. Currently, version-2.x of the specification is supported.
Installation
$ npm install -g swagger-mockapi
Usage
$ swagger-mockapi -h
Usage: index [options]
Options:
-V, --version output the version number
-s, --spec [swagger.yaml] Swagger YAML-file (default: "swagger.yaml")
-p, --port [port] Server port (default: 8080)
-h, --help output usage information
Notes:
- Supports Swagger/OpenAPI spec v2.x