Categories
Methods allow you to get a complete list or a specific category in Eyrene, view information about them, update all fields, or only select category fields.
GET /сategories
Retrieves a list of categories.
Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get
Curl
|
RESPONSES
200
|
Response parameters
count integer
The number of categories.
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results array of objects
An array of objects with information about categories:
- id string Category ID.
- name string Category name.
POST /сategories
Сreate a new category.
Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get
Curl
|
RESPONSES
201
|
GET /сategories/{id}
Retrieve detailed information about a category by ID.
Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get
Curl
|
RESPONSES
200
|
Response parameters
id string
Category ID.
name string
Category name.
PUT /сategories/{id}
Update all category fields.
Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get
Curl
|
RESPONSES
200
|
Response parameters
id string
New category ID.
name string
Category new name.
PATCH /сategories/{id}
Update some of the category fields.
Get a cake by its ID
GET
Params
Body Parameters
id
required
String
ID of the cake to get
Curl
|
RESPONSES
200
|
Response parameters
id string
New category ID.
name string
Category new name.