Package org.openwms.wms.shipping
Class ShippingOrderPositionController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.shipping.ShippingOrderPositionController
@Validated
@MeasuredRestController
class ShippingOrderPositionController
extends org.openwms.core.http.AbstractWebController
A ShippingOrderPositionController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShippingMapper
private final ShippingOrderPositionService
-
Constructor Summary
ConstructorsConstructorDescriptionShippingOrderPositionController
(ShippingMapper mapper, ShippingOrderPositionService shippingOrderPositionService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<BaseShippingOrderPositionVO> changeState
(String pKey, String state) org.springframework.http.ResponseEntity
<BaseShippingOrderPositionVO> findByPKey
(String pKey) org.springframework.http.ResponseEntity
<org.openwms.core.http.Index> index()
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
-
mapper
-
shippingOrderPositionService
-
-
Constructor Details
-
ShippingOrderPositionController
ShippingOrderPositionController(ShippingMapper mapper, ShippingOrderPositionService shippingOrderPositionService)
-
-
Method Details
-
index
@GetMapping("/v1/shipping-order-positions/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
findByPKey
@GetMapping("/v1/shipping-order-positions/{pKey}") @Transactional(readOnly=true) public org.springframework.http.ResponseEntity<BaseShippingOrderPositionVO> findByPKey(@PathVariable("pKey") String pKey) -
changeState
@PatchMapping(value="/v1/shipping-order-positions/{pKey}", params="state") @Transactional public org.springframework.http.ResponseEntity<BaseShippingOrderPositionVO> changeState(@PathVariable("pKey") String pKey, @RequestParam("state") String state)
-