{"info":{"_postman_id":"d4f391ff-e457-439e-83bd-859f083fc2aa","name":"AgriAuthentic","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"39189972","collectionId":"d4f391ff-e457-439e-83bd-859f083fc2aa","publishedId":"2sAYkDN1PN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-18T07:46:56.000Z"},"item":[{"name":"Consumer(routes)","item":[{"name":"Consumer","item":[{"name":"This will register the consumer","id":"446a658c-3dbd-46ac-b999-ea917ddf3674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerName\": \"jatan mathasoliya\",\r\n  \"consumerEmail\": \"jatan@example.com\",\r\n  \"consumerPhone\": 9023975638,\r\n  \"consumerAddress\": [\r\n    {\r\n      \"address\": \"D-50/2\",\r\n      \"city\": \"gandhinagar\",\r\n      \"state\": \"gujarat\",\r\n      \"zipcode\": 394652,\r\n      \"country\": \"india\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/consumer/register","urlObject":{"protocol":"http","port":"4000","path":["consumer","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"446a658c-3dbd-46ac-b999-ea917ddf3674"},{"name":"New Request","id":"5fc6cf92-9ce2-4906-955d-ece101145426","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"5fc6cf92-9ce2-4906-955d-ece101145426"},{"name":"this will add the address  for shipping","id":"9059e39f-8834-40bb-9be3-2ab47296c9bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerId\": \"67d85dbdc7d50cfdc943f7a3\", // Replace with the consumerId\r\n  \"address\": \"123 Main St\",\r\n  \"city\": \"New York\",\r\n  \"state\": \"NY\",\r\n  \"zipcode\": 10001,\r\n  \"country\": \"USA\",\r\n  \"isDefault\": true // Mark this address as default\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/consumer/address","urlObject":{"protocol":"http","port":"4000","path":["consumer","address"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9059e39f-8834-40bb-9be3-2ab47296c9bc"}],"id":"0702683b-fbcc-4a1f-9539-75035c1d3476","_postman_id":"0702683b-fbcc-4a1f-9539-75035c1d3476","description":""},{"name":"basket","item":[{"name":"it will add the product to the consumer's basket","id":"7042e9a1-4d73-4665-87a1-a36855b2d803","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerId\": \"67d85dbdc7d50cfdc943f7a3\",\r\n  \"productId\": \"67d7b825d262ebe83665ace9\", \r\n  \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/basket/add","urlObject":{"protocol":"http","port":"4000","path":["basket","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7042e9a1-4d73-4665-87a1-a36855b2d803"},{"name":"This will give us the data of basket of perticular consumer","id":"53b26edd-503d-43a3-aa77-1a9a02d21770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerId\": \"67d85dbdc7d50cfdc943f7a3\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/basket","urlObject":{"protocol":"http","port":"4000","path":["basket"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"53b26edd-503d-43a3-aa77-1a9a02d21770"},{"name":"in this we an delete product with the help of id from basket","id":"b7c28c7a-f8b3-4e60-a5c3-98ff2a334d67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/basket/:consumerId/basket/:productId","urlObject":{"protocol":"http","port":"4000","path":["basket",":consumerId","basket",":productId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"64b50c9e1c9d440000a1b2c1","key":"consumerId"},{"type":"any","value":"64b50c9e1c9d440000a1b2e1","key":"productId"}]}},"response":[],"_postman_id":"b7c28c7a-f8b3-4e60-a5c3-98ff2a334d67"}],"id":"c8b211c8-eb50-47f2-b487-e304381b0894","_postman_id":"c8b211c8-eb50-47f2-b487-e304381b0894","description":""},{"name":"products","item":[{"name":"this will add prodects to the database","id":"55da0922-f2d4-44df-8dfa-e09de72c77c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"farmer_id\": \"67d84bd60f16f5d82b215b97\",\r\n  \"verification_id\": \"67d84bd60f16f5d82b215b97\", \r\n  \"productName\": \"Organic Apples\",\r\n  \"productDescription\": \"Fresh and juicy organic apples\",\r\n  \"productPrice\": \"4.99\",\r\n  \"stock\": 100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/product","urlObject":{"protocol":"http","port":"4000","path":["product"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"55da0922-f2d4-44df-8dfa-e09de72c77c6"},{"name":"we will get all products","id":"0f310804-a1a4-41d3-86ae-bc690d081fcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/product/","urlObject":{"protocol":"http","port":"4000","path":["product",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f310804-a1a4-41d3-86ae-bc690d081fcb"},{"name":"get data through products id","id":"c85d2f1a-bf09-4268-8c25-bc7df3a83f87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/product/67d864150483e5413777782a","urlObject":{"protocol":"http","port":"4000","path":["product","67d864150483e5413777782a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c85d2f1a-bf09-4268-8c25-bc7df3a83f87"},{"name":"by the help of productid we will get all the informaation about verification","id":"218d7cf1-75e0-4bcb-9b89-acf4a5f67f85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/product/:id/verify","urlObject":{"protocol":"http","port":"4000","path":["product",":id","verify"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"67d864150483e5413777782a","key":"id"}]}},"response":[],"_postman_id":"218d7cf1-75e0-4bcb-9b89-acf4a5f67f85"},{"name":"this will give products of perticular farmer","id":"42efce50-b574-4416-a4a0-e69de6ce97be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/product/farmer/64b50c9e1c9d440000a1b2d3","urlObject":{"protocol":"http","port":"4000","path":["product","farmer","64b50c9e1c9d440000a1b2d3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"42efce50-b574-4416-a4a0-e69de6ce97be"}],"id":"e2a6140f-9d0e-40aa-92de-cbcc434aaab8","_postman_id":"e2a6140f-9d0e-40aa-92de-cbcc434aaab8","description":""},{"name":"farmer","item":[{"name":"This Api help to register  a farmer","id":"f600500c-aed6-4ca3-b053-dea30b610209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"farmerName\": \"jenil savaliya\",\r\n  \"farmerEmail\": \"jenil@example.com\",\r\n  \"farmerPhone\": 1234567890,\r\n  \"farmAddress\": [\r\n    {\r\n      \"address\": \"123 Farm Rd\",\r\n      \"city\": \"Farmville\",\r\n      \"state\": \"CA\",\r\n      \"zipcode\": 12345,\r\n      \"country\": \"USA\"\r\n    }\r\n  ],\r\n  \"farmSize\": 100,\r\n  \"primaryCrops\": [\"Apples\", \"Oranges\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/farmer/register","urlObject":{"protocol":"http","port":"4000","path":["farmer","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f600500c-aed6-4ca3-b053-dea30b610209"},{"name":"we can get farmers through id","id":"91e135bd-8dcc-4ab2-bbef-c79bbbde2ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/farmer/67d84bd60f16f5d82b215b97","urlObject":{"protocol":"http","port":"4000","path":["farmer","67d84bd60f16f5d82b215b97"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"91e135bd-8dcc-4ab2-bbef-c79bbbde2ae5"},{"name":"this will give us all the farmer which have register","id":"0bc5cd4f-71d9-484a-be31-3d63d9037e56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"0bc5cd4f-71d9-484a-be31-3d63d9037e56"}],"id":"d4214d2d-5d9d-4c5e-9d18-f1f153d7af7d","_postman_id":"d4214d2d-5d9d-4c5e-9d18-f1f153d7af7d","description":""},{"name":"verify","item":[{"name":"it will add a verification to the products","id":"fafcaa26-4435-4795-86b6-e3611654ce0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"product_id\": \"67d864150483e5413777782a\", // Replace with a valid product ID\r\n  \"productCertificate\": \"certificate123\",\r\n  \"otherDetils\": \"Additional details about the verification\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/verify","urlObject":{"protocol":"http","port":"4000","path":["verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fafcaa26-4435-4795-86b6-e3611654ce0d"},{"name":"we will get the verified productid through verification id","id":"b3df9a06-a206-45b1-b286-8a56c5e90cef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/verify/:id","urlObject":{"protocol":"http","port":"4000","path":["verify",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"67d866ca5a6a90fff1513643","key":"id"}]}},"response":[],"_postman_id":"b3df9a06-a206-45b1-b286-8a56c5e90cef"}],"id":"f33534f1-0e6d-41d6-ae91-b10933b81ca4","_postman_id":"f33534f1-0e6d-41d6-ae91-b10933b81ca4","description":""},{"name":"orders","item":[{"name":"order will be posted with the help of address","id":"799ad137-de3c-45e5-909f-14346f55f1c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerId\": \"67d85dbdc7d50cfdc943f7a3\" \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/order","urlObject":{"protocol":"http","port":"4000","path":["order"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"799ad137-de3c-45e5-909f-14346f55f1c8"},{"name":"we can see the orders of consumer by  input the id of consumer","id":"11fb5a0d-3f9f-4e56-9f55-c1dab563cfe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"consumerId\": \"67d85dbdc7d50cfdc943f7a3\" \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/order/my-orders?consumerId=67d85dbdc7d50cfdc943f7a3","urlObject":{"protocol":"http","port":"4000","path":["order","my-orders"],"host":["localhost"],"query":[{"key":"consumerId","value":"67d85dbdc7d50cfdc943f7a3"}],"variable":[]}},"response":[],"_postman_id":"11fb5a0d-3f9f-4e56-9f55-c1dab563cfe3"},{"name":"we will get orders details through orderid","id":"b9b09504-89c6-4daa-b258-12da44fa6a3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/order/67d902f91c14e3fdc1cc616d","urlObject":{"protocol":"http","port":"4000","path":["order","67d902f91c14e3fdc1cc616d"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9b09504-89c6-4daa-b258-12da44fa6a3b"},{"name":"this will give you the orders of pertivcular consumer with consumerid","id":"b0d97eb8-5274-42cb-9856-e14ccaab593e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/order/consumer/:consumerId","urlObject":{"protocol":"http","port":"4000","path":["order","consumer",":consumerId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"67d94c32571741bd34252ac7","key":"consumerId"}]}},"response":[],"_postman_id":"b0d97eb8-5274-42cb-9856-e14ccaab593e"},{"name":"this will give orders of perticular farmer","id":"cba0a7f8-aca0-4a1c-8d6c-1e2424235655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/order/farmer/64b50c9e1c9d440000a1b2d4","urlObject":{"protocol":"http","port":"4000","path":["order","farmer","64b50c9e1c9d440000a1b2d4"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cba0a7f8-aca0-4a1c-8d6c-1e2424235655"},{"name":"New Request","id":"19614bce-437d-468f-ad98-da092cbd1061","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"19614bce-437d-468f-ad98-da092cbd1061"}],"id":"6f9f1ef3-ac9b-4864-b668-24191d2e52fd","_postman_id":"6f9f1ef3-ac9b-4864-b668-24191d2e52fd","description":""}],"id":"15b0a692-e63e-44ca-b320-288bed924e81","_postman_id":"15b0a692-e63e-44ca-b320-288bed924e81","description":""}]}