Find pet by ID
GET
/pet/{petid}Request
Path Params
petid
string
required
Query Params
id
string
optional
Example:
{{Userid}}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
required
status code
>= 0<= 0
data
object (Pet)
required
pet details
id
integer <int64>
required
Pet ID
>= 1<= 5000
category
object (Category)
required
group
name
string
required
name
Example:
doggie
petid
integer
required
>= 1<= 100
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}]
required
tag
status
enum<string>
required
Pet Sales Status
Allowed values:
availablependingsold
id
string
required
Default:
uuid_generate_v4()
tenant_id
string
required
name
string
required
<= 255 characters
mode
string
required
<= 255 characters
icon
string
optional
<= 255 characters
icon_background
string
optional
<= 255 characters
app_model_config_id
string
optional
status
string
required
<= 255 characters
Default:
'normal'
enable_site
boolean
required
enable_api
boolean
required
api_rpm
integer
required
>= -2147483648<= 2147483647
api_rph
integer
required
>= -2147483648<= 2147483647
is_demo
boolean
required
Default:
false
is_public
boolean
required
Default:
false
created_at
string
required
Default:
CURRENT_TIMESTAMP(0)
updated_at
string
required
Default:
CURRENT_TIMESTAMP(0)
is_universal
boolean
required
Default:
false
Example
{
"code": 0,
"data": {
"name": "Hello Kitty",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Cat"
},
"tags": [
{
"id": 22,
"name": "Cat"
}
],
"status": "sold"
}
}
Last modified: a year ago