Variables

Environment Variable

In RestIt, environment variable are per collection. To Define variables, right click on collection and click view/edit. All variables belong to a profile. At least one profile will be defined to add variables.

Environment profile

Each collection has at least one profile declared for it where environment variables and authorization details can be added.

Collection_Environment_Profile

To add a new profile click on + to open a create new profile window, give a name and select a colour and hit save.

Collection_Environment_Profile_colour

Add variables in any profile by giving a name and value and click save.

Collection_Environment_variables

Using an environment variable

Use ${variable_name} syntax to use a variable.

Environment_variable_use

path variable

Define a path variable using :variable_name syntax in the url.

Path_variable