Package org.openwms.wms.shipping.api
Interface ShippingApi
@FeignClient(name="wms-shipping",
qualifiers="shippingApi")
public interface ShippingApi
A ShippingApi.
- Author:
- Heiko Scherrer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrder
(@NotNull ShippingOrderVO shippingOrder) Create a newShippingOrder
.findByOrderId
(String orderId) findByPKey
(@NotNull String pKey) Find and return aShippingOrder
.findByPositionPKey
(String pKey) Find and return theShippingOrder
that belongs to theShippingOrderPosition
.findInStates
(@NotNull List<String> states) Find and return allShippingOrder
s in one of the given states.updatePositionPartially
(String pKey, ShippingOrderPositionVO shippingOrderPosition) Update single fields of aShippingOrderPosition
.
-
Field Details
-
ACCEPT_HEADER_PU
- See Also:
-
API_VERSION
API version.- See Also:
-
API_SHIPPING_ORDERS
API root to hit ShippingOrders (plural).- See Also:
-
API_SHIPPING_ORDER_POSITIONS
API root to hit ShippingOrderPositions (plural).- See Also:
-
-
Method Details
-
createOrder
@PostMapping("/v1/shipping-orders") void createOrder(@NotNull @RequestBody @NotNull ShippingOrderVO shippingOrder) Create a newShippingOrder
.- Parameters:
shippingOrder
- The order instance to create
-
findInStates
@GetMapping(value="/v1/shipping-orders", params="states") List<ShippingOrderVO> findInStates(@NotNull @RequestParam("states") @NotNull List<String> states) Find and return allShippingOrder
s in one of the given states.- Parameters:
states
- The states to search for- Returns:
- An (empty) list of orders never null
-
findByPKey
@GetMapping("/v1/shipping-orders/{pKey}") ShippingOrderVO findByPKey(@NotNull @PathVariable("pKey") @NotNull String pKey) Find and return aShippingOrder
.- Parameters:
pKey
- The persistent key of the ShippingOrder- Returns:
- The instance
-
findByOrderId
@GetMapping(value="/v1/shipping-orders", params="orderId") ShippingOrderVO findByOrderId(@RequestParam("orderId") String orderId) -
findByPositionPKey
@GetMapping("/v1/shipping-order-positions/{pKey}") ShippingOrderVO findByPositionPKey(@PathVariable("pKey") String pKey) Find and return theShippingOrder
that belongs to theShippingOrderPosition
.- Parameters:
pKey
- The persistent key of the ShippingOrderPosition- Returns:
- The instance
-
updatePositionPartially
@PatchMapping("/v1/shipping-order-positions/{pKey}") ShippingOrderPositionVO updatePositionPartially(@PathVariable("pKey") String pKey, @RequestBody ShippingOrderPositionVO shippingOrderPosition) Update single fields of aShippingOrderPosition
.- Parameters:
pKey
- The persistent key of the ShippingOrderPosition to changeshippingOrderPosition
- The partial structure- Returns:
- The updated representation
-