Skip to main content

REST API Source

Here is a mandatory list of parameters that must be used when utilizing the REST API Data Source. Additionally, this list includes default values, which will be automatically populated if a specific value is not provided.

 	   "today_str":"datetime.now().strftime('%Y-%m-%dT00:00:01Z')",
       "yesterday_str":"(datetime.now() - timedelta(1)).strftime('%Y-%m-%dT00:00:01Z')",
       "rolling_time_format" : "%Y-%m-%dT%H:%M:00.000",
       "offset_value" : 0,
       "rolling_frequency" : 0,
       "min_num": "" ,
       "max_num": "" ,
       "endpoint_method":"get",
       "endpoint_url":"",
       "endpoint_headers":{},
       "endpoint_body":{},
       "endpoint_params":{},
       "authentication_type":"no_auth",
       "username":"",
       "password":"",
       "refresh_token_url":"",
       "refresh_token_headers":{},
       "refresh_token_method":"",
       "refresh_token_body":"",
       "refresh_token_params":{},
       "response_parameters":"",
       "another_response_parameter":"",
       "key_name_to_update":"",
       "user_key":"",
       "user_key_url":"",
       "pagination_style":"no_pagination",
       "pre_request_script":"""""",
       "user_request_response":"",
       "response_type":"",
       "timer_type":"interval",
       "interval_in_seconds":10,
       "schedule":"* * * * *",
       "target":"product_data"