Class ReceivingController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.receiving.ReceivingController

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

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • service

      private final ReceivingService service
    • translator

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

      private final org.ameba.mapping.BeanMapper mapper
    • receivingMapper

      private final ReceivingMapper receivingMapper
  • Constructor Details

    • ReceivingController

      ReceivingController(ReceivingService service, org.ameba.i18n.Translator translator, org.ameba.mapping.BeanMapper mapper, ReceivingMapper receivingMapper)
  • Method Details

    • index

      @GetMapping("/v1/receiving-orders/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()
    • findAll

      @Transactional(readOnly=true) @GetMapping("/v1/receiving-orders") public org.springframework.http.ResponseEntity<List<ReceivingOrderVO>> findAll()
    • findOrder

      @Transactional(readOnly=true) @GetMapping("/v1/receiving-orders/{pKey}") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrder(@PathVariable("pKey") String pKey)
    • findOrderByOrderId

      @Transactional(readOnly=true) @GetMapping(value="/v1/receiving-orders", params="orderId") public org.springframework.http.ResponseEntity<ReceivingOrderVO> findOrderByOrderId(@RequestParam("orderId") String orderId)
    • createOrder

      @Transactional @Validated(CreateQuantityReceipt.class) @PostMapping("/v1/receiving-orders") public org.springframework.http.ResponseEntity<ReceivingOrderVO> createOrder(@Validated(CreateQuantityReceipt.class) @Valid @RequestBody @Valid ReceivingOrderVO orderVO, javax.servlet.http.HttpServletRequest req)
    • createExpectedTUReceipt

      @Transactional @Validated(CreateExpectedTUReceipt.class) @PostMapping(value="/v1/receiving-orders", consumes="application/vnd.openwms.receiving-order-v2+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> createExpectedTUReceipt(@Validated(CreateExpectedTUReceipt.class) @Valid @RequestBody @Valid ReceivingOrderVO orderVO, javax.servlet.http.HttpServletRequest req)
    • captureOrder

      @PostMapping(value="/v1/receiving-orders/{pKey}/capture", params="loadUnitType") public org.springframework.http.ResponseEntity<ReceivingOrderVO> captureOrder(@PathVariable("pKey") String pKey, @RequestParam("loadUnitType") String loadUnitType, @Valid @RequestBody @Valid List<CaptureRequestVO> requests)
    • completeOrder

      @PostMapping("/v1/receiving-orders/{pKey}/complete") public org.springframework.http.ResponseEntity<ReceivingOrderVO> completeOrder(@PathVariable("pKey") String pKey)
    • saveOrder

      @PutMapping("/v1/receiving-orders/{pKey}") public org.springframework.http.ResponseEntity<ReceivingOrderVO> saveOrder(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid ReceivingOrderVO receivingOrder)
    • patchOrder

      @PatchMapping("/v1/receiving-orders/{pKey}") public org.springframework.http.ResponseEntity<ReceivingOrderVO> patchOrder(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid ReceivingOrderVO receivingOrder)