Finds Pets by status

GET /pet/findByStatus

Multiple status values can be provided with comma separated strings

Query parameters

  • status string

    Status values that need to be considered for filter

    Values are available, pending, or sold. Default value is available.

Responses

  • successful operation

    Hide response attributes Show response attributes object
    • id integer(int64)
    • name string Required
    • category object
      Hide category attributes Show category attributes
    • photoUrls array[string] Required
    • tags array[object]
      Hide tags attributes Show tags attributes object
    • status string

      pet status in the store

      Values are available, pending, or sold.

    Hide response attributes Show response attributes object
    • id integer(int64)
    • name string Required
    • category object
      Hide category attributes Show category attributes
    • photoUrls array[string] Required
    • tags array[object]
      Hide tags attributes Show tags attributes object
    • status string

      pet status in the store

      Values are available, pending, or sold.

  • Invalid status value

GET /pet/findByStatus
curl \
 -X GET /v3/pet/findByStatus \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
  <root>
    <id type="integer">10</id>
    <name>doggie</name>
    <category>
      <id type="integer">1</id>
      <name>Dogs</name>
    </category>
    <photoUrls type="array">
      <photoUrl>string</photoUrl>
    </photoUrls>
    <tags type="array">
      <tag>
        <id type="integer">42</id>
        <name>string</name>
      </tag>
    </tags>
    <status>available</status>
  </root>
</root>
Response examples (200)
[
  {
    "id": 10,
    "name": "doggie",
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 42,
        "name": "string"
      }
    ],
    "status": "available"
  }
]