- Start your Apidog journey
- Sample APIs
- Users
- Ecommerce
- Profile
- Features Group
- Features
- Order
- Order web
- Appointment
- Quotation
- Plan
- Addresses
- Watch list Web
- Dashboard Carts
- Capabilities
- Product
- Production Line
- Attribute
- Group
- Review
- Branch
- Create Branch
- Update Branch By Id
- Get Branch By Id
- Get Branch All
- Get Branchs with pagination
- Delete Branch By Id
- Bulk Delete Branches
- Get Web Branch By Coordinates
- Get All Web Branch With Pagination
- Get All Web Branch
- Import Branch Zones
- Get Import Branch Zones Example
- Get Branch Zones File
- Import Branch Products
- Get Import Branch Products Example
- Get Branch Products File
- Link To Branches
- Addons
- Get Web Product By Id
- Get Web Product By Criteria
- Create Product
- Get Product By Id
- Get Product By Criteria
- Link Product By Id to Branches
- Update Product By Id
- Link Product By Id to Production Line
- Delete Product By Id
- Delete Duplicated Products
- Category
- Unit
- Contact
- Payment
- Setup
- Config
- Settings
- Cart
- Ticket
- Coupon
- Checkout
- Survey
- Truncate Collection ListDELETE
- Fix Product AttributesPUT
- Files
Find pet by ID
GET
/pet/{petId}
pet
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/pet/1' \
--header 'x-access-token;'
Response Response Example
200 - Success 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"
}
}
Request
Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Path Params
petId
stringÂ
required
Example:
1
Responses
🟢200OK
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
🟠404Record not found
🟠400Invalid input
Modified at 2025-04-02 08:09:45