{"info":{"_postman_id":"11b59e35-5afb-4302-96ca-22df9a2e5d6f","name":"King Hub","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"39215245","collectionId":"11b59e35-5afb-4302-96ca-22df9a2e5d6f","publishedId":"2sAYQfDouP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-24T11:17:51.000Z"},"item":[{"name":"Restaurant Details","item":[{"name":"Restaurants","id":"26a741c1-3880-4ab1-9c7d-df659d564284","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/restaurants","description":"<p>Retrieves a list of all available restaurants, including their basic details such as name, location, and cuisine type.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"26a741c1-3880-4ab1-9c7d-df659d564284"},{"name":"Get restaurant by id","id":"415ef7eb-53f5-45d0-96f2-4fb17ef8e59a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/restaurants/:id","description":"<p>fetches detailed information about a specific restaurant identified by its unique ID. This includes comprehensive details like menu items and contact information.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"6791c24a0faef46ecdf756b0","key":"id"}]}},"response":[],"_postman_id":"415ef7eb-53f5-45d0-96f2-4fb17ef8e59a"},{"name":"Add restaurant","id":"234006fc-16e4-455e-8639-97e72c384d51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Rajwadu\",\r\n  \"location\": \"Ahmedabad\",\r\n  \"cuisine\": \"Gujarati\",\r\n  \"rating\": 4.6,\r\n  \"contact\": 9823456789,\r\n  \"image\": \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLIidqrh4Amsa18KXbBUxjlstWAIwsPTlINg&s\",\r\n  \"menu\": {\r\n    \"items\": [\r\n      {\r\n        \"name\": \"Rajwadi Thali\",\r\n        \"price\": 550,\r\n        \"description\": \"A grand Gujarati thali with a variety of sabzis, dal, kadhi, roti, puri, rice, sweets, and chaas.\",\r\n        \"image\": \"https://example.com/rajwadi-thali.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Methi Thepla\",\r\n        \"price\": 180,\r\n        \"description\": \"Soft and spiced fenugreek flatbreads served with pickle and curd.\",\r\n        \"image\": \"https://example.com/methi-thepla.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Sev Tamatar Sabzi\",\r\n        \"price\": 250,\r\n        \"description\": \"A tangy and mildly spicy tomato-based curry topped with crispy sev.\",\r\n        \"image\": \"https://example.com/sev-tamatar.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Gujarati Dal Dhokli\",\r\n        \"price\": 280,\r\n        \"description\": \"Wheat flour dumplings cooked in sweet and spicy dal, a traditional Gujarati comfort food.\",\r\n        \"image\": \"https://example.com/dal-dhokli.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Basundi\",\r\n        \"price\": 300,\r\n        \"description\": \"A rich and creamy Gujarati dessert made by reducing milk with sugar and cardamom.\",\r\n        \"image\": \"https://example.com/basundi.jpg\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/restaurants","description":"<p>Allows the addition of a new restaurant to the system by providing necessary details such as name, address, cuisine type, and other relevant information.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"234006fc-16e4-455e-8639-97e72c384d51"},{"name":"Update details by id","id":"c59a7b9e-3eee-45cf-980e-320820556ed7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Rajwadu\",\r\n  \"location\": \"Ahmedabad\",\r\n  \"cuisine\": \"Gujarati\",\r\n  \"rating\": 4.7,\r\n  \"contact\": 9823456789,\r\n  \"image\": \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLIidqrh4Amsa18KXbBUxjlstWAIwsPTlINg&s\",\r\n  \"menu\": {\r\n    \"items\": [\r\n      {\r\n        \"name\": \"Rajwadi Thali\",\r\n        \"price\": 550,\r\n        \"description\": \"A grand Gujarati thali with a variety of sabzis, dal, kadhi, roti, puri, rice, sweets, and chaas.\",\r\n        \"image\": \"https://example.com/rajwadi-thali.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Methi Thepla\",\r\n        \"price\": 180,\r\n        \"description\": \"Soft and spiced fenugreek flatbreads served with pickle and curd.\",\r\n        \"image\": \"https://example.com/methi-thepla.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Sev Tamatar Sabzi\",\r\n        \"price\": 250,\r\n        \"description\": \"A tangy and mildly spicy tomato-based curry topped with crispy sev.\",\r\n        \"image\": \"https://example.com/sev-tamatar.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Gujarati Dal Dhokli\",\r\n        \"price\": 280,\r\n        \"description\": \"Wheat flour dumplings cooked in sweet and spicy dal, a traditional Gujarati comfort food.\",\r\n        \"image\": \"https://example.com/dal-dhokli.jpg\"\r\n      },\r\n      {\r\n        \"name\": \"Basundi\",\r\n        \"price\": 300,\r\n        \"description\": \"A rich and creamy Gujarati dessert made by reducing milk with sugar and cardamom.\",\r\n        \"image\": \"https://example.com/basundi.jpg\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/restaurants/:id","description":"<p>Enables updating the information of an existing restaurant identified by its ID. This can include changes to the menu, operating hours, or contact details.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"6791c440a2ecb37f9c7beec3","key":"id"}]}},"response":[],"_postman_id":"c59a7b9e-3eee-45cf-980e-320820556ed7"},{"name":"Delete restaurant by id","id":"fedd166a-1d5a-4bea-953a-770f45062789","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://king-hub-1.onrender.com/api/restaurants/:id","description":"<p>Removes a restaurant from the system based on its unique ID. This action is typically irreversible and should be performed with caution.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"6791c440a2ecb37f9c7beec3","key":"id"}]}},"response":[],"_postman_id":"fedd166a-1d5a-4bea-953a-770f45062789"}],"id":"bee4c02e-c928-4853-b315-4159e329fec4","description":"<p>Manages restaurant-related data, including fetching all restaurants, retrieving specific restaurant details, adding new restaurants, updating existing ones, and deleting them.</p>\n","_postman_id":"bee4c02e-c928-4853-b315-4159e329fec4"},{"name":"Menu Details","item":[{"name":"Get Menu items","id":"1c9e2bb6-26e3-4a59-b239-c0448dce2593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/menu","description":"<p>Retrieves a list of all available menu items across all restaurants, including details such as item name, description, price, and associated restaurant.</p>\n","urlObject":{"protocol":"https","path":["api","menu"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c9e2bb6-26e3-4a59-b239-c0448dce2593"},{"name":"Get details by restaurant id","id":"ab07a90a-46b5-46c3-9b64-bf954203f788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/restaurants/:restaurantId","description":"<p>Fetches detailed information about a specific menu item identified by its unique ID.StartFragmentThis includes comprehensive details like category, image and price.</p>\n","urlObject":{"protocol":"https","path":["api","restaurants",":restaurantId"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"6791c24a0faef46ecdf756b0","key":"restaurantId"}]}},"response":[],"_postman_id":"ab07a90a-46b5-46c3-9b64-bf954203f788"},{"name":"Add New Menu item","id":"80fce9c4-5819-4d58-9603-b4df8b7a1023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Cheesy Pepperoni Pizza\",\r\n  \"description\": \"A delicious pizza topped with melted mozzarella cheese and spicy pepperoni slices.\",\r\n  \"price\":  120.99,\r\n  \"restaurantId\": \"65a1234567890abcdef12345\",  \r\n  \"category\": \"Pizza\",\r\n  \"image\": \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTTWdpFVKZC4jH8acMMgEiNXTjk4rk10Q58iA&s\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/menu","description":"<p>Allows the addition of a new menu item to the system by providing necessary details such as name, description, price, and the restaurant it belongs to.</p>\n","urlObject":{"protocol":"https","path":["api","menu"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"80fce9c4-5819-4d58-9603-b4df8b7a1023"},{"name":"Update Prize by id","id":"36ea2918-e6c7-4db0-b85f-63cbaba1eabb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Burger\",\r\n    \"description\": \"A delicious grilled beef burger\",\r\n    \"price\": 100,\r\n    \"restaurantId\": \"000000012c9ebef81fa9a664\",\r\n    \"category\": \"Fast Food\",\r\n    \"image\": \"https://cdn.pixabay.com/photo/2022/08/29/17/45/burger-7419428_640.jpg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/menu/:id","description":"<p>Enables updating the information of an existing menu item identified by its ID. This can include changes to the description, price, or availability status.</p>\n","urlObject":{"protocol":"https","path":["api","menu",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"678d04832c9ebef81fa9a665","key":"id"}]}},"response":[],"_postman_id":"36ea2918-e6c7-4db0-b85f-63cbaba1eabb"},{"name":"Delete item by id","id":"6a38d30f-a0e1-49ec-8b4d-3693c152b2a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://king-hub-1.onrender.com/api/menu/:id","description":"<p>Removes a menu item from the system based on its unique ID. This action is typically irreversible and should be performed with caution.</p>\n","urlObject":{"protocol":"https","path":["api","menu",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"6792476ec6c3a149d92ab369","key":"id"}]}},"response":[],"_postman_id":"6a38d30f-a0e1-49ec-8b4d-3693c152b2a8"}],"id":"b4bad392-0a36-45b8-8254-29353fe491d9","description":"<p>Handles menu items for restaurants, allowing users to view all menu items, get details of a specific item, add new items, update existing ones, and delete items from the system.</p>\n","_postman_id":"b4bad392-0a36-45b8-8254-29353fe491d9"},{"name":"User Details","item":[{"name":"New User Registration","id":"052e074e-120d-499c-bd85-82ea080c41a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"jfewiojwioejo\",\r\n    \"email\": \"dowpdkwp@example.com\",\r\n    \"password\": \"jdwiojdoqw\",\r\n    \"address\": \"uwdiowque\",\r\n    \"contact\": \"9876543210\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/auth/register","description":"<p>Allows the addition of a new user to the system by providing necessary details such as username, password, email, and other relevant information.</p>\n","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"052e074e-120d-499c-bd85-82ea080c41a1"},{"name":"User Login","id":"df4e966d-407b-413e-badd-cf802d502cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"sub\": \"google-oauth2|111474338614420555356\",\r\n    \"name\": \"John Doe\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"picture\": \"https://example.com/picture.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/auth","description":"<p>Authenticates a user using email and password, returning a token upon successful login.</p>\n","urlObject":{"protocol":"https","path":["api","auth"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df4e966d-407b-413e-badd-cf802d502cfd"}],"id":"d0e3b492-5c79-4789-b241-4a8d106264ae","description":"<p>Manages user-related operations, including retrieving all users, fetching details of a specific user, creating new user accounts.</p>\n","_postman_id":"d0e3b492-5c79-4789-b241-4a8d106264ae"},{"name":"Cart Details","item":[{"name":"Get Cart Details","id":"fb44de36-f768-47fd-af56-45cd9dbf58f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/cart","description":"<p>Retrieves the current contents of the authenticated user's cart, including details such as item names, quantities, prices, and the total amount.</p>\n","urlObject":{"protocol":"https","path":["api","cart"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb44de36-f768-47fd-af56-45cd9dbf58f1"},{"name":"Add Cart Details","id":"e84e42c4-3724-476b-90de-914871ae4c3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"67924de1211d6ca3da17c85a\",\r\n    \"menuItem\": \"678d04832c9ebef81fa9a665\",\r\n    \"quantity\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/cart","description":"<p>Adds a specified item to the user's cart. Requires details like the item ID and desired quantity.</p>\n","urlObject":{"protocol":"https","path":["api","cart"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e84e42c4-3724-476b-90de-914871ae4c3f"},{"name":"Delete item from Cart","id":"bd314794-80d0-486d-b20a-38135ec0a853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://king-hub-1.onrender.com/api/cart/:id","description":"<p>Removes a specific item from the user's cart based on the item's unique ID or quantity</p>\n","urlObject":{"protocol":"https","path":["api","cart",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"679253b7211d6ca3da17c866","key":"id"}]}},"response":[],"_postman_id":"bd314794-80d0-486d-b20a-38135ec0a853"},{"name":"Update Quantity in Cart","id":"26e765c0-7345-4185-8a43-ee704dc9ed31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"67924de1211d6ca3da17c85a\",\r\n    \"menuItem\": \"678d04832c9ebef81fa9a665\",\r\n    \"quantity\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/cart/:id","description":"<p>Updates the quantity or other details of a specific item in the user's cart, identified by the item's unique ID.</p>\n","urlObject":{"protocol":"https","path":["api","cart",":id"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[{"type":"any","value":"679252ab211d6ca3da17c862","key":"id"}]}},"response":[],"_postman_id":"26e765c0-7345-4185-8a43-ee704dc9ed31"}],"id":"f7c85097-ac2b-4609-82fa-adc0fd8fce5a","description":"<p>Controls shopping cart functionalities, enabling users to view their cart, add items, update quantities, remove specific items, or clear the entire cart.</p>\n","_postman_id":"f7c85097-ac2b-4609-82fa-adc0fd8fce5a"},{"name":"Search Details","item":[{"name":"Search Restaurants and Menu Items","id":"42dc326e-8a2d-4d13-9247-b1cf4eb876b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://king-hub-1.onrender.com/api/search?query=Burger","description":"<p>Enables searching for product or menu categories within the system. Users can filter categories by name, description, or associated restaurant to find specific groups of items.</p>\n","urlObject":{"protocol":"https","path":["api","search"],"host":["king-hub-1","onrender","com"],"query":[{"key":"query","value":"Burger"}],"variable":[]}},"response":[],"_postman_id":"42dc326e-8a2d-4d13-9247-b1cf4eb876b2"}],"id":"b4fe550b-a47c-4997-af5a-0b814aacdff3","description":"<p>Provides search functionalities across the system, allowing users to find restaurants, menu items, users and query parameters.</p>\n","_postman_id":"b4fe550b-a47c-4997-af5a-0b814aacdff3"},{"name":"Contact Details","item":[{"name":"User's contact details","id":"0e923fb2-8f7a-4cb6-8836-dc1a92ea7133","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\"name\" : \"Darshan\",\r\n\"email\" : \"darshan@gmail.com\",\r\n\"message\" : \"Hi\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/contact","description":"<p>POST request to submit user's contact details to the /api/contact endpoint.</p>\n","urlObject":{"protocol":"https","path":["api","contact"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e923fb2-8f7a-4cb6-8836-dc1a92ea7133"}],"id":"c79c279d-b5a2-46b3-83f3-68a98f75f84c","description":"<p>User's contact details are stored.</p>\n","_postman_id":"c79c279d-b5a2-46b3-83f3-68a98f75f84c"},{"name":"Hier Details","item":[{"name":"Add Hier details","id":"6f0f277c-c5a2-406d-bf11-87089ad2732a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"fullName\": \"ABCeuw9eu\",\r\n  \"email\": \"abc@exampwoeirle.com\",\r\n  \"phone\": \"1234567890\",\r\n  \"address\": \"123 Main Street, Springfield\",\r\n  \"vehicleType\": \"Bike\",\r\n  \"licenseNumber\": \"DL123456798reior\",\r\n  \"experience\": 2,\r\n  \"createdAt\": \"2025-02-21T12:00:00.000Z\",\r\n  \"updatedAt\": \"2025-02-21T12:00:00.000Z\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://king-hub-1.onrender.com/api/hier","urlObject":{"protocol":"https","path":["api","hier"],"host":["king-hub-1","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f0f277c-c5a2-406d-bf11-87089ad2732a"}],"id":"2a1dba21-c2d4-4564-b4e2-231e8dfefa62","_postman_id":"2a1dba21-c2d4-4564-b4e2-231e8dfefa62","description":""}]}