mariana-marcal-santana commented on code in PR #51264: URL: https://github.com/apache/airflow/pull/51264#discussion_r2134858608
########## airflow-core/src/airflow/api_fastapi/core_api/routes/public/dags.py: ########## @@ -346,6 +368,39 @@ def patch_dags( ) +@dags_router.put( + "/{dag_id}", + responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]), + dependencies=[Depends(requires_access_dag(method="PUT")), Depends(action_logging())], +) +def favorite_dag( + dag_id: str, + favorite_body: DAGFavoriteBody, + session: SessionDep, + user: GetUserDep, +) -> DAGResponse: + """Favorite the specific DAG.""" Review Comment: Done! -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org