Variables in an API are the dynamic values that can be pulled from various sources from the path form. They help in defining the nature and purpose of the request that is made. A response variable field corresponds to the path in the response request.
Steps to Add a Variable
Follow the steps to add a Variable:
- In the Request tab, click the Variable tab.
The Variable tab appears. - Click the icon.
The Parameter Editor pop-up window appears. - The Type is already selected.
- Specify the Name of the variable you have selected.
To add values in the Value textbox, click the Insert Dynamic Parameter button or specify the values in the textbox.
Click the Add button.
The details are added to the Variable tab.