mik-laj commented on issue #13653:
URL: https://github.com/apache/airflow/issues/13653#issuecomment-762213562
I checked again and there is no such endpont. This fields was not added to
the ``dags/{dag_id}/details`` endpoint.
> You've provided a link to the "set state of task instance" endpoint.
Correct links:
https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dag_details
https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_task
> Is there an API endpoint that actually exists that will give us the list
of parameters that a DAG accepts?
Unfortunately no, because this field was not added to the end point.
> Provide the response for the dags/{dag_id}/details endpoint because we are
curious about this regardless of the answer to 1).
https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dag_details
To see full response, click "200 Success" link
> Advise when v2 documentation will be updated with the details endpoint.
The documentation has a description of all endpoints and supported
parameters. It is not technically possible to add an undocumented endpoint as
the specification is used to generate routing.
https://github.com/apache/airflow/blob/f74da5025d9f635bc49e631883fc1537cd16b620/airflow/api_connexion/openapi/v1.yaml#L421
This is done by [connexion](https://github.com/zalando/connexion)
> Advise if there is a workaround for us doing this on v1.1 - either via the
experimental API or the CLI.
Stable API is only available in Airflow 2.0, but you can add new endpoints
using the plugins.
See:
https://airflow.apache.org/docs/apache-airflow/stable/plugins.html#exclude-views-from-csrf-protection
Are you willing to submit a PR to add missing fields to endpoint?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]