Example of automatically built and deployed Swagger UI website with interactive documentation for the API Gateway, protected with Cognito user authentication.
See the article with full description: Serverless Swagger UI for API Gateway
Install dependencies:
yarn installBefore deployment change the project and/or service name
in serverless.yml file
to have unique baseName, that is used as a Cognito auth domain.
Deploy:
yarn run deploy --region REGIONRun Swagger UI locally (for Swagger UI website development):
yarn run startIt will start the development server at http://localhost:8080.
The service must be deployed first to run Swagger UI locally because the website connects to the deployed AWS services.
Remove deployed stack:
yarn run remove --region REGION