This commit is contained in:
Kfir Dayan 2023-06-11 12:52:34 +03:00
parent e44d9f0b6f
commit d12e2581b6

View file

@ -22,11 +22,11 @@ Technologies used:
The application will be running on port 3000
The database will be running on port 27017
## API ##
# API #
app.use('/products', productRouter);
app.use('/cart', cartRouter);
# Users #
## Users ##
## POST /users ## - Create a new user
### Request body ###
```json
@ -70,7 +70,7 @@ app.use('/cart', cartRouter);
``` Cookie - "access-token"": "string" ```
# Products #
## Products ##
## GET /products ## - Get all products
accepts query params: page, limit. Default values: page = 0, limit = 50.
### Response body ###