Tech Stack
- MongoDB
- Express
- Node.js
Instalation
- Clone the repositry.
- use
npm init
to install required packages. - use
nodemon app.js
to run the main js file. - Have MongoDB Installed in your system and run local moongose server.
- Run the Api.
TestCases
-
For post request /report sample request is:
{
"reportDetails":
{ "userID": "user-1", "marketID": "market-1", "marketName": "Vashi Navi Mumbai", "cmdtyID": "cmdty-1", "marketType": "Mandi", "cmdtyName": "Potato", "priceUnit": "Pack", "convFctr": 50, "price": 700 }
} -
For get report request:
{ reportID: "949832f8-48c7-4cb2-8dcd-98f046a9a2e3"}