# Trang Product 2
# Lấy danh sách "Danh Mục Sản Phẩm" và " Công cụ gia công" - Done
Sử dụng APi này để lấy tất cả các Category level 3 và 3 sản phẩm tiêu biểu
# Endpoint
# Parameters
Name | Type | Description | Required |
---|---|---|---|
id | String | ✔️ | |
slug | String | ✔️ | |
productLimit | String | ✔️ | |
productOffset | String | ➖ |
# Response
{
"status": true,
"messageCode": "success",
"messageContent": "success",
"data": {
"categoryId": 31,
"categoryName": "Bóng đèn LED BULB",
"categorySlug": "bong-den-led-bulb",
"categoryPath": [
{
"id": "30",
"name": "ĐÈN LED ",
"slug": "den-led"
},
{
"id": "31",
"name": "Bóng đèn LED BULB",
"slug": "bong-den-led-bulb"
}
],
"totalCnt": 0,
"items": [
...
]
}
}
curl -X POST http://localhost:3000/category/ei/getCategoryProductLevel \
-H 'Content-Type: application/json' \
--data '{
"id": "31",
"slug":"bong-den-led-bulb"
"productLimit":"3"
}'
# Lấy danh sách "Thuộc Tính Sản Phẩm"
Sử dụng APi này để lấy Thuộc Tính Sản Phẩm
# Endpoint
# Parameters
Name | Type | Description | Required |
---|---|---|---|
id | String | ✔️ | |
slug | String | ✔️ |
# Response
{
"status": true,
"messageCode": "success",
"messageContent": "success",
"data": {
"categoryId": 8,
"categoryName": "Rustic Wooden Chips",
"categorySlug": "rustic-wooden-chips",
"totalCnt": 10,
"items": [
{
"id": 13,
"name": "Awesome Steel Pants",
"image": "http://placeimg.com/640/480",
"slug": "awesome-steel-pants",
"items": [
{
"id": 154,
"name": "hhhhhhhhhhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/192587241_2139972466170676_1068249686044846344_n.jpg",
"price": 1000000,
"slug": "hhhhhhhhhhhhhhhhh"
},
{
"id": 155,
"name": "hhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/be.png",
"price": 10000000,
"slug": "hhhhhhhhh"
},
{
"id": 178,
"name": "kkkkkkkkk",
"images": "https://unsplash.it/200?random",
"price": 9800000,
"slug": "kkkkkkkkk"
}
]
},
...
]
}
}
curl -X POST http://localhost:3000/category/ei/getCategoryProductLevel \
-H 'Content-Type: application/json' \
--data '{
"id": "8",
"slug":"rustic-wooden-chips"
"productLimit":"3"
}'
# Lấy danh sách "Thương Hiệu Nổi Bật"
Sử dụng APi này để lấy Thương Hiệu Nổi Bật
# Endpoint
# Parameters
Name | Type | Description | Required |
---|---|---|---|
id | String | ✔️ | |
slug | String | ✔️ |
# Response
{
"status": true,
"messageCode": "success",
"messageContent": "success",
"data": {
"categoryId": 8,
"categoryName": "Rustic Wooden Chips",
"categorySlug": "rustic-wooden-chips",
"totalCnt": 10,
"items": [
{
"id": 13,
"name": "Awesome Steel Pants",
"image": "http://placeimg.com/640/480",
"slug": "awesome-steel-pants",
"items": [
{
"id": 154,
"name": "hhhhhhhhhhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/192587241_2139972466170676_1068249686044846344_n.jpg",
"price": 1000000,
"slug": "hhhhhhhhhhhhhhhhh"
},
{
"id": 155,
"name": "hhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/be.png",
"price": 10000000,
"slug": "hhhhhhhhh"
},
{
"id": 178,
"name": "kkkkkkkkk",
"images": "https://unsplash.it/200?random",
"price": 9800000,
"slug": "kkkkkkkkk"
}
]
},
...
]
}
}
curl -X POST http://localhost:3000/category/ei/getCategoryProductLevel \
-H 'Content-Type: application/json' \
--data '{
"id": 8,
"slug":"rustic-wooden-chips"
}'
# Lấy danh sách "Khoảng giá"
Sử dụng APi này để lấy Khoảng giá
# Endpoint
# Parameters
Name | Type | Description | Required |
---|---|---|---|
id | String | ✔️ | |
slug | String | ✔️ |
# Response
{
"status": true,
"messageCode": "success",
"messageContent": "success",
"data": {
"categoryId": 8,
"categoryName": "Rustic Wooden Chips",
"categorySlug": "rustic-wooden-chips",
"totalCnt": 10,
"items": [
{
"id": 13,
"name": "Awesome Steel Pants",
"image": "http://placeimg.com/640/480",
"slug": "awesome-steel-pants",
"items": [
{
"id": 154,
"name": "hhhhhhhhhhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/192587241_2139972466170676_1068249686044846344_n.jpg",
"price": 1000000,
"slug": "hhhhhhhhhhhhhhhhh"
},
{
"id": 155,
"name": "hhhhhhhhh",
"images": "https://ei-dev-store.s3.amazonaws.com/products/1/1/be.png",
"price": 10000000,
"slug": "hhhhhhhhh"
},
{
"id": 178,
"name": "kkkkkkkkk",
"images": "https://unsplash.it/200?random",
"price": 9800000,
"slug": "kkkkkkkkk"
}
]
},
...
]
}
}
curl -X POST http://localhost:3000/category/ei/getCategoryProductLevel \
-H 'Content-Type: application/json' \
--data '{
"id": 8,
"slug":"rustic-wooden-chips"
}'