Get a Category by ID
GET/api/categories/:id
Get a Category by ID
Request
Path Parameters
Query Parameters
order by clause
number of items per page
page number that you want (see meta for pagination infos)
Responses
- 200
A Category object
- application/json
- Schema
- Example (from schema)
Schema
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
{
"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"
}