Skip to content
Get started

Pets

Create
client.Pets.New(ctx, body) (*Pet, error)
POST/pets
List
client.Pets.List(ctx) (*[]Pet, error)
GET/pets
Retrieve
client.Pets.Get(ctx, petID) (*Pet, error)
GET/pets/{petId}
Delete
client.Pets.Delete(ctx, petID, body) (*PetDeleteResponse, error)
DELETE/pets/{petId}
ModelsExpand Collapse
type Category struct{…}
ID float64optional
Name stringoptional
type Pet struct{…}
Name string
PhotoURLs []string
ID float64optional
Category Categoryoptional
ID float64optional
Name stringoptional
Status PetStatusoptional
Accepts one of the following:
const PetStatusAvailable PetStatus = "available"
const PetStatusPending PetStatus = "pending"
const PetStatusSold PetStatus = "sold"
Tags []Tagoptional
ID float64optional
Name stringoptional
type Tag struct{…}
ID float64optional
Name stringoptional