Categories
Category Resource
Key | Type | Description |
---|---|---|
id | Integer | an uniquely identifies the category. |
name | String | the name of the category in a non-specific language. |
name_en | String | the name of the category in English. |
name_ar | String | the name of the category in Arabic. |
slug | String | the category's URL slug, which is typically used in the website's URLs. |
description | String | the category's description in a non-specific language. |
description_en | String | the category's description in English. |
description_ar | String | the category's description in Arabic. |
order | Integer | the order in which the category appears on the website, with 1 being the first category. |
parent_id | Integer | the ID of the category's parent, if it has one. If the category has no parent, this key should be null. |
featured | Integer | the category is featured or not. A value of 1 indicates that the category is featured, while a value of 0 indicates that it is not. |
image | String | the URL of the image associated with the category. |
attributes | Array | an array of attribute objects that are associated with the category. |
groups | Array | an array of group objects that are associated with the category. |
Sub Categories Resource
Key | Type | Description |
---|---|---|
id | Integer | an uniquely identifies the subcategory. |
name | String | the name of the subcategory in a non-specific language. |
name_en | String | the name of the subcategory in English. |
name_ar | String | the name of the subcategory in Arabic. |
description | String | the subcategory's description in a non-specific language. |
description_en | String | the subcategory's description in English. |
description_ar | String | the subcategory's description in Arabic. |
parent_id | Integer | the ID of the subcategory's parent category. |
order | Integer | the order in which the subcategory appears under its parent category, with 0 being the first subcategory. |
image | string | the URL of the image associated with the subcategory. |
attributes | Array | an array of attribute objects that are associated with the subcategory. |
sub_categories | Array | an array of subcategory objects that are associated with the subcategory. If there are no subcategories associated with the subcategory, this key should be an empty array. |
Category Simple Resource
Key | Type | Description |
---|---|---|
id | Integer | A unique identifier for the category. |
name | String | The name of the category in English. |
name_ar | String | The name of the category in Arabic. |
sub_categories | Object | An array of sub-categories that belong to this category. |
SubCategory Simple Resource
Key | Type | Description |
---|---|---|
id | Integer | A unique identifier for the sub-category. |
name | String | The name of the sub-category in English. |
name_ar | String | The name of the sub-category in Arabic. |