Skip to content
Get started

Pets

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

Machine-readable error code

Message string

Human-readable error message

type ErrorResponse struct{…}
Error Error
ID string

Machine-readable error code

Message string

Human-readable error message

type Pet struct{…}
Name string
PhotoURLs []string
ID int64optional
formatint64
Category Categoryoptional
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 []Tagoptional
ID int64optional
formatint64
Name stringoptional
type Tag struct{…}
ID int64optional
formatint64
Name stringoptional