pet

pet

Add a new pet to the store

Body Parameters
  • body
Responses
  • 405

    Invalid input

POST/pet

No Body

Update an existing pet

Body Parameters
  • body
Responses
  • 400

    Invalid ID supplied

  • 404

    Pet not found

  • 405

    Validation exception

PUT/pet

No Body

Finds Pets by status

Multiple status values can be provided with comma separated strings

Query Parameters
  • status

    Status values that need to be considered for filter

Responses
  • 200

    successful operation

  • 400

    Invalid status value

GET/pet/findByStatus

[]

Finds Pets by tags

Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

Query Parameters
  • tags

    Tags to filter by

Responses
  • 200

    successful operation

  • 400

    Invalid tag value

GET/pet/findByTags

[]

Find pet by ID

Returns a single pet

Path Parameters
  • petId
    required

    ID of pet to return

Responses
  • 200

    successful operation

  • 400

    Invalid ID supplied

  • 404

    Pet not found

GET/pet/{petId}

{
  "id": 1,
  "category": {
    "id": 1,
    "name": "…"
  },
  "name": "doggie",
  "photoUrls": [
    "…"
  ],
  "tags": [],
  "status": "available"
}

Updates a pet in the store with form data

Path Parameters
  • petId
    required

    ID of pet that needs to be updated

Form Data
  • name

    Updated name of the pet

  • status

    Updated status of the pet

Responses
  • 405

    Invalid input

POST/pet/{petId}

No Body

Deletes a pet

Path Parameters
  • petId
    required

    Pet id to delete

Headers
  • api_key
Responses
  • 400

    Invalid pet value

DELETE/pet/{petId}

No Body

uploads an image

Path Parameters
  • petId
    required

    ID of pet to update

Form Data
  • additionalMetadata

    Additional data to pass to server

  • file

    file to upload

Responses
  • 200

    successful operation

POST/pet/{petId}/uploadImage

{
  "code": 1,
  "type": "…",
  "message": "…"
}