From f2d27d14fed63a7718593761c58b9dba84683bed Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Sun, 11 Jun 2023 13:17:55 +0300 Subject: [PATCH] README --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 + } +} +``` +