第一层1中的GET接口
GET
/pet/{petId}1
宠物
Request
Path Params
petId
string
required
Example:
1
Body Params application/json
ccccc
string
required
Additional properties
object
optional
Example
{
"ccccc": "string",
"property1": {},
"property2": {}
}
Responses
🟢200成功
application/json
Body
code
integer
required
>= 0<= 0
data
object (Pet)
required
id
integer <int64>
required
>= 1
category
object (Category)
required
name
string
required
Example:
doggie
photoUrls
array[string]
required
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"
}
}
🟠404记录不存在
🟠400参数不正确


扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

