Class MovementController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.movements.MovementController

@Validated @MeasuredRestController @RefreshScope public class MovementController extends org.openwms.core.http.AbstractWebController
A MovementController.
Author:
Heiko Scherrer
  • Field Details

  • Constructor Details

  • Method Details

    • index

      @GetMapping("/v1/movements/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()
    • create

      @PostMapping("/v1/transport-units/{bk}/movements") @Validated(Create.class) public org.springframework.http.ResponseEntity<MovementVO> create(@PathVariable("bk") String bk, @Valid @RequestBody @Valid MovementVO movement, javax.servlet.http.HttpServletRequest req)
    • move

      @PatchMapping("/v1/movements/{pKey}") @Validated(Move.class) public org.springframework.http.ResponseEntity<MovementVO> move(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid MovementVO movement)
    • complete

      @PatchMapping("/v1/movements/{pKey}/complete") @Validated(Complete.class) public org.springframework.http.ResponseEntity<MovementVO> complete(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid MovementVO movement)
    • cancel

      @DeleteMapping("/v1/movements/{pKey}") public org.springframework.http.ResponseEntity<MovementVO> cancel(@PathVariable("pKey") String pKey)
    • findAll

      @GetMapping("/v1/movements") public org.springframework.http.ResponseEntity<List<MovementVO>> findAll()
    • findForTuAndTypesAndStates

      @GetMapping(value="/v1/movements", params={"barcode","types","states"}) public org.springframework.http.ResponseEntity<List<MovementVO>> findForTuAndTypesAndStates(@RequestParam("barcode") String barcode, @RequestParam("types") List<MovementType> types, @RequestParam("states") List<String> states)
    • findForStateAndTypesAndSource

      @GetMapping(value="/v1/movements", params={"state","types"}) public org.springframework.http.ResponseEntity<List<MovementVO>> findForStateAndTypesAndSource(@RequestParam("state") String state, @RequestParam(value="source",required=false) String source, @RequestParam("types") MovementType... types)