GET /company/companies/@id/categories
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Return all categories of the given company |
GET /company/companies/1290/categories HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 95c10896977ec4e336a96705b1d5e5b654606f2113ff219d39ba48c9f9f82db9512177a606bb55f8d95223507c5e4d17810fca3d6e9877422befb4d94794cabc7d26cd1e89df7dff6be78fab4137c0e338771742545946e0f17cfe6f9eebe21478f9d9fc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Array of company.Category.simple: [company.Category.simple]
Field | Type | Description |
---|---|---|
name | [Language: String] | Translated category name |
description | [Language: String] | Description of this category |
active | Bool | A boolean value |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop |
id | Int | ID of the category |
banner | Image? | Nullable. |
seo | company.SeoData | Optional. The category's webpage search engine metatags |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 3679
[
{
"id": 2140,
"name": {
"nl": "NavajoWhite"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2141,
"name": {
"nl": "Khaki"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2142,
"name": {
"nl": "Turquoise"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2143,
"name": {
"nl": "Pink"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2144,
"name": {
"nl": "RosyBrown"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2145,
"name": {
"nl": "LightSlateGray"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2146,
"name": {
"nl": "White"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2147,
"name": {
"nl": "GoldenRod"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2148,
"name": {
"nl": "WhiteSmoke"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
},
{
"id": 2149,
"name": {
"nl": "DeepSkyBlue"
},
"description": {
"nl": "This is a random description"
},
"banner": null,
"active": true,
"only_order_in_store": false,
"seo": {
"title": [],
"description": [],
"url": []
}
}
]