skip to main content
Input REST file syntax : Table definition entries : Query paths : Requests with query parameters
  

Try DataDirect Drivers Now
Requests with query parameters
Requests with query parameters are issued as GET requests, unless they are specified in a POST request entry. Use the following format to specify endpoints for requests with argument parameters. Multiple argument parameters within the same endpoint are separated by an ampersand (&).
Note: For POST requests, the query parameter is specified in the body of the entry. See "Post requests" for details.
"<host_name>/<endpoint_path>?<parameter>=<value>[&...]",
host_name
(optional) is the protocol and host name components of the URL endpoint. For example, http://example.com. You can omit this value by specifying the host name using the ServerName property.
endpoint_path
is the path component of the URL endpoint. For example, times.
parameter
is the argument parameter component of the parameter=value pair used for filtering the request. For example, interval.
value
is the value argument parameter used for filtering the request. For example, 5min.
For example, the following demonstrates a GET request that will map to the timeseries table.
#path:"https://www.example.com/times/query?interval=5min&symbol=USA&function=TIME_SERIES_WEEKLY",