[ 
https://issues.apache.org/jira/browse/AIRFLOW-5548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16977980#comment-16977980
 ] 

Matt Buell commented on AIRFLOW-5548:
-------------------------------------

I have a basic implementation of this working. For example
{code:java}
GET: /api/experimental/dags

response:
[
   "<DAG-ID-1>",
   "<DAG-ID-2>",
   ...
   "<DAG-ID-N>"
]{code}
 

I also created an additional endpoint for retrieving DAG info:
{code:java}
GET: /api/experimental/dags/<DAG-ID-1>

response:
{
  "catchup": "False",
  "dagrun_timeout": "None",
  "default_args": "{'owner': 'owner', 'depends_on_past': False, 'start_date': 
<Pendulum [2019-11-07T00:00:00+00:00]>, 'catchup': False, 'email': 
['[email protected]'], 'email_on_failure': False, 'email_on_retry': False, 
'retries': 0}",
  "doc_md": "None",
  "end_date": "None",
  "fileloc": "<path/to/dag>",
  "is_paused_upon_creation": "None",
  "is_subdag": "False",
  ...
}{code}
 

 

> REST API: get DAGs
> ------------------
>
>                 Key: AIRFLOW-5548
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5548
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: api
>    Affects Versions: 2.0.0
>            Reporter: Norbert Biczo
>            Assignee: Norbert Biczo
>            Priority: Minor
>
> Like the already implemented [get 
> pools|[https://airflow.apache.org/api.html#get--api-experimental-pools]] but 
> with the DAGs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to