Plus d'options dans swagger UI pour Try it out #78

This commit is contained in:
Colin Maudry
2026-06-16 11:06:46 +02:00
parent d591d7f47a
commit fede22f314
2 changed files with 49 additions and 0 deletions
+8
View File
@@ -15,6 +15,14 @@ def init_api(server) -> None:
"OPENAPI_SWAGGER_UI_URL",
"https://cdn.jsdelivr.net/npm/swagger-ui-dist/",
)
server.config.setdefault(
"API_SPEC_OPTIONS",
{
"components": {
"securitySchemes": {"BearerAuth": {"type": "http", "scheme": "bearer"}}
}
},
)
api = Api(server)
api.register_blueprint(routes.bp)