Skip to main content

PortalCatalogController

The storefront catalog.

Base path/api/portal/catalog
ModuleInventory & Portal
Endpoints8
OpenAPI tagPortal Catalog
Sourcebackend/src/main/java/com/motorph/payroll/controller/PortalCatalogController.java

Endpoints​

MethodPathRequiresHandler
GET/api/portal/catalog/itemsPORTAL_CUSTOMERlistItems()
GET/api/portal/catalog/searchPORTAL_CUSTOMERsearch()
GET/api/portal/catalog/suggestPORTAL_CUSTOMERsuggest()
GET/api/portal/catalog/items/{itemId}/relatedPORTAL_CUSTOMERrelated()
GET/api/portal/catalog/items/{itemId}/detailsPORTAL_CUSTOMERdetails()
GET/api/portal/catalog/items/{itemId}/imagesPORTAL_CUSTOMERimages()
GET/api/portal/catalog/items/{itemId}PORTAL_CUSTOMERgetItem()
GET/api/portal/catalog/categoriesPORTAL_CUSTOMERgetCategories()

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/.