OAS:OpenAPI Editor/OpenAPI Test/Requests/Request Parameters
Contents
Request Parameters
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
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.
Path Parameters
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.
Header Parameters
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.
Query Parameters
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.