bugraoz93 opened a new issue, #66173:
URL: https://github.com/apache/airflow/issues/66173
### Body
## Summary
Add TasksOperations and TaskInstancesOperations classes to
airflowctl/api/operations.py.
These return the API response directly with no transformation — CLI commands
are auto-generated
by CommandFactory. Also unblocks Issue C (custom task commands) which reuses
the same operations.
All REST API endpoints already exist.
## Operations to add
### TasksOperations.list
GET /api/v2/dags/{dag_id}/tasks
Auto-generated CLI: `airflowctl tasks list --dag-id <id>`
### TaskInstancesOperations.get_dependencies
GET
/api/v2/dags/{dag_id}/dagRuns/{run_id}/taskInstances/{task_id}/dependencies
Auto-generated CLI: `airflowctl tasks failed-deps --dag-id <id> --dag-run-id
<run_id> --task-id <task_id>`
### TaskInstancesOperations.get (also needed by Issue C)
GET /api/v2/dags/{dag_id}/dagRuns/{run_id}/taskInstances/{task_id}
### TaskInstancesOperations.list (also needed by Issue C)
GET /api/v2/dags/{dag_id}/dagRuns/{run_id}/taskInstances
### TaskInstancesOperations.clear (also needed by Issue C)
POST /api/v2/dags/{dag_id}/dagRuns/{run_id}/clearTaskInstances
### Committer
- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow
project.
--
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]