mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
🧹 Reformat code
This commit is contained in:
parent
31dec8a56a
commit
9d644605d5
3 changed files with 6 additions and 5 deletions
|
@ -54,4 +54,4 @@ class RepositorySchema(Schema):
|
|||
class RepositoryUpdate(Schema):
|
||||
name = fields.String(description="If present, it changes the name of the repository.")
|
||||
close = fields.String(description="If present, it closes the repository.")
|
||||
open = fields.String(description="If present, it opens the repository.")
|
||||
open = fields.String(description="If present, it opens the repository.")
|
||||
|
|
|
@ -25,7 +25,7 @@ spec.components.schema("CreateUser", schema=CreateUser)
|
|||
spec.components.schema("Repository", schema=RepositorySchema)
|
||||
spec.components.schema("IntegerParameter", schema=IntegerParameterSchema)
|
||||
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
|
||||
tags = [
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
from flask_swagger_ui import get_swaggerui_blueprint
|
||||
|
||||
SWAGGER_URL = '/api/v1/docs'
|
||||
API_URL = "/api/v1/swagger.json"
|
||||
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(
|
||||
|
@ -12,4 +13,4 @@ swagger_ui_blueprint = get_swaggerui_blueprint(
|
|||
config={
|
||||
'app_name': "N.E.S.T."
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue