0.1.0 • Published 5 years ago

openapi-apigw-mock v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

OpenAPI API Gateway Mock

A command generates mock server on AWS API Gateway from OpenAPI (v3) document quickly.

You can import OpenAPI document without writing API Gateway extension. This command uses OpenAPI or JSON Schema example field as mock server responses. Generated mock server supports CORS.

Requirements

  • Node.js
  • OpenAPI Document (OAS v3)
    • support only application/json type

Usage

$ npx openapi-apigw-mock ${OpenAPI document file}

or

$ npm install -g openapi-apigw-mock
$ open-apigw-mock ${OpenAPI document file} # deploy to AWS API Gateway
$ open-apigw-mock-convert ${OpenAPI document file} # show the converted OpenAPI document