pet

Find pet by ID.

Returns a single pet.

get/pet/{petId}

Path parameters

petIdinteger required

ID of pet to return

Response

successful operation

idinteger
namestring required
photoUrlsstring[] required
status'available' | 'pending' | 'sold'

pet status in the store

Example response

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  }
}

Changes

Changed in 1 of the 53 revisions of this API.342

  • 253de9e0f0ae342See the full diff
    • removed the media type application/xml for the response with the status default

      response-media-type-removed

    • removed the required property name from the response with the default status

      response-required-property-removed

    • removed the required property photoUrls from the response with the default status

      response-required-property-removed

    • removed the optional property category from the response with the default status

      response-optional-property-removed

    • removed the optional property id from the response with the default status

      response-optional-property-removed

    • removed the optional property status from the response with the default status

      response-optional-property-removed

    • removed the optional property tags from the response with the default status

      response-optional-property-removed

    • added the required property code to the response with the default status

      response-required-property-added

    • added the required property message to the response with the default status

      response-required-property-added