README
This commit is contained in:
parent
37d5e2c844
commit
f2d27d14fe
1 changed files with 23 additions and 1 deletions
24
README.md
24
README.md
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue