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 Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • mapper

      private final LocationMapper mapper
    • locationService

      private final LocationService locationService
  • Constructor Details

  • 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)
    • requestDeleteLocation

      @PostMapping("/v1/locations/remove") public org.springframework.http.ResponseEntity<Boolean> requestDeleteLocation(@RequestBody List<String> pKeys)
    • deleteLocation

      @DeleteMapping("/v1/locations") public org.springframework.http.ResponseEntity<Void> deleteLocation(@RequestBody List<String> pKeys)