Interface CommonLocationApi
@FeignClient(name="common-service",
dismiss404=true,
qualifiers="locationApi")
public interface CommonLocationApi
A CommonLocationApi defines the public REST API to manage
Location
s. It is a Feign remote stub that can be used by client
application.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionfindByErpCode
(String erpCode) Find and return aLocation
representation by the givenerpCode
.
-
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 aLocation
representation by the givenerpCode
.- Parameters:
erpCode
- The ERP code- Returns:
- Never null
-