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 Summary
-
Method Details
-
findBySKU
@GetMapping(value="/v1/products", params="sku") @Cacheable("products") ProductVO findBySKU(@RequestParam("sku") String sku) Find and return aProduct
identified by itsSKU
.- 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) GetsProduct
based onProductUnit
pKey- Parameters:
pKey
- The pKey of the productUnit
-