This is an automated email from the ASF dual-hosted git repository.
tn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push:
new ccff6c5 add metadata for openapi docs
ccff6c5 is described below
commit ccff6c597f1d9f6881960f5bc68ff1332b73365f
Author: Thomas Neidhart <[email protected]>
AuthorDate: Wed Mar 5 06:46:05 2025 +0100
add metadata for openapi docs
---
atr/server.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/atr/server.py b/atr/server.py
index 1d47f72..a9cc508 100644
--- a/atr/server.py
+++ b/atr/server.py
@@ -107,8 +107,17 @@ def app_create_base(app_config: type[AppConfig]) ->
QuartApp:
def app_setup_api_docs(app: QuartApp) -> None:
"""Configure OpenAPI documentation."""
+ from quart_schema import Info
+
+ from atr.version import version
+
QuartSchema(
app,
+ info=Info(
+ title="ATR API",
+ description="OpenAPI documentation for the Apache Trusted Release
Platform.",
+ version=version,
+ ),
openapi_provider_class=ApiOnlyOpenAPIProvider,
swagger_ui_path="/api/docs",
openapi_path="/api/openapi.json",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]