v1.0.0
Parameter Testing API
Example of an OpenAPI document with different types of parameters.
Servers
https://api.example.com
ID: get-users-{userId}
Get user information by ID
GET
/users/{userId}
Returns information for a specific user.
Parameters
Header Parameters
X-Custom-Header
A custom header for testing purposes
Typestring
Example
custom-value
Path Parameters
userId*
The ID of the user
Typestring
RequiredExample
123
Query Parameters
age
The age of the user to filter
Typeinteger
Example
25
acceptsCookies*
Whether the user accepts cookies
Typeboolean
RequiredExample
true
isSubscribed
Whether the user is subscribed to the newsletter
Typeboolean
Example
false
Responses
Successful responseSchema JSON JSON
application/json
{
"userId": "string",
"name": "string",
"age": 0
}
GET
/users/{userId}