Feature #229
openFeature #217: [api] DANH MỤC - POST - PRODUCT
[api] #217 product popular
0%
Description
/v1/e-visa/product/popular?sort=priority&limit=20
api này đang dùng table e_visa_product_categoy
chuyển qua dùng table mới e_visa_destinations
Nếu không có param domain thì mặc định sẽ lấy domain=EW
còn có &domain=ES (TK...) thì lấy theo domain
ghi chú
// source đang lấy mặc định ở table product_category <=> e_visa_destinations.domain = 'EW'
// làm mới nếu không có &domain=XXX thì lấy mặc định EW, còn có domain thì lấy theo domain
// => nghĩa là app vẫn sẽ xuất hiện data EW như cũ, còn web sẽ lấy được theo domain
phải đảm bảo không thay đổi response cũ
{
"status": true,
"status_code": 200,
"message": "Lấy dữ liệu thành công.",
"data": [
{
"code": "TR",
"name_en": "Turkey",
"image_url": "https://cdn.190evisa.com/product-category/turkey.jpg"
},
{
"code": "NZ",
"name_en": "New Zealand",
"image_url": "https://cdn.190evisa.com/product-category/new-zealand.jpg"
},
No data to display