Prices REST API
Read-only endpoints for listing products, searching products, and calculating comparison results.
Endpoints
GET
/api/prices/productsList all supported products. Optionally supports `?id=` to fetch one product.
GET
/api/prices/products/search?q={keyword}Search public product data by keyword across name, brand, unit, and remark.
POST
/api/prices/calcCalculate prices like overview. Body supports { productId | productName, totalPrice, totalQuantity, quantityUnit? }.
Notes
- List/search/calc endpoints are read-only and do not require login.
- ADMIN manage/write endpoints (CRUD) require login. They are shown here only after authentication.
Playground
Send requests and view responses.