Step 1 : Clone repo
Step 2 : install necessary dependencies
Step 3 : run npm run devStart in terminal
login first and get jwt
- ITEMS
http://localhost:8000/api/items/create
payload
{
"name" : "demo",
"price" : 400
}
http://localhost:8000/api/items/update
payload
{
"itemName" : "demo",
"newPrice" : 400
}
- CUSTOMER\
http://localhost:8000/api/customer/get/Demo%20User
http://localhost:8000/api/customer/create
payload
{
"name": "Demo User",
"city": "Pune"
}
- LOGIN
http://localhost:8000/user/login
payload
{
"username": "rambo",
"hashedpassword": "password123"
}
- ORDERS
http://localhost:8000/api/orders/create
payload
{
"itemId": "BBB",
"customerId": "61f6b38000bdc9e79d888206"
}
http://localhost:8000/api/orders/update
payload
{
"orderId": "61f6e331985f86b2bfea4064",
"isDelivered": true
}
- DELIVERY VEHICLES
http://localhost:8000/api/delivery-vehicle/create
payload
{
"registrationNumber": "VV7812",
"vehicleType": "truck",
"city": "Pune"
}