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

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


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 0381b0b64e3 [v3-1-test] Update API auth. instructions in Docker 
running docs (#59830) (#59832)
0381b0b64e3 is described below

commit 0381b0b64e3ac6f179dd5ecf621bc4d9105af09b
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 26 21:54:33 2025 +0200

    [v3-1-test] Update API auth. instructions in Docker running docs (#59830) 
(#59832)
    
    (cherry picked from commit 05a66e72e7e313f8b69ec09e06d53090e6ef984b)
    
    Co-authored-by: Tomas Frajt <[email protected]>
---
 airflow-core/docs/howto/docker-compose/index.rst | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/airflow-core/docs/howto/docker-compose/index.rst 
b/airflow-core/docs/howto/docker-compose/index.rst
index c417950e733..e1045f70ea0 100644
--- a/airflow-core/docs/howto/docker-compose/index.rst
+++ b/airflow-core/docs/howto/docker-compose/index.rst
@@ -295,9 +295,14 @@ Here is a sample ``curl`` command, which sends a request 
to retrieve a pool list
 .. code-block:: bash
 
     ENDPOINT_URL="http://localhost:8080";
-    curl -X GET  \
-        --user "airflow:airflow" \
-        "${ENDPOINT_URL}/api/v1/pools"
+    JWT_TOKEN=$(curl -s -X POST ${ENDPOINT_URL}/auth/token \
+                     -H "Content-Type: application/json" \
+                     -d '{"username": "airflow", "password": "airflow"}' |\
+                jq -r '.access_token' \
+              )
+    curl -X GET \
+        "${ENDPOINT_URL}/api/v2/pools" \
+        -H "Authorization: Bearer ${JWT_TOKEN}"
 
 Cleaning up
 ===========

Reply via email to