A Spring Boot application utilizing MongoDB for backend load management. Includes features for adding, retrieving, updating, and deleting load records. This API supports operations such as managing load details, querying by shipper ID, and handling individual load entries with MongoDB as the data store.
Example GET Request by loadId:
curl --location 'http://localhost:8080/load/66dbf4f3a232992090ba255a'Example GET Request by shipperId:
curl --location 'http://localhost:8080/load?shipperId=shipper3'Example POST Request:
curl --location 'http://localhost:8080/load' \
--header 'Content-Type: application/json' \
--data '{
"loadingPoint": "Delhi",
"unloadingPoint": "Jaipur",
"productType": "Chemicals",
"truckType": "Canter",
"noOfTrucks": 1,
"weight": 100,
"comment": "Handle with care",
"shipperId": "shipper1",
"date": "2024-09-01"
}'
