Configuring Dynamic Path Variables
This feature allows you to configure the path parameters in the API request. The path parameters are part of the end-point URL and point to a specific resource. They are enclosed by curly braces {}. For instance: – If you want to find a specific resource based on its ID, you can use the path parameter.
The path parameters are mandatory in the API request. When a client application calls an API, the actual values replace path parameters. The path parameter is added to the URL string after a forward slash character (/). The path parameter is delimited by the semicolon character (;).
To configure the path parameter:
- In the URL Details area, click the Is the URL have dynamic path variables check box, and the End Point Path Param Details tab comes into view.
- Click the End Point Path Param Details tab, and the Path Param 1 area opens.
- In the Path Param 1 area, enter the details of the path parameters as follows:
Box/List | Description |
Name | In this field, enter a name of the parameter that you have defined in the code of the API or in the end-point URL. |
Source of Value | Click this list and then select the source type (for example: – REQUEST_BODY) from where the value of the path parameter is fetched. To know more about all types of the sources, see the section: Selecting Source of Value. |
Value | In this field, you enter the parameter, or a constant value, or an in-built value based on the value that you select in the Source of Value list. This parameter is mapped to the value or absolute JSON path of the related element (for example: – text box) when you configure the API on an element (for example: – button). To define a parameter or an alphanumeric value: see the section: Selecting Source of Value. |
Mandatory | If you click this check box, the Mandatory Message box opens. In the Mandatory Message box, enter an error message that the application will display if the mandatory parameter does not store a value. |
Was this article helpful?
YesNo