pet

Find pet by ID

Returns a single pet

get/pet/{petId}

Request

  • Base URL
    /v3 (relative, and the document’s source URL is not known)
  • URL
    /v3/pet/{petId}
  • Auth
    • API key in header api_key
    • or OAuth 2
      Implicit: https://petstore.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

No recorded changes to this operation across all 1 revision of this API.