Requests with parameterized paths
- Last Updated: August 31, 2022
- 1 minute read
- DataDirect Connectors
- ODBC
- Autonomous Rest Connector 8.0
- Documentation
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 Host Name (HostName) option.
- endpoint_path
- is the path component of the URL endpoint. For example,
states. The value must be URL-encoded using valid syntax. For example, spaces in an endpoint are replaced with%20. See "URL-encoded values" for details. - 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",