Nostromos / what.ecom

PERN Ecom app for Codecademy's Full Stack path.
MIT License
0 stars 0 forks source link

Set up cart endpoint #28

Closed Nostromos closed 5 months ago

Nostromos commented 5 months ago

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}