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"
}
Update an existing pet.

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"
}
Add Pet

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"
}
Finds Pets by status.

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"
}
Finds Pets by tags.

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"
}
Find pet by ID.

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"
}
Updates a pet in the store with form data.

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"
}
Deletes a pet.

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"
}
Uploads an image.

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"
}

© 2026 Grav. All rights reserved.