Default parameter mapping
- Last Updated: February 19, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
REST supports default parameter mapping. The default parameters mapping is supported for only the query and path parameters in a HTTP request.
The default parameter mapping for REST will follow these rules:
Note: Input parameter mean either Input or Input-Output.
- If an input parameter name is contained in the resource URI as a query, then the input
parameter is automatically mapped as a query parameter. For example, if a query
parameter
?custid=[custid]is contained in a resource URI and an input parametercustidis contained in the interface parameters, then the query parameter is automatically mapped with that input parameter. - If an input parameter name is contained in the resource URI as a path, then
the input parameter is automatically mapped as a query parameter. For example, if a
path parameter
{custid}is contained in a resource URI and an input parametercustidis contained in the interface parameters, then the path parameter is automatically mapped with that input parameter.