-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Add-Ons 42, Content Mngmt 6, Content Mngmt 7
-
3
Current behaviour
For the checkout, we might have incorrect resources. For instance: /checkouts/address/{cartId}
New behaviour
This method is setting the address of a cartId, then the correct endpoint would be: /carts/{cartId}/address
But the same happens for the rest of the checkout methods
From evzen in ECOMMERCE-307:
We need to update this page https://documentation.magnolia-cms.com/display/DOCS62/Checkout+endpoint+API
we are adding version 2 endpoint of checkout endpointall rest-call paths are slightly changes to be more descriptive and intuitive.
setAddress @PUT @Path("/checkouts/cart/{cartId}/address") setShippingMethod @PUT @Path("/checkouts/cart/{cartId}/shippingmethod") createOrder @POST @Path("/checkouts/cart/{cartId}/order") getShippingMethods @POST @Path("/checkouts/cart/{cartId}/shippingmethods")
From evzen in ECOMMERCE-305:
We need to update this page https://documentation.magnolia-cms.com/display/DOCS62/Cart+endpoint+API
we are adding version 2 endpoint of cart endpoint where we have cart id as path parameter instead of form parameter in these rest-calls. Rest of rest-calls is unchanged
addItem @POST @Path("/v2/carts/{cartId}/items") removeItem @DELETE @Path("/v2/carts/{cartId}/items/{itemId}") updateItemQuantity @POST @Path("/v2/carts/{cartId}/items/{itemId}")
- relates to
-
ECOMMERCE-305 Inconsistent resource identification
- Closed
-
ECOMMERCE-307 Checkout method. Incorrect resources
- Closed