The job shows how to read data from a REST API. The API response is converted from JSON into a CSV file which is uploaded to Google Cloud Storage.

1 - The job calls the API endpoint using the tRestClient component (you will have to adapt it to your requirements as you might need to add specific headers or authentication).
2 - The json response is parsed to extract the necessary information and saved it locally as a CSV file .
3 - The CSV is then uploaded into the desired Google Cloud Storage bucket.
4 - The temporary file is deleted.
The job can be used a skeleton to build your job. So you can :
The parameters that you have to provide are highlighted here below (you might need to add more depending on your use case).
| CONTEXT VARIABLE | DESCRIPTION |
|---|---|
| bucketName | The name of the bucket where the file will be upload |
| bucketFolder | Bucket folder where the file will be stored. If you want to save the file at the root of the bucket, use "" . |
| fileName | Name the CSV file the will be uploaded in GCS |
| outputDirectory | Directory where the temporary file will be stored on the remote engine |
| user | The Oracle user to be used |