根据状态查找宠物列表
GET
/pet/findByStatusLast modified: 2 years ago
Maintainer: Not configured
Request
Query Params
status
string
required
Status values that need to be considered for filter
Request samples
Responses
成功(200)
错误的 status 值(400)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
array of:
id
integer <int64>
required
宠物ID编号
>= 1<= 5000
category
object (Category)
required
分组
id
integer <int64>
optional
分组ID编号
>= 1
name
string
optional
分组名称
name
string
required
名称
Example:
doggie
photoUrls
array[string]
required
照片URL
tags
array[object (Tag) {2}]
required
标签
id
integer <int64>
optional
标签ID编号
>= 1
name
string
optional
标签名称
status
enum<string>
required
宠物销售状态
Allowed values:
availablependingsold
Example
{
"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"
}
]
}
Last modified: 2 years ago