Package org.openwms.wms.movements.api
Interface MovementApi
@FeignClient(name="movement-service",
qualifiers="movementApi",
dismiss404=true)
public interface MovementApi
A MovementApi is the public outer API that can be used by clients.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate(String bk, MovementVO movement) Create aMovementfor aTransportUnit.findForStateAndTypes(String state, MovementType... types) Find and returnMovements.Find and return allMovements order forTransportUnits.
-
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 aMovementfor 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 returnMovements.- 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 allMovements order forTransportUnits.- 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
-