Package org.openwms.wms.location
Class LocationController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.location.LocationController
@Profile("!INMEM")
@MeasuredRestController
public class LocationController
extends org.openwms.core.http.AbstractWebController
A LocationController.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Optional<LocationVO>>
findByErpCodeOpt
(String erpCode) org.springframework.http.ResponseEntity<Optional<LocationVO>>
findByIdOpt
(String locationId) Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleTechnicalRuntimeException, handleValidationException, IllegalArgumentException, translate
-
Field Details
-
mapper
-
locationService
-
-
Constructor Details
-
LocationController
LocationController(LocationService locationService, LocationMapper mapper)
-
-
Method Details
-
findByIdOpt
@GetMapping(value="/v1/locations", params="locationId") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByIdOpt(@RequestParam("locationId") String locationId) -
findByErpCodeOpt
@GetMapping(value="/v1/locations", params="erpCode") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByErpCodeOpt(@RequestParam("erpCode") String erpCode)
-