[ECOMMERCE-307] Checkout method. Incorrect resources Created: 22/Jun/20  Updated: 23/Jul/20  Resolved: 22/Jul/20

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Type: Improvement Priority: Minor
Reporter: Laura Delnevo Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ECOMMERCE-315 DOC: Checkout & Cart API changes (V2 ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Documentation update required:
Yes
Date of First Response:
Epic Link: E-com improvements 1.0 - 1.1.1 - 1.2
Sprint: Add-Ons 42
Story Points: 2

 Description   

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

 

 



 Comments   
Comment by Evzen Fochr [ 10/Jul/20 ]

jlegendre
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")


Generated at Mon Feb 12 01:42:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.