Skip to content
Barkend
Search
Ctrl
K
Cancel
Auto
Light
Dark
Get started
Guides
API Reference
X-ray
Get started
Go
HTTP
HTTP
TypeScript
TypeScript
Go
Go
Guides
API Reference
X-ray
Overview
Pets
List
Create
Retrieve
Delete
Auto
Light
Dark
API Reference
Copy Markdown
Open in
Claude
Open in
ChatGPT
Open in
Cursor
Copy Markdown
View as Markdown
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}
Models
Expand
Collapse
type
Pet
struct{…}
Name
string
PhotoURLs
[]
string
ID
int64
optional
format
int64
Category
PetCategory
optional
ID
int64
optional
format
int64
Name
string
optional
Status
PetStatus
optional
pet status in the store
Accepts one of the following:
const
PetStatusAvailable
PetStatus
=
"available"
const
PetStatusPending
PetStatus
=
"pending"
const
PetStatusSold
PetStatus
=
"sold"
Tags
[]
PetTag
optional
ID
int64
optional
format
int64
Name
string
optional