Ստանալ Ապրանքի Կատեգորիան
{{ data.category.get(:id) }}
- Հարցման պարամետրեր
| Պարամետր |
Տիպ |
Նկարագրություն |
| id required |
int |
Ապրանքի կատեգորիայի իդենտիֆիկատոր |
- Հաջողված հարցման պատասխան
HHTP/1.1 200 OK
{
id: 1,
parentId: 0,
alias: "shirts",
name: "Shirts",
photo: "https://cdn.storech.com/uploads/product-category-photo/photo.png",
productCount: 20,
child: [
{
id: 15
parentId: 1,
alias: "baby-shirts",
name: "Baby shirts",
photo: "https://cdn.storech.com/uploads/product-category-photo/photo.png",
productCount: 15
}
...
]
}
or
false
- Հարցման արդյունքի պարամետրեր
| Պարամետր |
Տիպ |
Նկարագրություն |
| id |
int |
Ապրանքի կատեգորիայի իդենտիֆիկատոր |
| parentId |
int |
Հայրական կատեգորիայի իդենտիֆիկատոր |
| alias |
string |
Ապրանքի կատեգորիայի հղում |
| name |
string |
Ապրանքի կատեգորիայի անվանում |
| photo |
string |
Ապրանքի կատեգորիայի նկար |
| productCount |
int |
Ապրանքների քանակը կատեգորիայում |
| child |
array |
Դուստր կատեգորիաներ |
Սատանալ Ապրանքի Կատեգորիաների Ցանկը
{{ data.category.list({}) }}
- Հաջողված հարցման պատասխան
HTTP/1.1 200 OK
[
{
id: 1,
parentId: 0,
alias: "shirts",
name: "Shirts",
photo: "https://cdn.storech.com/uploads/product-category-photo/photo.png",
productCount: 20,
child: [
{
id: 15
parentId: 1,
alias: "baby-shirts",
name: "Baby shirts",
photo: "https://cdn.storech.com/uploads/product-category-photo/photo.png",
productCount: 15
}
...
]
}
...
]
or
[]
- Հաջողված հարցման պարամետրեր
| Պարամետր |
Տիպ |
Նկարագրություն |
| id |
int |
Ապրանքի կատեգորիայի իդենտիֆիկատոր |
| parentId |
int |
Հայրական կատեգորիայի իդենտիֆիկատոր |
| alias |
string |
Ապրանքի կատեգորիայի հղում |
| name |
string |
Ապրանքի կատեգորիայի անվանում |
| photo |
string |
Ապրանքի կատեգորիայի նկար |
| productCount |
int |
Ապրանքների քանակը կատեգորիայում |
| child |
array |
Դուստր կատեգորիաներ |