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.

JOB DESCRIPTION

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.

HOW TO USE THE JOB

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 VARIABLEDESCRIPTION


bucketNameThe name of the bucket where the file will be upload
bucketFolderBucket folder where the file will be stored. If you want to save the file at the root of the bucket, use "" .
fileNameName the CSV file the will be uploaded in GCS
outputDirectoryDirectory where the temporary file will be stored on the remote engine
userThe Oracle user to be used