Purpose

Daybreak Health would like to use AirByte to replace a number of ETL jobs. These ETL jobs are currently handled through bespoke ruby code and we'd like to be able to use a more out of the box solution to reduce our implementation and maintenance cost.

Below is a summary of the three distinct scenarios we currently have need for.

Scenario 1 - Paginated HTTP API Request

In this scenario the data provider has a non-restful API that we'll call api/clients/listing. This API requires a shortlived cookie to authenticate and returns a paginated data structure like the one below.

In this scenario, the current ETL job:

  1. Executes once a day by cron
  2. Queries the api/clients/listing api
  3. If the response indicates there is more than one page, the ETL job calls the API iterating through the pages until there are no further pages
  4. Parses the collected data
  5. Executes a few minor transforms (CamelCase to snake_case, type casting, etc)
  6. Upserts the records into postgresql using the Id value as the unique record identifier.

Scenario 2 - Dynamic Form Data HTTP API Request

In this scenario the data provider has a non-restful POST API that we'll call api/appointments/getAppointments. This API requires a shortlived cookie to authenticate along with complex form data in the request. An example is provided below:

In this scenario, the current ETL job:

  1. Executes once a day on a cron