Interface CommonLocationApi


@FeignClient(name="common-service", dismiss404=true, qualifiers="locationApi") public interface CommonLocationApi
A CommonLocationApi defines the public REST API to manage Locations. It is a Feign remote stub that can be used by client application.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    Find and return a Location representation by the given erpCode.
  • Method Details

    • findByErpCode

      @GetMapping(value="/v1/locations", params="erpCode", produces="application/vnd.openwms.common.location-opt-v1+json") @Cacheable("locations") Optional<CommonLocationVO> findByErpCode(@RequestParam("erpCode") String erpCode)
      Find and return a Location representation by the given erpCode.
      Parameters:
      erpCode - The ERP code
      Returns:
      Never null