openapi-apigw-mock
v0.1.0
Published
A command generates mock server on AWS API Gateway from OpenAPI (v3) document quickly.
Downloads
2
Maintainers
Readme
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
- support only
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