Skip to content

prompt-07/syook-node-logistics

Repository files navigation

node-logistics

Step 1 : Clone repo
Step 2 : install necessary dependencies
Step 3 : run npm run devStart in terminal


useful urls and payloads for testing

login first and get jwt

  1. ITEMS
    http://localhost:8000/api/items/create
    payload
{
    "name" : "demo",
    "price" :  400
}

http://localhost:8000/api/items/update
payload

{
    "itemName" : "demo",
    "newPrice" : 400
}

  1. CUSTOMER\

http://localhost:8000/api/customer/get/Demo%20User

http://localhost:8000/api/customer/create
payload

{
    "name": "Demo User",
    "city": "Pune"
}

  1. LOGIN
    http://localhost:8000/user/login
    payload
{
    "username": "rambo",
    "hashedpassword": "password123"
}

  1. ORDERS
    http://localhost:8000/api/orders/create
    payload
{
    "itemId": "BBB",
    "customerId": "61f6b38000bdc9e79d888206"
}

http://localhost:8000/api/orders/update
payload

{
    "orderId": "61f6e331985f86b2bfea4064",
    "isDelivered": true
}

  1. DELIVERY VEHICLES
    http://localhost:8000/api/delivery-vehicle/create
    payload
{
    "registrationNumber": "VV7812",
    "vehicleType": "truck",
    "city": "Pune"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published