This is an automated email from the ASF dual-hosted git repository.

rahulvats pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new 86d59c88622 [v3-2-test] Respect enable_swagger_ui config in API server 
(#64376) (#64397)
86d59c88622 is described below

commit 86d59c88622ef2a052650eebd03931ef60fed7ba
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 30 12:35:39 2026 +0530

    [v3-2-test] Respect enable_swagger_ui config in API server (#64376) (#64397)
    
    (cherry picked from commit 01fa0ea24b8cb9a1e8c0b2f3013518f6407ca5a7)
    
    Co-authored-by: Jens Scheffler <[email protected]>
    Co-authored-by: Rahul Vats <[email protected]>
---
 airflow-core/src/airflow/api_fastapi/app.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/airflow-core/src/airflow/api_fastapi/app.py 
b/airflow-core/src/airflow/api_fastapi/app.py
index 9b7dd0a9acc..86ba79f7a06 100644
--- a/airflow-core/src/airflow/api_fastapi/app.py
+++ b/airflow-core/src/airflow/api_fastapi/app.py
@@ -95,6 +95,8 @@ def create_app(apps: str = "all") -> FastAPI:
         lifespan=lifespan,
         root_path=API_ROOT_PATH.removesuffix("/"),
         version="2",
+        docs_url="/docs" if conf.getboolean("api", "enable_swagger_ui") else 
None,
+        redoc_url="/redoc" if conf.getboolean("api", "enable_swagger_ui") else 
None,
     )
 
     dag_bag = create_dag_bag()

Reply via email to