Class InventoryAvailabilityIndexEndpoint

java.lang.Object
com.broadleafcommerce.catalogbrowse.web.endpoint.InventoryAvailabilityIndexEndpoint

@FrameworkRestController @FrameworkMapping("/inventory-availability-index") @DataRouteByKey("catalogbrowse") public class InventoryAvailabilityIndexEndpoint extends Object
Since:
Catalog Browse Service 2.2.0, Release Train 2.3.0
Author:
Susana Cruz (susanacruz)
  • Field Details

  • Constructor Details

  • Method Details

    • readProductAvailabilityIndex

      @FrameworkGetMapping("/{productId}") public ProductAvailabilityIndex readProductAvailabilityIndex(jakarta.servlet.http.HttpServletRequest request, @PathVariable("productId") String productId, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Fetches all LiteVariants related to a given productId and finds their inventory availability.
      Parameters:
      request - HttpServletRequest for the request
      productId - the productId to find inventory availability for
      contextInfo - ContextInfo for multitenant and sandbox conditions
    • getInventoryAvailabilityIndexService

      protected InventoryAvailabilityIndexService getInventoryAvailabilityIndexService()