Interface LocationApi


@FeignClient(name="wms-inventory", qualifiers="wmsLocationApi", decode404=true) public interface LocationApi
A LocationApi deals with Locations.
Author:
Heiko Scherrer
  • Field Details

  • Method Details

    • findByIdOpt

      @GetMapping(value="/v1/locations", params="locationPK") @Cacheable("locations") Optional<LocationVO> findByIdOpt(@RequestParam("locationId") String locationId)
      Find and return a Location representation by the given locationId.
      Parameters:
      locationId - The business key of the Location
      Returns:
      Never null
      Throws:
      IllegalArgumentException - in case the given locationId is not valid
    • findByErpCodeOpt

      @GetMapping(value="/v1/locations", params="erpCode") @Cacheable("wmsLocations") Optional<LocationVO> findByErpCodeOpt(@RequestParam("erpCode") String erpCode)
      Find and return a Location representation by the given erpCode.
      Parameters:
      erpCode - The ERP code
      Returns:
      Never null