mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 22:44:19 +00:00
🧹 Reformat code
This commit is contained in:
parent
31dec8a56a
commit
9d644605d5
3 changed files with 6 additions and 5 deletions
|
@ -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 = [
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue