jason810496 commented on PR #42959:
URL: https://github.com/apache/airflow/pull/42959#issuecomment-2416657044
### Update:
The endpoint is placed in the `public` folder and supports the following
query parameters:
- `tag_name_pattern`: `_SearchParam`
- `order_by`: `_OrderByParam`
- `limit`: `QueryLimit`
- `offset`: `QueryOffset`
Example of the response schema:
```json
{
"tags": ["tag_1", "tag_2"],
"total_entries": 3
}
```
For the SQL statement, the `name` field should still include `DISTINCT`
since there may be rows like:
```
same_tag_name, dag_id_1
same_tag_name, dag_id_2
```
While the `name` field with the `dag_id` field creates a unique pair, the
`name` field itself may have duplicates in the query results.
### Feature: `_OrderByParam` - New query parameter for ordering by a field.
- `order_by`: `asc`, `desc`
- Ordering by a single field (This could be useful for models with only a
few fields, where typically sorting by a single field is sufficient.)
--
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]