Skip to content
Get started

Pets

List all pets.
client.Pets.List(ctx) (*[]Pet, error)
get/pet
Add a new pet to the store.
client.Pets.New(ctx, body) (*Pet, error)
post/pet
Find pet by ID.
client.Pets.Get(ctx, petID) (*Pet, error)
get/pet/{petId}
Deletes a pet.
client.Pets.Delete(ctx, petID) error
delete/pet/{petId}
ModelsExpand Collapse
type Pet struct{…}
Name string
PhotoURLs []string
ID int64optional
formatint64
Category PetCategoryoptional
ID int64optional
formatint64
Name stringoptional
Status PetStatusoptional

pet status in the store

Accepts one of the following:
const PetStatusAvailable PetStatus = "available"
const PetStatusPending PetStatus = "pending"
const PetStatusSold PetStatus = "sold"
Tags []PetTagoptional
ID int64optional
formatint64
Name stringoptional