Interface ProductApi


@FeignClient(name="wms-inventory", qualifiers="productApi") interface ProductApi
A ProductApi is the Feign client used internally, not by any business logic directly.
Author:
Heiko Scherrer
  • Method Details

    • findBySKU

      @GetMapping(value="/v1/products", params="sku") @Cacheable("products") ProductVO findBySKU(@RequestParam("sku") String sku)
      Find and return a Product identified by its SKU.
      Parameters:
      sku - The identifying SKU attribute
      Returns:
      The instance or null
    • findProductByProductUnitPkey

      @GetMapping("/v1/product/product-units/{pKey}") @Cacheable("products") ProductVO findProductByProductUnitPkey(@PathVariable("pKey") String pKey)
      Gets Product based on ProductUnit pKey
      Parameters:
      pKey - The pKey of the productUnit