Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 977 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 977 Bytes

Serverless Swagger UI for API Gateway

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

Development

Install dependencies:

yarn install

Before 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 REGION

Run Swagger UI locally (for Swagger UI website development):

yarn run start

It 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