Package org.openwms.wms.movements.api
Interface MovementApi
@FeignClient(name="movement-service",
qualifiers="movementApi",
decode404=true)
public interface MovementApi
A MovementApi is the public outer API that can be used by clients.
- Author:
- Heiko Scherrer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String bk, MovementVO movement) Create aMovement
for aTransportUnit
.findForStateAndTypes
(String state, MovementType... types) Find and returnMovement
s.Find and return allMovement
s order forTransportUnit
s.
-
Field Details
-
API_VERSION
API version.- See Also:
-
API_MOVEMENTS
API root to hit Movements (plural).- See Also:
-
-
Method Details
-
create
@PostMapping("/v1/transport-units/{bk}/movements") MovementVO create(@PathVariable("bk") String bk, @RequestBody MovementVO movement) Create aMovement
for aTransportUnit
.- Parameters:
bk
- The identifying business key of the TransportUnitmovement
- The details of the Movement
-
findForStateAndTypes
@GetMapping(value="/v1/movements", params={"state","types"}) List<MovementVO> findForStateAndTypes(@RequestParam("state") String state, @RequestParam("types") MovementType... types) Find and returnMovement
s.- Parameters:
state
- The state the Movement shall reside intypes
- Allowed types of Movements to search for- Returns:
- A list of all instances, never null
-
findForTuAndTypesAndStates
@GetMapping(value="v1/movements", params={"barcode","types","states"}) List<MovementVO> findForTuAndTypesAndStates(@RequestParam("barcode") String barcode, @RequestParam("types") List<String> types, @RequestParam("states") List<String> states) Find and return allMovement
s order forTransportUnit
s.- Parameters:
barcode
- The business key of the TransportUnittypes
- A list of types the Movements must resist instates
- A list of states the Movements must resist in- Returns:
- A list of all instances, never null
-