skip to main content
Using Hybrid Data Pipeline : Creating and using REST data sources : Creating an input REST file : Sample Input REST File
  

Try Now
Sample Input REST File
The following is a sample input REST file that demonstrates GET requests, POST requests, and a request configured for paging.

{
// a simple GET request without parameters to sample:
"countries":"http://example.com/country",

// A GET request with a parameter in the path:
"states":"http://example.com/states/get/{countryCode:USA}/all",

// A GET request with parameters as arguments
"timeseries":"https://www.example.com/times/query?interval=5min&symbol=USA&function=TIME_WEEKLY",

// A GET request with parameters as arguments
"timeseries":"https://www.example.com/times/query?interval=5min&symbol=USA&function=TIME_WEEKLY",

// A GET request with custom HTTP headers
"people":{
"#path": "http://example.com/people",
"#headers":{
"Accept":"application/calendar+json",
"X-Subway-Payment":"token",
"X-Laundry-Service":"dryclean",
"X-Favorite-Food":"pizza"
}
},

// A POST with parameters in the body
"countries2": {
"#path": "http://example.com/country",
"#post": {
"start_date":"2018-08-31",
"end_date":"2018-09-01",
"departments":"[engineering,marketing,sales]",
"tags":"[blue,green,red]"
}
},

// A GET with paging configured
"products": {
"#path": "http://example.com/products",
"#maximumPageSize":1000,
"#firstRowNumber":1,
"#pageSizeParameter":"maxResults",
"#rowOffsetParameter":"startAt"
}
}