Requests with parameterized paths
- Last Updated: November 2, 2022
- 1 minute read
- DataDirect Connectors
- JDBC
- Autonomous REST Connector 6.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>,<java_date_format>}[/<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,
orders. The value must be valid URL-encoded 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,
date. - param_value
- is the parameter value used for filtering the request during
sampling. For example,
2020-07-01. - java_date_format
- (optional) is the format of your Date, Time, or Timestamp values
using the Java SimpleDateFormat. For example,
yyyy-MM-dd. For more information on the Java SimpleDateFormat, refer to https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html.
For example, the following demonstrates a GET request that will map to the
orders table.
#path:"http://example.com/orders/get/{date:2020-07-01,yyyy-MM-dd}/all",