Request Parameters[edit]

Request parameters are used for avoiding unnecessary data duplication in requests or for providing an easy way of switching between the development and production environments. They can be used inside request query, path, and server. Each request parameter is represented by a case-sensitive identifier surrounded by curly braces.

Server Parameters[edit]

You can add server parameters to a request using the Request Editor and Server tab from the Parameters view. From the Request Editor add the parameter {version} to the server URL, and from Server tab add the parameter key and value. Click on the save button to save the request changes.


Request server parameter.png

Path Parameters[edit]

You can add path parameters to a request using the Request Editor and Server tab from the Parameters view. From the Request Editor add the parameter {petId} to the server URL, and from Server tab add the parameter key and value. Click on the save button to save the request changes.


Request path parameter.png


Header Parameters[edit]

You can add header parameters to a request using the Header tab from the Parameters view. After adding the header parameters click on the save button to save the request changes.

Request header parameter.png


Query Parameters[edit]

You can add query parameters to a request using the Query tab from the Parameters view. After adding the query parameters click on the save button to save the request changes.


Request query parameter.png