E-Commerce Web API
This repository is the Complete E-Commerce Web API Using Node.js With Express & MongoDB
npm install
npm start
GET /api/v1/products
GET /api/v1/products/:id
POST /api/v1/products
PUT /api/v1/products/:id
DELETE /api/v1/products/:id
GET products count: /api/v1/products/get/count
GET /api/v1/catgories
GET /api/v1/categories/:id
POST /api/v1/categories
PUT /api/v1/categories/:id
DELETE /api/v1/categories/:id
GET /api/v1/users
GET /api/v1/users/:id
POST /api/v1/users
PUT /api/v1/users/:id
DELETE /api/v1/users/:id
GET users count: /api/v1/users/get/count
POST /api/v1/users/register
To login the user and get the auth token you can use:
POST /api/v1/users/login