Server code using Node.js
- Clone the repo and run npm install
- npm run start
#Authentication endpoints: -
- /users/register (method: post, register new admin)
- /users/login (method: post, login authentication for admin)
#Product Endpoints: -
- /products (method: get,get all products from system)
- /products/new (method:post, add new product to system)
- /products/:id (method: get, get product with id)
- /products/:id (method: put, update product with id)
- /products/:id (method:delete, delete product with id)
#Category endpoints: -
- /categories (method: get, get all categories)
- /categories/new (method: post, add new category)
- /categories/:id (method:put, update category)
- /categories/:id (method:get,get category by id)