jason810496 commented on PR #42959:
URL: https://github.com/apache/airflow/pull/42959#issuecomment-2411843424

   
   
   Based on all the above input, I believe the original intention of issue 
https://github.com/apache/airflow/issues/42713 is to provide an endpoint to 
retrieve all tags across all DAGs for advanced filtering functionalities. I 
agree with the last comment by @pierrejeambrun, so this endpoint should remain 
in the `public` folder. However, I think the response schema should be:
   
   ```json
   {
     "tags": ["tag_1", "tag_2"],
     "total_entries": 2
   }
   ```
   
   Additionally, the endpoint should support `offset` and `limit` query 
parameters, as mentioned by @rawwar in the issue. This way, the `get_dag_tags` 
endpoint can use the same query parameters as other public endpoints and 
utilize 
[`paginated_select`](https://github.com/apache/airflow/blob/b92c66d45d206c670516f192662bfcf8ad34bec8/airflow/api_fastapi/views/public/dags.py#L78)
 on the backend.
   
   Please correct me if I have misunderstood anything. Thanks !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to