新建宠物信息
正式环境
正式环境
POST
/pet
宠物
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apifoxmock.com/m1/4997831-4656773-default/pet' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"category": "string",
"birthday": "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"
}
}
请求参数
Body 参数application/json
返回响应
修改于 2024-11-07 02:00:48