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