Zum Inhalt springen
Auf dieser Seite

Finds Pets by status.

Multiple status values can be provided with comma separated strings.

GET/pet/findByStatusFinds Pets by status.
curl 'https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available' \
  -H 'Authorization: Bearer <token>'
Beispielantwort · 200
[
  {
    "id": 10,
    "name": "doggie",
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 0,
        "name": "string"
      }
    ],
    "status": "available"
  }
]

#Authentifizierung

petstore_authwrite:petsread:pets

#Parameter

statusstringerforderlichquery

Status values that need to be considered for filter

Erlaubte Werte: "available", "pending", "sold"

Standard: "available"

#Antworten

successful operation

application/json · Typ: array of Pet

idinteger (int64)
namestringerforderlich
categoryCategory
photoUrlsarray of stringerforderlich
tagsarray of Tag
statusstring

pet status in the store

Erlaubte Werte: "available", "pending", "sold"

application/xml · Typ: array of Pet

idinteger (int64)
namestringerforderlich
categoryCategory
photoUrlsarray of stringerforderlich
tagsarray of Tag
statusstring

pet status in the store

Erlaubte Werte: "available", "pending", "sold"

[
  {
    "id": 10,
    "name": "doggie",
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 0,
        "name": "string"
      }
    ],
    "status": "available"
  }
]