Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
Current behaviour (a)
The resource is “/checkouts/order/{cartId}“. In my opinion we are placing a new order for a user from an existing cart.
Correct behaviour
- Thus, the resource should be: /users/{userId}/orders
and pass the cartId in the body.
Current behaviour (b)
We are aggregating 2 (set payment method and create the order itself) operations in 1.
Correct behaviour
- Separate the 2 methods
Checklists
Acceptance criteria