Package org.openwms.wms.receiving.rest
Class ReceivingController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.receiving.rest.ReceivingController
@Validated
@MeasuredRestController
public class ReceivingController
extends org.openwms.core.http.AbstractWebController
A ReceivingController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final RestServiceFacadeImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Void> captureBlindReceipt
(List<CaptureRequestVO> requests) org.springframework.http.ResponseEntity
<ReceivingOrderVO> captureOrder
(String pKey, @Valid List<CaptureRequestVO> requests) org.springframework.http.ResponseEntity
<ReceivingOrderVO> completeOrder
(String pKey) protected org.springframework.http.ResponseEntity
<org.ameba.http.Response<?>> org.springframework.http.ResponseEntity
<org.openwms.core.http.Index> index()
org.springframework.http.ResponseEntity
<ReceivingOrderVO> patchOrder
(String pKey, @Valid ReceivingOrderVO receivingOrder) org.springframework.http.ResponseEntity
<ReceivingOrderVO> saveOrder
(String pKey, @Valid ReceivingOrderVO receivingOrder) Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
EXC_LOGGER
private static final org.slf4j.Logger EXC_LOGGER -
service
-
-
Constructor Details
-
ReceivingController
ReceivingController(RestServiceFacadeImpl service)
-
-
Method Details
-
handleNotApprovedException
@ExceptionHandler(NotApprovedException.class) protected org.springframework.http.ResponseEntity<org.ameba.http.Response<?>> handleNotApprovedException(NotApprovedException rnae) -
index
@GetMapping("/v1/receiving-orders/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
captureOrder
@PostMapping(value="/v1/receiving-orders/{pKey}/capture", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> captureOrder(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid List<CaptureRequestVO> requests) -
captureBlindReceipt
@PostMapping(value="/v1/capture", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<Void> captureBlindReceipt(@RequestBody List<CaptureRequestVO> requests) -
completeOrder
@PostMapping(value="/v1/receiving-orders/{pKey}/complete", produces="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> completeOrder(@PathVariable("pKey") String pKey) -
saveOrder
@PutMapping(value="/v1/receiving-orders/{pKey}", produces="application/vnd.openwms.receiving-order-v1+json", consumes="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> saveOrder(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid ReceivingOrderVO receivingOrder) -
patchOrder
@PatchMapping(value="/v1/receiving-orders/{pKey}", produces="application/vnd.openwms.receiving-order-v1+json", consumes="application/vnd.openwms.receiving-order-v1+json") public org.springframework.http.ResponseEntity<ReceivingOrderVO> patchOrder(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid ReceivingOrderVO receivingOrder)
-