ProductDTO
Represents a product in the catalog with its available sizes. Products are identified by a unique ID and belong to a specific brand.Fields
Unique identifier for the product
Identifier of the brand this product belongs to
List of available sizes for this product (e.g., [“S”, “M”, “L”, “XL”])
Example
ProductItemDTO
Represents a specific product item with a particular size and quantity. Used in stock inventories, demand lists, and stock assignments.Fields
Unique identifier for the product item
Reference to the parent product ID
Specific size of this product item (e.g., “M”, “L”)
Quantity of units available or demanded
Example
Usage Context
ProductItem objects are used in:- Warehouse stock inventories - tracking available units
- Store demand lists - representing requested quantities
- Stock assignments - linking specific product items to fulfillment operations
Related Endpoints
- GET /api/products - Returns list of ProductDTO objects
- POST /api/products - Create new product with sizes
- GET /api/warehouses/ - Returns warehouse with stock ProductItems
- GET /api/stores/ - Returns store with demand ProductItems