serverless-export-swagger
v2.0.0
Published
export swagger definition to s3
Downloads
2,187
Readme
serverless-export-swagger
A serverless plugin to automatically export Swagger definition of the RestAPi generated by serverless.
Install
npm install --save-dev serverless-export-swagger
Add the plugin to your serverless.yml
file:
plugins:
- serverless-export-swagger
Configuration
custom:
swaggerDestinations:
s3BucketName: 'bucket-name'
s3KeyName: 'swagger/api.json'
# optional, default: private
acl: public-read