This commit is contained in:
Kfir Dayan 2023-06-11 13:17:55 +03:00
parent 37d5e2c844
commit f2d27d14fe

View file

@ -4,7 +4,7 @@ This repository contains the backend implementation for the Ecomm e-commerce app
## Description ## 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 ## Table of Contents
@ -129,3 +129,25 @@ status code 404
"Product not found." "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
}
}
```