Class AllocationController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.inventory.allocation.AllocationController
@Validated
@MeasuredRestController
public class AllocationController
extends org.openwms.core.http.AbstractWebController
A AllocationController.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AllocationMapper
private final AllocationService
private static final org.slf4j.Logger
-
Constructor Summary
ConstructorsConstructorDescriptionAllocationController
(AllocationMapper allocationMapper, AllocationService allocationService) -
Method Summary
Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleTechnicalRuntimeException, handleValidationException, IllegalArgumentException, translate
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
allocationMapper
-
allocationService
-
-
Constructor Details
-
AllocationController
AllocationController(AllocationMapper allocationMapper, AllocationService allocationService)
-
-
Method Details
-
allocate
@PostMapping("/allocation/transport-units") public org.springframework.http.ResponseEntity<List<AllocationVO>> allocate(@Valid @NotNull @RequestBody @Valid @NotNull Demand demand, @RequestParam(value="sourceLocationGroupNames",required=false) List<String> sourceLocationGroupNames)
-