mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-23 05:24:18 +00:00
16 lines
411 B
Python
16 lines
411 B
Python
"""Definition of the Swagger UI Blueprint."""
|
|
|
|
from flask_swagger_ui import get_swaggerui_blueprint
|
|
|
|
SWAGGER_URL = '/docs/'
|
|
# FIXME: this will break if the website root isn't /, use url_for() instead!
|
|
API_URL = "/docs/swagger.json"
|
|
|
|
# Call factory function to create our blueprint
|
|
swagger_ui_blueprint = get_swaggerui_blueprint(
|
|
SWAGGER_URL,
|
|
API_URL,
|
|
config={
|
|
'app_name': "N.E.S.T."
|
|
}
|
|
)
|