Skip to main content

Finds Pets by status

Multiple status values can be provided with comma separated strings

Query Parameters
status string[] REQUIRED

Possible values: [available, pending, sold]

Status values that need to be considered for filter

Responses
200

successful operation

Schema
Pet[]
id int64

Pet ID

category Category

Categories this pet belongs to

id int64

Category ID

name string

Possible values: 1 ≤ length

Category name

sub object

Test Sub Category

prop1 string

Dumb Property

name string REQUIRED

The name given to a pet

photoUrls url[] REQUIRED

The list of URL to a cute photos featuring pet

friend (circular)
tags Tag[]

Tags attached to the pet

id int64

Tag ID

name string

Possible values: 1 ≤ length

Tag name

status string

Possible values: [available, pending, sold]

Pet status in the store

petType string

Type of a pet

400

Invalid status value

findPetsByStatus
GET /pet/findByStatus
status — query
Accept
//petstore.swagger.io/v2
curl -L -X GET '//petstore.swagger.io/v2/pet/findByStatus' \
-H 'Accept: application/json'