apidoc updates

This commit is contained in:
Gardient
2021-09-30 23:00:46 +03:00
parent 71c1e322aa
commit 04d70ba424
8 changed files with 42 additions and 24 deletions

View File

@@ -53,6 +53,9 @@ def register_apispecs(app: Flask):
that one doesn't handle the static routes or blueprints in blueprints well
"""
apispec.spec.components.security_scheme('api_key', {"type": "apiKey", "in": "query", "name": "apikey"})
apispec.spec.components.security_scheme('jwt', {"type": "http", "scheme": "bearer", "bearerFormat": "JWT"})
for name, rule in app.view_functions.items():
if name == 'static':
continue