Find pet by ID
GET
/pet/{petId}请求参数
Path 参数
petId
string
pet ID
示例值:
1
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
status code
>= 0<= 0
data
object (Pet)
必需
pet details
id
integer <int64>
Pet ID
>= 1
category
object (Category)
group
name
string
name
示例值:
doggie
photoUrls
array[string]
image URL
tags
array[object (Tag) {2}]
tag
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"
}
}
最后修改时间: 1 年前