v1.0.0
Parameter Testing API
Example of an OpenAPI document with different types of parameters.
Servers
https://api.example.com
List users
GET
/users
Returns a list of users with optional filtering.
Parameters
Header Parameters
X-API-Key*
API key for authentication
Typestring
RequiredExample
api-key-123
Query Parameters
name
Filter users by name
Typestring
Example
John
age
Filter users by age
Typeinteger
Example
25
minimum
0
maximum
120
multipleOf
1
limit
Maximum number of users to return
Typeinteger
Example
10
minimum
1
maximum
100
default
20
offset
Number of users to skip for pagination
Typeinteger
Example
0
minimum
0
default
0
Responses
Successful responseSchema JSON JSON
application/json
{
"users": [
{
"userId": "string",
"name": "string",
"age": 0
}
],
"total": 0,
"limit": 0,
"offset": 0
}
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
minLength
3
maxLength
50
pattern
^[a-zA-Z0-9-]+$
Path Parameters
userId*
The ID of the user
Typestring
RequiredExample
123
Query Parameters
age
The age of the user to filter
Typeinteger
Example
25
minimum
0
maximum
120
multipleOf
1
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
}