Set up cart endpoint
Add the logic for handling CRUD operations related to a user’s cart.
The cart should keep track of products a user wants to purchase. Think about how you will associate products with your cart instance and keep track of them when it comes time to place an order. One way to structure your cart endpoints would be as follows:
Set up cart endpoint Add the logic for handling CRUD operations related to a user’s cart.
The cart should keep track of products a user wants to purchase. Think about how you will associate products with your cart instance and keep track of them when it comes time to place an order. One way to structure your cart endpoints would be as follows:
POST /cart POST /cart/{cartId} GET /cart/{cartId}