This commit is contained in:
Phuoc Nguyen
2025-10-28 15:51:48 +07:00
parent e14ae56c3c
commit 0010446298
6 changed files with 352 additions and 39 deletions

View File

@@ -53,11 +53,18 @@ class ApiEndpoints {
// ==================== Product Endpoints ====================
/// Get products for a warehouse
/// Get products for import (all products)
/// GET: /portalProduct/getAllProduct (requires auth token)
/// Response: List of products
static const String products = '/portalProduct/getAllProduct';
/// Get products for export (products in specific warehouse)
/// GET: /portalWareHouse/GetAllProductsInWareHouse?warehouseId={id} (requires auth token)
/// Query param: warehouseId (int)
/// Response: List of products in warehouse
static String productsForExport(int warehouseId) =>
'/portalWareHouse/GetAllProductsInWareHouse?warehouseId=$warehouseId';
/// Get product stage in warehouse
/// POST: /portalWareHouse/GetProductStageInWareHouse
/// Body: { "WareHouseId": int, "ProductId": int }