Download PDF
  1. Sample APIs
Download PDF
  • [DOWNLOAD] PDF What Sleeps Within the Cove (Of Flesh & Bone #4) by Harper L. Woods
  • [DOWNLOAD] PDF A Fate Forged in Fire by Hazel McBride
  • [DOWNLOAD] PDF The Wrath of the Fallen (Gods and Monsters #4) by Amber V. Nicole
  • [DOWNLOAD] PDF The Emperor of Gladness by Ocean Vuong
  • [DOWNLOAD] PDF The Missing Half by Ashley Flowers
  • [DOWNLOAD] PDF The Man Made of Smoke by Alex North
  • [DOWNLOAD] PDF Never Flinch (Holly Gibney #4) by Stephen King
  • [DOWNLOAD] PDF Left of Forever by Tarah DeWitt
  • [DOWNLOAD] PDF The Manor of Dreams by Christina Li
  • [DOWNLOAD] PDF Hidden Nature by Nora Roberts
  • Start your Apidog journey
  • Sample APIs
    • Find pet by ID
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET
  1. Sample APIs

Find pet by ID

GET
/pet/{petId}
pet
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/pet/1'
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

Path Params
petId
string 
required
pet ID
Example:
1

Responses

🟢200OK
application/json
Body
code
integer 
required
status code
>= 0<= 0
data
object (Pet) 
required
pet details
id
integer <int64>
required
Pet ID
>= 1
category
object (Category) 
required
group
name
string 
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}] 
required
tag
status
enum<string> 
required
Pet Sales Status
Allowed values:
availablependingsold
🟠404Record not found
🟠400Invalid input
Modified at 2025-05-05 05:52:05
Previous
Start your Apidog journey
Next
Add a new pet to the store
Built with