mazash/src/endpoints/swagger.py

16 lines
334 B
Python
Raw Normal View History

2020-10-29 16:37:13 +01:00
"""Definition of the Swagger UI Blueprint."""
from flask_swagger_ui import get_swaggerui_blueprint
SWAGGER_URL = '/api/docs'
API_URL = "/api/swagger.json"
# Call factory function to create our blueprint
swagger_ui_blueprint = get_swaggerui_blueprint(
SWAGGER_URL,
API_URL,
config={
'app_name': "My App"
}
)