Categories

Manage the species and breed categories used to classify pets.

List categories

get
/categories

Returns all categories available for classifying pets (e.g. dog, cat, rabbit).

授权
Authorizationstring必填

Pass your API key as a Bearer token in the Authorization header.

响应
200

An array of categories.

application/json
namestring必填

The category name (e.g. Dog, Cat, Rabbit).

Example: Dog
descriptionstring可选

A short description of the category.

Example: Domestic dogs of all breeds.
idinteger · int64必填

Unique identifier assigned on creation.

Example: 1
get
/categories

Create a category

post
/categories

Adds a new category for classifying pets.

授权
Authorizationstring必填

Pass your API key as a Bearer token in the Authorization header.

请求体
namestring必填

The category name (e.g. Dog, Cat, Rabbit).

Example: Dog
descriptionstring可选

A short description of the category.

Example: Domestic dogs of all breeds.
响应
post
/categories

最后更新于