Skip to main content

DataResponseConfig

In restonomer framework, the details about the http response (like response body format, transformations, persistence) are captured via DataResponseConfig class.

User need to provide below configs for Data Response Configuration:

Config NameMandatoryDefault ValueDescription
bodyYes-The body config represented by RestonomerResponseBody.
transformationsNo-List of transformations to be applied on the restonomer response dataframe
persistenceYes-The persistence attribute that tells where to persist the transformed restonomer response dataframe

The response configurations are provided in the checkpoint file in the below manner:

data-response = {
body = {
type = "Text"
text-format = {
type = "JSONTextFormat"
}
}

transformations = [
{
type = "AddColumn"
column-name = "col_D"
column-value = "val_D"
column-data-type = "string"
}
]

persistence = {
type = "LocalFileSystem"
file-format = {
type = "ParquetFileFormat"
}
file-path = "./rest-output/"
}
}