Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose JSON endpoints with parsed data #60

Open
avdata99 opened this issue Jan 14, 2020 · 0 comments
Open

Expose JSON endpoints with parsed data #60

avdata99 opened this issue Jan 14, 2020 · 0 comments

Comments

@avdata99
Copy link

To use data from another applications maybe is a good idea to expose data in a JSON format.

For example, the DAG's list requires to be parsed before use.
We expect something like this:

{"dags": [
   "DAG 01",
   "DAG 02",
   ]
}

but we get:

{
  "airflow_cmd": "airflow list_dags",
  "arguments": {
    "api": "list_dags"
  },
  "call_time": "Wed, 08 Jan 2020 14:13:19 GMT",
  "http_response_code": 200,
  "output": {
    "stderr": "************************\nStarting process\nhttp://localhost:5000\nSearching http://localhost:5000/api/search\nSearch data \n1 results\ntask added TASK_01 <Task(BashOperator): TASK_01>",
    "stdin": "",

    "stdout": "\n\n-------------------------------------------------------------------\nDAGS\n-------------------------------------------------------------------\nDAG_01\n-------------------------------------------------------------------\nDAG_02\n\n"

  },
  "post_arguments": {},
  "response_time": "Wed, 08 Jan 2020 15:42:54 GMT",
  "status": "OK"
}

Maybe this is not in the scope of this plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant