Mock Array Test
GET
/pet/{petId}
pet
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/pet/1?pets=lily&pets=kitten&string[]=hello'
Response Response Example
200 - Success example
{
"code": 0,
"data": {
"name": "Hello Kitty",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Cat"
},
"tags": [
{
"id": 22,
"name": "Cat"
}
],
"status": "sold"
}
}
Request
Path Params
petId
string
required
Example:
1
Query Params
between[]
array[string]
optional
Example:
["value1","value2"]
pets
array[string]
required
Example:
["lily","kitten"]
string[]
string
required
Example:
hello