- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT
- Jest
- Webpack
-
/auth
Endpoints for authorizationPOST
/auth/login
Login an employee
-
/staff
Endpoints for creating and reading employeesPOST
/staff
Register an employeeGET
/staff
Get all employees
-
/customers
Endpoints for creating and reading clientsPOST
/customers
Create new customerGET
/customers
Get all clients
-
/customers/:hash
Endpoints for creating, reading and updating clients by hashGET
/customers/{hash}
Get a client by hashPUT
/customers/{hash}
Update client by hashDELETE
/customers/{hash}
Remove client by hash
-
/products
Endpoints for creating and reading productsPOST
/products
Create a new productGET
/products
Get all products
-
/products/:hash
Endpoints for creating, reading and updating products by hashGET
/products/{hash}
Get a product by hashPUT
/products/{hash}
Update a product by hashDELETE
/products/{hash}
Remove a product by hash
-
/orders
Endpoints for creating and reading ordersPOST
/orders
Create a new orderGET
/orders
Get all orders
-
/orders/:hash
Endpoints for creating, reading and updating orders by hashGET
/orders/{hash}
Get an order by hashPUT
/orders/{hash}
Update order by hashDELETE
/orders/{hash}
Delete order by hash