-
AUTH
- To login
- [POST]
/auth/login
{ "email": "admin@mailinator.com", "phone": "9876543210", "password": "user123456", "type": "admin" // user, inspection, procurement, admin }
- [POST]
- To login
-
USER
- Get users
- [GET]
/users
- [GET]
- Create users
- [POST]
/users
{ "name": "user-1", "email": "user-1@gmail.com", "password": "user123456", "role": "user", "phone": "9876543210" }
- [POST]
- Inspection Assign to Procurement-manager
- [POST]
/users/inspection/assign
{ "inspectionUserId": "62d7dcf2eec1b691df772881", "procurementUserId": "62d7e4082514caaf87535e21" }
- [POST]
- Get users
-
ORDER
- Get Orders
- [GET]
/order
- [GET]
- Create Orders
- [POST]
/order
{ "title": "First Order", "userId": "62d7df04b983de200bef70a9", "price": 5000 }
- [POST]
- Update Orders status
- [PATCH]
/order/:orderId
{ "status": "assigned" // 'pending', 'assigned', 'toConfirm', 'completed' }
- [PATCH]
- Get Orders
-
Checklist
- Get Checklist
- [GET]
/checklist
- [GET]
- Create Checklist
- [POST]
/checklist
{ "name": "First check list", "orderId": "62d9a441b417d34553668007", "fields": [ { "type": "radio", "name": "Cooler Present", "options": [ "yes", "no" ], "isRequired": true }, { "type": "dropdown", "name": "Category", "options": [ "Eatable", "Drinkable", "Medicine" ], "isRequired": true }, { "type": "checkbox", "name": "Driver Details", "options": [ "License Present", "Driver Number Active", "Vehical RC Book Present" ], "isRequired": true }, { "type": "textbox", "name": "Note", "options": "", "isRequired": false } ] }
- [POST]
- Fill/update Checklist
- [PATCH]
/checklist/:checklistId
[ { "fieldId": "62d9a58a6c5541ecb8b07fc5", "value": "yes" }, { "fieldId": "62d9a58a6c5541ecb8b07fc6", "value": "Drinkable" }, { "fieldId": "62d9a58a6c5541ecb8b07fc7", "value": [ "License Present", "Driver Number Active" ] }, { "fieldId": "62d9a58a6c5541ecb8b07fc8", "value": "Notes..." } ]
- [PATCH]
- Get Checklist
-
Notifications
You must be signed in to change notification settings - Fork 0
farhanshaikh05/nodejs-procurement-management
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Supply chain management to process and fulfill the order.