pet

Finds Pets by status.

Changed on

Multiple status values can be provided with comma separated strings.

get/pet/findByStatus

Request

  • Base URL: https://petstore3.swagger.io/api/v3
  • URL: https://petstore3.swagger.io/api/v3/pet/findByStatus
  • Auth: OAuth 2 (implicit, authorization URL https://petstore3.swagger.io/oauth/authorize, scopes: write:pets, read:pets)

Query parameters

status'available' | 'pending' | 'sold' required

Status values that need to be considered for filter

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

      the query request parameter status became required

    • breaking

      the response's body type changed from array to object for status

    • breaking

      removed the media type application/xml for 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