Controller for Orders
Add service to manage requests for material (OrderRequest
).
Add controller at /order
to create, list and manage orders. Adding and removing items OrderRequestItem
needs separate endpoints.
Creating a new order request requires the finalRecipientCooperator
, but we would also like to provide initial values for other fields in OrderRequest
.
From the client perspective, it would be convenient to call createOrder(long cooperatorId, OrderRequest data)
method -- not providing the full Cooperator
for `finalRecipientCooperator.
Any suggestions?