I am building a flask app and need to add password for swagger documentation in production, but dont know how. Here is my code:
api = Api(
version='1.0',
title='API',
description='Main API',
doc='/doc',
authorizations=authorizations)
...
api.init_app(app)
This documentation shouldnt be public for anyone to see, right? but i cant find a way to add password to it. Any suggestion would be awsome.