Interface CommonTransportUnitApi
@FeignClient(name="common-service",
qualifiers="commonTransportUnitApi")
public interface CommonTransportUnitApi
A CommonTransportUnitApi.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreate aTransportUnitwith the given (minimal) information.Move aTransportUnitfrom 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 aTransportUnitfrom its current location to thenewLocation.- Parameters:
transportUnitBK- The unique (physical) identifiernewLocation- The newLocationto 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 aTransportUnitwith the given (minimal) information.- Parameters:
transportUnitBK- The unique (physical) identifieractualLocation- The current location of theTransportUnittut- The type (TransportUnitTypestrict- If theTransportUnitalready exists and this istruean error is thrown. Iffalse, the implementation exists silently (default)
-