There is not a consistent way to operate on a cart's items and get the modified cart back in response.
/cart/add
, that can add to multiple orders, so it can not respond with an updated cart.This causes pain when trying to consume the API.
/cart/{commerce_order}/items/{commerce_order_item}
endpoint respond with the updated cart./cart/{commerce_order}/items
and make that endpoint respond with the updated cart./cart/{commerce_order}/items/{commerce_order_item}
will change. This should not be a braking change at most cases, since the current response is empty./cart/{commerce_order}/items
will be added.Needs work
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.