Finds Pets by status
GET
/pet/findByStatus请求参数
Query 参数
status
string
必需
Status values that need to be considered for filter
示例代码
返回响应
OK(200)
Invalid status value(400)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
array of:
id
integer <int64>
Pet ID
>= 1
category
object (Category)
group
id
integer <int64>
可选
Category ID
>= 1
name
string
可选
Category Name
name
string
name
示例值:
doggie
photoUrls
array[string]
image URL
tags
array[object (Tag) {2}]
tag
id
integer <int64>
Tag ID
>= 1
name
string
Tag Name
status
enum<string>
必需
Pet Sales Status
枚举值:
availablependingsold
示例
{
"code": 0,
"data": [
{
"name": "Hello Kity",
"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"
}
]
}
最后修改时间: 1 年前