Get a list of categories as a hierarchic tree
GET/api/categories/tree
Get a list of categories as a hierarchic tree
Request
Query Parameters
type of the category
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
name objectrequired
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
children object[]
name objectrequired
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
[
{
"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",
"children": [
{
"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"
}
]
}
]