pierrejeambrun commented on code in PR #44801:
URL: https://github.com/apache/airflow/pull/44801#discussion_r1877549985
##########
airflow/api_fastapi/core_api/routes/public/assets.py:
##########
@@ -326,56 +308,47 @@ def get_dag_asset_queued_events(
@assets_router.get(
- "/dags/{dag_id}/assets/queuedEvents/{uri:path}",
- responses=create_openapi_http_exception_doc(
- [
- status.HTTP_404_NOT_FOUND,
- ]
- ),
+ "/dags/{dag_id}/assets/{asset_id:int}/queuedEvents",
Review Comment:
Nit: I don't think you need the explicit type in the different path
definitions. FastAPI will read directly from type annotation.
```suggestion
"/dags/{dag_id}/assets/{asset_id}/queuedEvents",
```
--
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]