...
Sr No. | API Endpoint | Description | Tasks | Status | Phase |
---|
1 | POST /customers/{customerPartyId}/wishlist | To Create a wishlist. |
| Planning |
|
1 | PUT /customers/{customerPartyId}/wishlist/{wishlistId} | To add a product to the wishlist. |
| Planning | I |
2 | DELETE /customers/{customerPartyId}/wishlist/{wishlistId}/{productId} | To remove a product from the wishlist. |
| Planning | I |
3 | GET /customers/{customerPartyId}/wishlist/{wishlistId} | To get the wishlist. |
| Planning | I |
...
Checkout
Note: The below API endpoints are written considering the Object-Oriented implementation of Shopping Cart. We need to identify the best way to store the shopping cart object as the user session won't be in the picture here. One way to introduce a new table to keep the cart object with a unique cart ID. For better performance cache can also be used efficiently. The cart object should have the last updated timestamp so that a clear policy to remove the abandoned cart can be imposed.
Sr No. | API Endpoint | Description | Tasks | Status | Phase |
---|
1 | POST / |
cartsTo create a cart. | Planning | I | 2 | PUT /carts/{cartReference} | To update the cart. | Planning | I | 3 | GET /carts/{cartReference} | To get the complete cart. | Planning | I | 4 | POST /carts/{cartReference}/delete | To remove items from the cart.orders | To Create an order with all the necessary detail (items, shipping address, payment information, etc.) |
| Planning | I |
5POST cartscartReferencepromotionsTo apply the promo code on the cart. | Planning | I | 6 | DELETE /carts/{cartReference}/promotions | To remove an applied promotionstatuses/CANCEL | To cancel an order. |
| Planning | I |
7POST cartscartReferenceshipping-informationTo add shipping information | Planning | I | 8 | POST /carts/{cartReference}/shipping-methods | To add shipping methodsitems/statuses/CANCEL | To Cancel order items. |
| Planning | I |
9 | GET /carts/{cartReference}/payment-methods | To get the available payment methods | Planning | I | 10 | GET carts/{cartReference}/totals | To get the cart total. | Planning | I | 11 | POST /order | To place the order.