Find pet by ID
GET
/pet/{petid}
pet
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
petid
string
required
Query Params
id
string
optional
Example:
{{Userid}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://dev.your-api-server.com/pet/?id={{Userid}}'
Responses
🟢200OK
application/json
Body
code
integer
required
>= 0<= 0
data
object (Pet)
required
id
integer <int64>
required
>= 1<= 5000
category
object (Category)
required
name
string
required
Example:
doggie
petid
integer
required
>= 1<= 100
photoUrls
array[string]
required
tags
array[object (Tag) {2}]
required
status
enum<string>
required
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"
}
}
Modified at 2023-11-01 02:40:24