mintproject / mint-ui-lit

New version of the MINT-UI
Apache License 2.0
4 stars 0 forks source link

Download inputs and outputs #566

Closed mosoriob closed 2 years ago

mosoriob commented 2 years ago

Is your feature request related to a problem? Please describe. Allow users to download the inputs and outputs

Params: email thread_id graphql_endpoint

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"conf": {"email": "mosorio@inf.utfsm.cl", "thread_id": "xvbhipEWW5FMSRoAkaBd",  "graphql_endpoint": "https://graphql.dev.mint.isi.edu/v1/graphql"}}' \
  -H "Authorization: Token ${TOKEN}" https://airflow.mint.isi.edu/api/v1/dags/download_thread/dagRuns
hvarg commented 2 years ago

should not be Bearer instead of Token?

Is giving me CORS issues: Screen Shot 2022-03-31 at 21 32 56

this is the request:

curl 'https://airflow.mint.isi.edu/api/v1/dags/download_thread/dagRuns' \
  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"' \
  -H 'Authorization: Token <TOKEN>
  -H 'Referer: http://localhost:8080/' \
  -H 'Content-Type: application/json' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36' \
  -H 'sec-ch-ua-platform: "macOS"' \
  --data-raw '{"conf":{"email":"hern.var@gmail.com","thread_id":"3xTiJ0FuEw6xhRZ8JpVk","graphql_endpoint":"graphql.dev.mint.isi.edu/v1/graphql"}}' \
  --compressed

Its looking like this:

Screen Shot 2022-03-31 at 21 32 36
mosoriob commented 2 years ago

I'm going to check it.