A serverless plugin to automatically export Swagger definition of the RestAPi generated by serverless.
npm install --save-dev serverless-export-swagger
Add the plugin to your serverless.yml
file:
plugins:
- serverless-export-swagger
custom:
swaggerDestinations:
s3BucketName: 'bucket-name'
s3KeyName: 'swagger/api.json'