logo
On this page

Finds Pets by status

GET

https://petstore.swagger.io/v2/pet/findByStatus

Multiple status values can be provided with comma separated strings

Request

Query Parameters

    status string[]required

    Possible values: [available, pending, sold], >= 1, <= 3

    Default value: available

    Status values that need to be considered for filter

Responses

successful operation
Schema
  • Array[
  • id object
    category Category
    id int64

    Category ID

    name string

    Possible values: non-empty

    Category name

    sub object
    Test Sub Category
    prop1 string

    Dumb Property

    name stringrequired

    The name given to a pet

    photoUrls url[]required

    Possible values: <= 20

    The list of URL to a cute photos featuring pet

    friend circular(Pet)
    tags Tag[]required
    Possible values: >= 1
    Tags attached to the pet
  • Array[
  • id object
    name string

    Possible values: non-empty

    Tag name

  • ]
  • status string

    Possible values: [available, pending, sold]

    Pet status in the store

    petType string
    Possible values: [cat, dog, bee]
    Type of a pet
    huntingSkill stringrequired

    Possible values: [clueless, lazy, adventurous, aggressive]

    Default value: lazy

    The measured skill for hunting

  • ]

Authorization: api_key

name: api_keytype: apiKeydescription: For this sample, you can use the api key `special-key` to test the authorization filters.
in: header

1
Copied!
Request
Collapse all
Base URL
https://petstore.swagger.io/v2
Default server
Auth
api_key
Parameters
queryrequired
RESPONSEClear

Click the "Send" button above and see the response here!

Previous

Find purchase order by ID

Next

Finds Pets by tags

On this page

Back to top