Interface CommonTransportUnitApi
@FeignClient(name="common-service",
qualifiers="commonTransportUnitApi")
public interface CommonTransportUnitApi
A CommonTransportUnitApi.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Create aTransportUnit
with the given (minimal) information.Move aTransportUnit
from its current location to thenewLocation
.
-
Method Details
-
moveTU
@PatchMapping(value="/v1/transport-units", params={"bk","newLocation"}) Object moveTU(@RequestParam("bk") String transportUnitBK, @RequestParam("newLocation") String newLocation) Move aTransportUnit
from its current location to thenewLocation
.- Parameters:
transportUnitBK
- The unique (physical) identifiernewLocation
- The newLocation
to move to- Returns:
- The updated instance
-
createTU
@PostMapping(value="/v1/transport-units", params={"bk","actualLocation","tut"}) void createTU(@RequestParam("bk") String transportUnitBK, @RequestParam("actualLocation") String actualLocation, @RequestParam("tut") String tut, @RequestParam(value="strict",required=false) Boolean strict) Create aTransportUnit
with the given (minimal) information.- Parameters:
transportUnitBK
- The unique (physical) identifieractualLocation
- The current location of theTransportUnit
tut
- The type (TransportUnitType
strict
- If theTransportUnit
already exists and this istrue
an error is thrown. Iffalse
, the implementation exists silently (default)
-