diff --git a/README.md b/README.md index 6c1405e..484b782 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This repository contains the backend implementation for the Ecomm e-commerce app ## Description -This is a simple e-commerce backend application built with Node.js, TypeScript, Express.js, MongoDB, and Docker. It provides API endpoints to manage users and products. +This is a simple e-commerce backend application built with Node.js, TypeScript, Express.js, MongoDB, and Docker. It provides API endpoints to manage users, products and cart of user. ## Table of Contents @@ -129,3 +129,25 @@ status code 404 "Product not found." } ```` + +# Cart +Add Product to Cart - POST /cart +Adds a product to cart. +(authentication required) + +Request Body +``` +{ + "productId": "string" +} +``` +Response Body +status code 200 +``` +{ + Cart :{ + "{ProductId}": Quantity + } +} +``` +