Storefront
class Storefront
The storefront's reads of the catalog, service routes beside the product's queries: a product as a shopper sees it, a category's products in a page, and the price of a basket's lines. Each reads as its caller (RouteCall.queries), so it sees what the caller may; only a published product is on the storefront.
Types
Functions
Link copied to clipboard
@ServiceRoute(method = RouteMethod.GET, path = "categories/{categoryId}/listings", errors = ["eshop-catalog.limit-out-of-range"] )
The published products of categoryId, cheapest first: limit of them, 20 when it is not given.
Link copied to clipboard
The product id as the storefront shows it; none (204 No Content) while it is not published.
Link copied to clipboard
@ServiceRoute(method = RouteMethod.POST, path = "quotes", errors = ["eshop-catalog.not-on-sale", "eshop-catalog.quantity-not-positive"] )
The price of request's lines, each at its product's price; refused when one is not on the storefront.