Skip to content

Powered by Grav

Pets

Pets

Manage pets in the store inventory

The Pets API allows you to create, read, update, and delete pets in the store inventory.

Available Operations

Method Endpoint Description
GET /pet/{petId} Get a pet by ID
POST /pet Add a new pet
PUT /pet Update an existing pet
DELETE /pet/{petId} Delete a pet
GET /pet/findByStatus Find pets by status
GET /pet/findByTags Find pets by tags
POST /pet/{petId}/uploadImage Upload a pet image

Pet Object

JSON
{
  "id": 10,
  "name": "Buddy",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "https://example.com/buddy.jpg"
  ],
  "tags": [
    {"id": 1, "name": "friendly"}
  ],
  "status": "available"
}

© 2025 Grav. All rights reserved.