查询宠物详情
GET
/pet/{petId}Last modified: 2 年前
Maintainer: Not configured
Request
Path Params
petId
string
required
宠物 ID
Example:
1
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
required
状态码
>= 0<= 0
data
object (Pet)
required
宠物信息
id
integer <int64>
required
宠物ID编号
>= 1<= 5000
category
object (Category)
required
分组
name
string
required
名称
Example:
doggie
photoUrls
array[string]
required
照片URL
tags
array[object (Tag) {2}]
required
标签
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"
}
}
Last modified: 2 年前