Interface AllocatorApi


@FeignClient(name="wms-inventory", qualifiers="allocatorApi", decode404=true) public interface AllocatorApi
A AllocatorApi.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    allocate(Demand demand, List<String> sourceLocationGroupNames)
    Ask (and also may reserve) a quantity of a product to allocate.
  • Method Details

    • allocate

      @PostMapping("/allocation/transport-units") List<Allocation> allocate(@RequestBody Demand demand, @RequestParam(value="sourceLocationGroupNames",required=false) List<String> sourceLocationGroupNames)
      Ask (and also may reserve) a quantity of a product to allocate.
      Parameters:
      demand - The demand encapsulated as an Demand
      sourceLocationGroupNames - A list of LocationGroup names to search the material in
      Returns:
      An array of available Allocations