根据 tag 查找宠物列表
GET
/pet/findByTags请求参数
Query 参数
tags
必需
Tags to filter by
示例代码
返回响应
成功(200)
错误的 tag 值(400)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
array of:
id
integer <int64>
宠物ID
category
object (Category)
分类
id
integer <int64>
分类ID
name
string
分类名
name
string
宠物名称
示例值:
doggie
photoUrls
array[string]
照片URL
tags
array[object (Tag) {2}]
标签
id
integer <int64>
可选
name
string
标签名
status
enum<string>
销售状态
枚举值:
availablependingsold
createTime
string
创建时间
location
object (Localtion)
位置
province
string
省份
city
string
城市
district
string
区
示例
[
{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available",
"createTime": "string",
"location": {
"province": "string",
"city": "string",
"district": "string"
}
}
]
最后修改时间: 4 年前