Finds Pets by status
GET
/pet/findByStatusRequisição
[message.queryParameter]
status
string
required
Status values that need to be considered for filter
Exemplos de Requisição
[api.label.responses]
OK(200)
Invalid status value(400)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
[response.label.jsonSchema]
array of:
id
integer <int64>
required
Pet ID
>= 1
category
object (Category)
required
group
id
integer <int64>
optional
Category ID
>= 1
name
string
optional
Category Name
name
string
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}]
required
tag
id
integer <int64>
optional
Tag ID
>= 1
name
string
optional
Tag Name
status
enum<string>
required
Pet Sales Status
Allowed values:
availablependingsold
[api.label.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"
},
{
"name": "White Dog",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Dog"
},
"tags": [
{
"id": 22,
"name": "Dog"
}
],
"status": "sold"
}
]
}
[updatedIn] 3 months ago