Get a list of categories
GET/api/categories
Get a list of categories
Request
Query Parameters
type of the category
search for a category
level of the category
order by clause
number of items per page
page number that you want (see meta for pagination infos)
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
data object[]required
name object
Object of translatable strings (please ensure that you manage correctly the type of the value). Keys are the language code (e.g. fr, nl, en, de). More infos on taxonomy here : https://bdl217-docs.collegedesproducteurs.be/docs/intro#taxonomy-lists
Version française de cet attribut
Nederlandse versie van deze veld
English version of this attribute
Deutsche Version dieses Attributs
Code of the category
Level of the category
description object
Object of translatable strings (please ensure that you manage correctly the type of the value). Keys are the language code (e.g. fr, nl, en, de). More infos on taxonomy here : https://bdl217-docs.collegedesproducteurs.be/docs/intro#taxonomy-lists
Version française de cet attribut
Nederlandse versie van deze veld
English version of this attribute
Deutsche Version dieses Attributs
Active status of the category (true or false)
slug object
Object of translatable strings (please ensure that you manage correctly the type of the value). Keys are the language code (e.g. fr, nl, en, de). More infos on taxonomy here : https://bdl217-docs.collegedesproducteurs.be/docs/intro#taxonomy-lists
Version française de cet attribut
Nederlandse versie van deze veld
English version of this attribute
Deutsche Version dieses Attributs
Type of the category (e.g. product, service, etc..)
Left value of the category (used to order category using the nested set model : https://en.wikipedia.org/wiki/Nested_set_model)
Right value of the category (used to order category using the nested set model : https://en.wikipedia.org/wiki/Nested_set_model)
Parent category id
Date of creation of the category
Date of last update of the category
links object[]
{
"current_page": 0,
"data": [
{
"id": 0,
"name": {
"fr": "string",
"nl": "string",
"en": "string",
"de": "string"
},
"code": "string",
"level": 0,
"description": {
"fr": "string",
"nl": "string",
"en": "string",
"de": "string"
},
"active": true,
"slug": {
"fr": "string",
"nl": "string",
"en": "string",
"de": "string"
},
"type": "string",
"_lft": 0,
"_rgt": 0,
"parent_id": 0,
"created_at": "string",
"updated_at": "string"
}
],
"first_page_url": "string",
"from": 0,
"last_page": 0,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 0,
"prev_page_url": "string",
"to": 0,
"total": 0
}