[API] Passing dynamic parameters to the jobs via REST API or via Airflow #33287
Unanswered
ankushsharma92
asked this question in
Connector Questions
Replies: 1 comment 1 reply
-
You can use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there team!
I have a use case for which I am evaluating whether Airbyte would be a good use fit. Within our company, we use Airflow as an orchestrator to schedule jobs. We have use cases where we ingest data from a REST api endpoint, and that data is dumped as it is(no transformations) into S3. The way it is dumped into S3 is that we pass the
bucket_name
,object_key
and adate
parameter, where this date parameter is the date when this ingestion is supposed to happen. Moreover, the endpoints have to be triggered daily via Airflow, wherein these endpoints take dynamic query parameters fromDate and toDate.So to summarize:
Source :
https://company-gateway.com/api/endpoint?fromDate=<from_date>&endDate=<end_date>
Destination :
s3://bucket-name/object_key/<ingestion_date>/data.json
(where data.json is the data returned by the API)I was trying the lowcode UI builder, and cannot find a way to parameterize the source query parameters(like fromDate and endDate) as well as destination. Moreover, I looked at the public API and it seems there is no way to pass external parameters via the Rest API to trigger a job. Can somebody help me with this and if this can be accomplished somehow via Airbyte?
TL;DR: Is there a way to inject dynamic parameters such as query params from outside of Airbyte(such as via rest api or airflow) to a job? The injection needs to happen in such a way that the the job would replace the source and destination parameters dynamically at runtime.
Beta Was this translation helpful? Give feedback.
All reactions