Interface CommonTransportUnitApi


@FeignClient(name="common-service", qualifiers="commonTransportUnitApi") public interface CommonTransportUnitApi
A CommonTransportUnitApi.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createTU(String transportUnitBK, String actualLocation, String tut, Boolean strict)
    Create a TransportUnit with the given (minimal) information.
    moveTU(String transportUnitBK, String newLocation)
    Move a TransportUnit from its current location to the newLocation.
  • Method Details

    • moveTU

      @PatchMapping(value="/v1/transport-units", params={"bk","newLocation"}) Object moveTU(@RequestParam("bk") String transportUnitBK, @RequestParam("newLocation") String newLocation)
      Move a TransportUnit from its current location to the newLocation.
      Parameters:
      transportUnitBK - The unique (physical) identifier
      newLocation - The new Location 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 a TransportUnit with the given (minimal) information.
      Parameters:
      transportUnitBK - The unique (physical) identifier
      actualLocation - The current location of the TransportUnit
      tut - The type (TransportUnitType
      strict - If the TransportUnit already exists and this is true an error is thrown. If false, the implementation exists silently (default)