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

Try DataDirect Drivers Now
Requests with parameterized paths
Parameterized requests are issued as GET requests, unless they are specified in a POST request entry. To specify parameterized requests, use the following format:
"<host_name>/<endpoint_path1>/{<param_name>:<param_value>}[/<endpoint_path2>]",
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, states.
param_name
is the parameter identifier used for filtering the request. For example, countryCode.
param_value
is the parameter value used for filtering the request during sampling. For example, USA.
For example, the following demonstrates a GET request that will map to the states table.
#path:"http://example.com/states/get/{countryCode:USA}/all",