pet

Returns a single pet.

get/pet/{petId}

Request

  • Base URL: https://petstore3.swagger.io/api/v3
  • URL: https://petstore3.swagger.io/api/v3/pet/{petId}
  • Auth: one of:
    • API key in header api_key
    • OAuth 2 (implicit, authorization URL https://petstore3.swagger.io/oauth/authorize, scopes: write:pets, read:pets)

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

    • breaking

      removed the media type application/xml for the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status