Class WorkflowApi

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.common.location.WorkflowApi

@Profile("!INMEM") @Validated @MeasuredRestController public class WorkflowApi extends org.openwms.core.http.AbstractWebController
A WorkflowApi.
Author:
Heiko Scherrer
  • Field Details

    • mapper

      private final LocationMapper mapper
    • translator

      private final org.ameba.i18n.Translator translator
    • locationService

      private final LocationService locationService
  • Constructor Details

  • Method Details

    • createLocation

      @PostMapping(value="/v1/locations", produces="application/vnd.openwms.common.location-opt-v1+json") @Validated(Create.class) public org.springframework.http.ResponseEntity<Optional<LocationVO>> createLocation(@Valid @RequestBody @Valid LocationVO location, jakarta.servlet.http.HttpServletRequest req)
    • updateLocation

      @PutMapping(value="/v1/locations", produces="application/vnd.openwms.common.location-opt-v1+json") @Validated(Update.class) public org.springframework.http.ResponseEntity<Optional<LocationVO>> updateLocation(@Valid @RequestBody @Valid LocationVO location)
    • findByPKeyOpt

      @GetMapping(value="/v1/locations/{pKey}", produces="application/vnd.openwms.common.location-opt-v1+json") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByPKeyOpt(@PathVariable("pKey") String pKey)
    • addSelfLink

      private void addSelfLink(LocationVO result)
    • findByIdOpt

      @GetMapping(value="/v1/locations", params="locationId", produces="application/vnd.openwms.common.location-opt-v1+json") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByIdOpt(@RequestParam("locationId") String locationId)
    • findByErpCodeOpt

      @GetMapping(value="/v1/locations", params="erpCode", produces="application/vnd.openwms.common.location-opt-v1+json") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByErpCodeOpt(@RequestParam("erpCode") String erpCode)
    • findByPlcCodeOpt

      @GetMapping(value="/v1/locations", params="plcCode", produces="application/vnd.openwms.common.location-opt-v1+json") public org.springframework.http.ResponseEntity<Optional<LocationVO>> findByPlcCodeOpt(@RequestParam("plcCode") String plcCode)