npm.io
1.0.0 • Published 7 years agoCLI

@parthar/swagger-mockapi

Licence
ISC
Version
1.0.0
Deps
3
Size
5 kB
Vulns
0
Weekly
0

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