Skip to content

Conversation

@Kevinf7
Copy link

@Kevinf7 Kevinf7 commented Sep 11, 2021

I have added ability to password protect the swagger endpoint. If user decides to add a SWAGGER_PASSWORD environment variable, the endpoint will require user to pass in a query parameter (eg http://mysite.com?pass=abc) in order to access the swagger doc. This is useful when your API goes live, and you want to keep the swagger document available for your team but not have it open to anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant