1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-29 07:54:19 +00:00

🧹 Reformat code

This commit is contained in:
Stefano Pigozzi 2021-05-06 02:57:26 +02:00
parent 31dec8a56a
commit 9d644605d5
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
3 changed files with 6 additions and 5 deletions

View file

@ -25,7 +25,7 @@ spec.components.schema("CreateUser", schema=CreateUser)
spec.components.schema("Repository", schema=RepositorySchema) spec.components.schema("Repository", schema=RepositorySchema)
spec.components.schema("IntegerParameter", schema=IntegerParameterSchema) spec.components.schema("IntegerParameter", schema=IntegerParameterSchema)
spec.components.schema("RepositoryUpdate", schema=RepositoryUpdate) spec.components.schema("RepositoryUpdate", schema=RepositoryUpdate)
spec.components.security_scheme("jwt", {"type":"http", "scheme":"bearer", "bearerFormat":"JWT"}) spec.components.security_scheme("jwt", {"type": "http", "scheme": "bearer", "bearerFormat": "JWT"})
# add swagger tags that are used for endpoint annotation # add swagger tags that are used for endpoint annotation
tags = [ tags = [

View file

@ -2,8 +2,9 @@
from flask_swagger_ui import get_swaggerui_blueprint from flask_swagger_ui import get_swaggerui_blueprint
SWAGGER_URL = '/api/v1/docs' SWAGGER_URL = '/docs/'
API_URL = "/api/v1/swagger.json" # 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 # Call factory function to create our blueprint
swagger_ui_blueprint = get_swaggerui_blueprint( swagger_ui_blueprint = get_swaggerui_blueprint(