PortalCatalogController
The storefront catalog.
| Base path | /api/portal/catalog |
| Module | Inventory & Portal |
| Endpoints | 8 |
| OpenAPI tag | Portal Catalog |
| Source | backend/src/main/java/com/motorph/payroll/controller/PortalCatalogController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/portal/catalog/items | PORTAL_CUSTOMER | listItems() |
GET | /api/portal/catalog/search | PORTAL_CUSTOMER | search() |
GET | /api/portal/catalog/suggest | PORTAL_CUSTOMER | suggest() |
GET | /api/portal/catalog/items/{itemId}/related | PORTAL_CUSTOMER | related() |
GET | /api/portal/catalog/items/{itemId}/details | PORTAL_CUSTOMER | details() |
GET | /api/portal/catalog/items/{itemId}/images | PORTAL_CUSTOMER | images() |
GET | /api/portal/catalog/items/{itemId} | PORTAL_CUSTOMER | getItem() |
GET | /api/portal/catalog/categories | PORTAL_CUSTOMER | getCategories() |
Notes
GET /api/portal/catalog/search— Search with filters, sort and facet counts.GET /api/portal/catalog/suggest— Type-ahead for the storefront search box: a few items and categories (2+ characters).GET /api/portal/catalog/items/{itemId}/details— Brand, grouped specifications, which motorcycles the item fits, and when its stock last moved.GET /api/portal/catalog/items/{itemId}/images— The item's photos in order, the main one first; empty when it has none.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: PortalCatalogServiceImpl, ItemMediaService, ItemStorefrontService.
Tables reached
None through a Spring Data repository — this controller is stateless, or its work is delegated to a component that reaches storage another way.
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.