{"info":{"_postman_id":"1e35a069-a90b-4687-9c14-4d3027e317fc","name":"Food api","description":"<html><head></head><body><p>Roles</p>\n<ol>\n<li><p>Vendor</p>\n</li>\n<li><p>Admin</p>\n</li>\n<li><p>Customer</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23813986","collectionId":"1e35a069-a90b-4687-9c14-4d3027e317fc","publishedId":"2sA2r813hG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-17T12:11:27.000Z"},"item":[{"name":"Admin","item":[{"name":"create-vendor","id":"4953d74d-eec6-4007-8841-f755c936a26f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"See First resturant ","type":"text"},{"key":"ownerName","value":"BC Tiwari","type":"text"},{"key":"pincode","value":"334","type":"text"},{"key":"phone","value":"986750089","type":"text"},{"key":"email","value":"bctiwari@gmail.com","type":"text"},{"key":"password","value":"bcman23@","type":"text"}]},"url":"{{APIURL}}/admin/vendor","urlObject":{"path":["admin","vendor"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[{"id":"456e179e-559c-48f4-8a3e-4cd87929bb61","name":"create-vendor","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"See First resturant ","type":"text"},{"key":"ownerName","value":"BC Tiwari","type":"text"},{"key":"pincode","value":"334","type":"text"},{"key":"phone","value":"986750089","type":"text"},{"key":"email","value":"bctiwari@gmail.com","type":"text"},{"key":"password","value":"bcman23@","type":"text"}]},"url":"{{APIURL}}/admin/vendor"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"ETag","value":"W/\"10b-dOoDC8aKVYDpsitcZGzy8sJQRDU\""},{"key":"Date","value":"Mon, 19 Feb 2024 10:20:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Successfully created vendor\",\n    \"createVendor\": {\n        \"name\": \"See First resturant \",\n        \"ownerName\": \"BC Tiwari\",\n        \"foodType\": [],\n        \"pincode\": \"334\",\n        \"phone\": \"986750089\",\n        \"email\": \"bctiwari@gmail.com\",\n        \"coverImages\": [],\n        \"foods\": [],\n        \"_id\": \"65d32b703456bda04884dfc0\"\n    }\n}"}],"_postman_id":"4953d74d-eec6-4007-8841-f755c936a26f"},{"name":"get-vendors","id":"db363b14-1cc2-4a03-bbbe-723b983453b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{APIURL}}/admin/vendor","urlObject":{"path":["admin","vendor"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"db363b14-1cc2-4a03-bbbe-723b983453b3"},{"name":"get-vendor-by-id","id":"4b3b9eda-6abc-485d-ae04-843ad95215b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{APIURL}}/admin/vendor/65c0a44b05d8b0d60e13c7c2","urlObject":{"path":["admin","vendor","65c0a44b05d8b0d60e13c7c2"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b3b9eda-6abc-485d-ae04-843ad95215b0"}],"id":"a69d7b12-b045-48b0-ba03-57c6dd7cf789","description":"<p>Following are api end points for admin</p>\n<ol>\n<li><p>Create vendor</p>\n</li>\n<li><p>Get all vendors</p>\n</li>\n<li><p>Get vendor by id</p>\n</li>\n<li><p>Verify delivery user</p>\n</li>\n<li><p>Get delivery users</p>\n</li>\n</ol>\n","_postman_id":"a69d7b12-b045-48b0-ba03-57c6dd7cf789"},{"name":"vendor","item":[{"name":"login","id":"3736ffa2-ed79-49a0-ac73-50429d475a77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester2@gmail.com","type":"text"},{"key":"password","value":"hello12@","type":"text"}]},"url":"{{APIURL}}/vendor/login","urlObject":{"path":["vendor","login"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[{"id":"000fbd8f-cd30-4b9a-832f-0e60848c7092","name":"login","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester2@gmail.com","type":"text"},{"key":"password","value":"hello12@","type":"text"}]},"url":"{{APIURL}}/vendor/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"276"},{"key":"ETag","value":"W/\"114-xzp9p3UoSbKCcrObYdVhORhNnXE\""},{"key":"Date","value":"Mon, 19 Feb 2024 10:23:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"successfully logged in.\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NWQzMjhhNjhjMjc3N2ExNTdmNGRkNDYiLCJlbWFpbCI6InRlc3RlcjJAZ21haWwuY29tIiwibmFtZSI6InRlc3QiLCJpYXQiOjE3MDgzMzgyMDYsImV4cCI6MTcxNjExNDIwNn0.cSgReG2PSpf8Sq7F8HgupwEzFJ9CqakFUmD1V2KIZIg\"\n}"}],"_postman_id":"3736ffa2-ed79-49a0-ac73-50429d475a77"},{"name":"get-profile","id":"0cd57c82-5d7c-4ae6-8ab3-a5d608952de1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester2@gmail.com","type":"text","disabled":true},{"key":"password","value":"hello12@","type":"text","disabled":true}]},"url":"{{APIURL}}/vendor/profile","urlObject":{"path":["vendor","profile"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cd57c82-5d7c-4ae6-8ab3-a5d608952de1"},{"name":"update-profile","id":"19e526ab-125c-4f75-aed1-800986823a49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Happy Cafe","type":"text"},{"key":"address","value":"Lamachaur","type":"text"},{"key":"phone","value":"9812345809","type":"text"},{"key":"foodType","value":"veg","type":"text"},{"key":"foodType","value":"mexicon","type":"text"}]},"url":"{{APIURL}}/vendor/profile","description":"<p>Update vendor profile</p>\n","urlObject":{"path":["vendor","profile"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19e526ab-125c-4f75-aed1-800986823a49"},{"name":"add-food","id":"67cfae20-6efb-42a5-b2fa-3d1aad7a6f14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Veg momo","type":"text"},{"key":"description","value":"Hot and spicy momo, with one jug soup","type":"text"},{"key":"rating","value":"4.5","type":"text"},{"key":"foodType","value":"Nepali momo","type":"text"},{"key":"readyTime","value":"12","type":"text"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/tilakkhatri/Downloads/9f0la2fg_veg-momo_625x300_06_July_22.png","/Users/tilakkhatri/Downloads/Classic_Veg_Momo_Recipe_Dumplings_4.jpg"],"src":["/Users/tilakkhatri/Downloads/9f0la2fg_veg-momo_625x300_06_July_22.png","/Users/tilakkhatri/Downloads/Classic_Veg_Momo_Recipe_Dumplings_4.jpg"]},{"key":"category","value":"veg","type":"text"}]},"url":"{{APIURL}}/vendor/addfood","urlObject":{"path":["vendor","addfood"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[{"id":"78d8bd6f-8b6d-4364-ab92-f8e0c82b1e60","name":"add-food","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Chicken momo","type":"text"},{"key":"description","value":"Hot and spicy momo, ","type":"text"},{"key":"rating","value":"4.8","type":"text"},{"key":"foodType","value":"Nepali momo","type":"text"},{"key":"readyTime","value":"5","type":"text"},{"key":"images","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/tilakkhatri/Downloads/Chicken_Momos_Recipe_Delicious_Steamed_Chicken_Dumplings.jpg","/Users/tilakkhatri/Downloads/chicken-momos-with-tomato-achar-46671-1.jpeg"],"src":["/Users/tilakkhatri/Downloads/Chicken_Momos_Recipe_Delicious_Steamed_Chicken_Dumplings.jpg","/Users/tilakkhatri/Downloads/chicken-momos-with-tomato-achar-46671-1.jpeg"]},{"key":"category","value":"Non veg","type":"text"}]},"url":"{{APIURL}}/vendor/addfood"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"274"},{"key":"ETag","value":"W/\"112-awSQGs7bltkqQ841tu86oSzU5q8\""},{"key":"Date","value":"Mon, 19 Feb 2024 12:17:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"successfully added\",\n    \"status\": 201,\n    \"data\": {\n        \"_id\": \"65d328a68c2777a157f4dd46\",\n        \"name\": \"Happy Cafe\",\n        \"ownerName\": \"sdfd\",\n        \"foodType\": [\n            \"veg\",\n            \"mexicon\"\n        ],\n        \"pincode\": \"224\",\n        \"phone\": \"9812345809\",\n        \"email\": \"tester2@gmail.com\",\n        \"coverImages\": [],\n        \"foods\": [\n            \"65d346c74a5edfd8b32fe5d2\"\n        ]\n    }\n}"}],"_postman_id":"67cfae20-6efb-42a5-b2fa-3d1aad7a6f14"},{"name":"get-foods","id":"94a8b1ac-c1ca-4589-96f0-ad4fd2a3d8d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Veg Chow mein","type":"text"},{"key":"description","value":"Veg chow mein with chatni","type":"text"},{"key":"rating","value":"4.5","type":"text"},{"key":"foodType","value":"veg","type":"text"},{"key":"readyTime","value":"12mins","type":"text"}]},"url":"{{APIURL}}/vendor/food","urlObject":{"path":["vendor","food"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[{"id":"3c2b70bd-58c8-49bf-8314-9789b3600c67","name":"get-foods","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Veg Chow mein","type":"text"},{"key":"description","value":"Veg chow mein with chatni","type":"text"},{"key":"rating","value":"4.5","type":"text"},{"key":"foodType","value":"veg","type":"text"},{"key":"readyTime","value":"12mins","type":"text"}]},"url":"{{APIURL}}/vendor/food"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"988"},{"key":"ETag","value":"W/\"3dc-akPdCqGc9qrk6o/Z6gZw1MBWK+k\""},{"key":"Date","value":"Mon, 19 Feb 2024 12:40:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"65d3443a2f415b8d66edf75f\",\n        \"vendorId\": \"65d328a68c2777a157f4dd46\",\n        \"name\": \"Veg Chow mein\",\n        \"description\": \"Veg chow mein with chatni\",\n        \"foodType\": \"veg\",\n        \"readyTime\": 12,\n        \"rating\": 0,\n        \"images\": [\n            \"2024-02-19T12:06:18.496Z-pexels-sebastiaan-stam-1480690.jpg\"\n        ]\n    },\n    {\n        \"_id\": \"65d346c74a5edfd8b32fe5d2\",\n        \"vendorId\": \"65d328a68c2777a157f4dd46\",\n        \"name\": \"Chicken momo\",\n        \"description\": \"Hot and spicy momo, \",\n        \"category\": \"Non veg\",\n        \"foodType\": \"Nepali momo\",\n        \"readyTime\": 5,\n        \"rating\": 0,\n        \"images\": [\n            \"2024-02-19T12:15:44.318Z-Chicken_Momos_Recipe_Delicious_Steamed_Chicken_Dumplings.jpg\",\n            \"2024-02-19T12:15:44.322Z-chicken-momos-with-tomato-achar-46671-1.jpeg\"\n        ]\n    },\n    {\n        \"_id\": \"65d34ab7366eafb30c319721\",\n        \"vendorId\": \"65d328a68c2777a157f4dd46\",\n        \"name\": \"Veg momo\",\n        \"description\": \"Hot and spicy momo, with one jug soup\",\n        \"category\": \"veg\",\n        \"foodType\": \"Nepali momo\",\n        \"readyTime\": 12,\n        \"rating\": 0,\n        \"images\": [\n            \"2024-02-19T12:32:05.006Z-9f0la2fg_veg-momo_625x300_06_July_22.png\",\n            \"2024-02-19T12:32:05.009Z-Classic_Veg_Momo_Recipe_Dumplings_4.jpg\"\n        ]\n    }\n]"}],"_postman_id":"94a8b1ac-c1ca-4589-96f0-ad4fd2a3d8d0"}],"id":"dd721e93-c640-464e-b38b-6e87638ed2ef","description":"<ol>\n<li><p>Login</p>\n</li>\n<li><p>Update profile</p>\n</li>\n<li><p>delete account</p>\n</li>\n<li><p>add food</p>\n</li>\n</ol>\n","_postman_id":"dd721e93-c640-464e-b38b-6e87638ed2ef"},{"name":"customer","item":[{"name":"register","id":"0df9e397-8851-46de-8f2e-1a84f150fb27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester2@gmail.com","type":"text"},{"key":"phone","value":"9812345678","type":"text"},{"key":"password","value":"momo23@555","type":"text"}]},"url":"{{APIURL}}/customer/register","urlObject":{"path":["customer","register"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0df9e397-8851-46de-8f2e-1a84f150fb27"},{"name":"login","id":"9321d7c6-e095-4b4a-b603-d9c1df20de15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"tester2@gmail.com","type":"text"},{"key":"phone","value":"9812345678","type":"text","disabled":true},{"key":"password","value":"momo23@555","type":"text"}]},"url":"{{APIURL}}/customer/login","urlObject":{"path":["customer","login"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9321d7c6-e095-4b4a-b603-d9c1df20de15"},{"name":"update-profile","id":"aa5fec99-ee64-41d8-aaa0-a366b6840909","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"firstName","value":"Ram Babu","type":"text"},{"key":"lastName","value":"Pandit","type":"text"},{"key":"address","value":"Biratnagar","type":"text"}]},"url":"{{APIURL}}/customer/profile","urlObject":{"path":["customer","profile"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa5fec99-ee64-41d8-aaa0-a366b6840909"},{"name":"verify","id":"2601590c-ad6d-4a5c-9fa4-8f6258fea377","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"otp","value":"8909","type":"text"}]},"url":"{{APIURL}}/customer/verify","urlObject":{"path":["customer","verify"],"host":["{{APIURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2601590c-ad6d-4a5c-9fa4-8f6258fea377"}],"id":"832288fc-92ca-40f2-a90e-348802369186","_postman_id":"832288fc-92ca-40f2-a90e-348802369186","description":""},{"name":"shopping","item":[{"name":"get-top-resturants","id":"7d991413-1152-4f44-8e64-7123b125efff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{APIURL}}/top-restaurant/:pincode?=224","urlObject":{"path":["top-restaurant",":pincode"],"host":["{{APIURL}}"],"query":[{"key":"","value":"224"}],"variable":[{"type":"any","value":"","key":"pincode"}]}},"response":[],"_postman_id":"7d991413-1152-4f44-8e64-7123b125efff"},{"name":"get-resturant-by-id","id":"ef987c86-63ef-4e65-a5c6-d1c6e830728d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{APIURL}}/restaurant/:id","description":"<p>Get resturant detail using this endpoint</p>\n","urlObject":{"path":["restaurant",":id"],"host":["{{APIURL}}"],"query":[],"variable":[{"type":"any","value":"65d32b703456bda04884dfc0","key":"id"}]}},"response":[{"id":"36a1f1fe-94a1-489b-9c48-56441c76ea00","name":"get-resturant-by-id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{APIURL}}/restaurant/:id","host":["{{APIURL}}"],"path":["restaurant",":id"],"variable":[{"key":"id","value":"65d32b703456bda04884dfc0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"195"},{"key":"ETag","value":"W/\"c3-zhNvRjt1ERlnQ5+MK4+E0yXcsTM\""},{"key":"Date","value":"Thu, 22 Feb 2024 17:08:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"65d32b703456bda04884dfc0\",\n    \"name\": \"See First resturant \",\n    \"ownerName\": \"BC Tiwari\",\n    \"foodType\": [],\n    \"pincode\": \"334\",\n    \"phone\": \"986750089\",\n    \"email\": \"bctiwari@gmail.com\",\n    \"coverImages\": [],\n    \"foods\": []\n}"}],"_postman_id":"ef987c86-63ef-4e65-a5c6-d1c6e830728d"}],"id":"337708ea-f965-45ef-b388-d7008ceb7aec","_postman_id":"337708ea-f965-45ef-b388-d7008ceb7aec","description":""}]}