{"info":{"_postman_id":"82954ded-d590-4de5-9fcb-a1b6d321e074","name":"Restaurant API Documentation","description":"<html><head></head><body><p>welcome to the Restaurant API similar to Zomato . This document provides comprehensive information on the RESTful API that power our restaurant platform, allowing developers to create, manage and access restaurant data, manus, user reviews and more.</p>\n<h2 id=\"api-implementations-details\">API Implementations details</h2>\n<ul>\n<li><strong>Database :</strong> Used <strong>MongoDB</strong> for storing restaurants information</li>\n<li><strong>ODM : mongoose</strong> user for interacting with the mongodb database</li>\n</ul>\n<h2 id=\"api-endpoints\">API Endpoints</h2>\n<p>These API provides comprehensive set of features to manage restaurants data , menus , user rating reviews on the platform</p>\n<h5 id=\"restaurant-management\">Restaurant Management:</h5>\n<ol>\n<li><p><strong>Creating Restaurant :</strong> Allow to add new restaurant information with essentia details such as name, cuisine, address, menus and more.</p>\n</li>\n<li><p><strong>Read a Restaurant :</strong> fetch restaurant details based on its name.</p>\n</li>\n<li><p><strong>Reading all Restaurants :</strong> fetch all restaurants information stored in the database.</p>\n</li>\n<li><p><strong>Reading Restaurants by cuisine :</strong> allow to fetch restaurants with filter based on cuisine type</p>\n</li>\n<li><p><strong>Updating a Restaurant :</strong> Provides the capability to update restaurant information, including ratings, address, and other relevant details, using its unique identifier (ID)</p>\n</li>\n<li><p><strong>Deleting a Restaurant :</strong> Allows for the removal of a restaurant from our platform, ensuring data accuracy and relevance.</p>\n</li>\n<li><p><strong>search for Restaurants by location</strong> : Facilitates location-based searches, enabling users to find restaurants in specific cities or addresses effortlessly.</p>\n</li>\n<li><p><strong>Filtering Restaurants by Rating:</strong> Allows users to filter restaurants by a minimum rating</p>\n</li>\n</ol>\n<h5 id=\"menu-management-\">Menu Management :</h5>\n<ol>\n<li><p><strong>Add a Dish to menus of Restaurant:</strong> Add a new dish to the array of menus in Restaurant object</p>\n</li>\n<li><p><strong>Remove a Dish from menus of Restaurant :</strong> remove a dish from the array of menus in Restaurant object</p>\n</li>\n</ol>\n<h2 id=\"api-base-url\">API Base URL</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">https://restaurant-api-seven.vercel.app/\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23291498","collectionId":"82954ded-d590-4de5-9fcb-a1b6d321e074","publishedId":"2s9YsT6os2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-20T16:57:45.000Z"},"item":[{"name":"Restaurant Management","item":[{"name":"Reading All Restaurants","id":"095fef73-83be-4e54-b877-d0ecc3b283cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants","description":"<h5 id=\"enpoint--get-restaurants\"><strong>Enpoint :</strong> <strong><code>GET /restaurants</code></strong></h5>\n<p><strong>Description :</strong> This request retrieve all restaurants data from the database. The response contains array of object representing a restaurant with unique id , name , location , city, address, cuisine type, menus and more.</p>\n","urlObject":{"protocol":"https","path":["restaurants"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"6a015e6c-cf5f-45cb-a1c0-f9e96dcfdbaa","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Encoding","value":"br"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Fri, 19 Jan 2024 05:21:21 GMT"},{"key":"Etag","value":"W/\"4a8-vSGq3yeyAQdiDLPZjIZYBieivTk\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::w47tp-1705641677454-0c2301daf21d"},{"key":"X-Xss-Protection","value":"0"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurants\": [\n            {\n                \"_id\": \"659743c3079510eb43d250d3\",\n                \"name\": \"Delicious Bites\",\n                \"cuisine\": \"Italian\",\n                \"address\": \"123 Main Street\",\n                \"city\": \"Foodville\",\n                \"rating\": 4.5,\n                \"menu\": [\n                    {\n                        \"name\": \"Spaghetti Bolognese\",\n                        \"price\": 15.99,\n                        \"description\": \"Spaghetti with meat sauce and Parmesan cheese\",\n                        \"isVeg\": \"true\",\n                        \"_id\": \"659743c3079510eb43d250d5\"\n                    },\n                    {\n                        \"name\": \"Tiramisu\",\n                        \"price\": 7.99,\n                        \"description\": \"Classic Italian dessert with coffee and mascarpone\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"659743c3079510eb43d250d6\"\n                    }\n                ],\n                \"__v\": 6,\n                \"averageRating\": 4.666666666666667,\n                \"reviews\": [\n                    {\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57c5206923e411ec59bf3\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57d7ddb8c731791d13570\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 5,\n                        \"text\": \"average restaurant\",\n                        \"_id\": \"65a57da6db8c731791d13577\"\n                    }\n                ]\n            },\n            {\n                \"_id\": \"65a2dcabe08e197a8b55dbc4\",\n                \"name\": \"New Restaurant\",\n                \"cuisine\": \"Italian\",\n                \"address\": \"123 Main St\",\n                \"city\": \"New York\",\n                \"rating\": 4.5,\n                \"menu\": [\n                    {\n                        \"name\": \"Pizza Margherita\",\n                        \"price\": 12.99,\n                        \"_id\": \"65a2dcabe08e197a8b55dbc5\"\n                    },\n                    {\n                        \"name\": \"Pasta Carbonara\",\n                        \"price\": 15.99,\n                        \"_id\": \"65a2dcabe08e197a8b55dbc6\"\n                    }\n                ],\n                \"averageRating\": 0,\n                \"__v\": 0,\n                \"reviews\": []\n            }\n        ]\n    }\n}"}],"_postman_id":"095fef73-83be-4e54-b877-d0ecc3b283cf"},{"name":"Creating a Restaurant","id":"3a914695-b6d0-45ac-88d0-717241d6dffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n        \"name\": \"Spice Delight\",\n        \"cuisine\": \"Indian\",\n        \"address\": \"789 Oak Lane\",\n        \"city\": \"Chicago\",\n        \"rating\": 4.0,\n        \"menu\": [\n            {\n                \"name\": \"Pad Thai\",\n                \"price\": 10.99,\n                \"description\": \"Stir-fried noodles with shrimp\",\n                \"isVeg\": false\n            },\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 13.99,\n                \"description\": \"Creamy tomato sauce with chicken\",\n                \"isVeg\": false\n            }\n        ],\n        \"averageRating\": 4.2\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants","description":"<ul>\n<li><p><strong>Endpoint :</strong> <code>POST /restaurants</code></p>\n</li>\n<li><p><strong>Description :</strong> Allows you to add new restaurants to our platform, complete with essential details such as name, cuisine type, address, and more.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"272bc06e-608c-4dd1-a117-fb8a0e3da95b","name":"Creating a Restaurant","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n        \"name\": \"Spice Delight\",\n        \"cuisine\": \"Indian\",\n        \"address\": \"789 Oak Lane\",\n        \"city\": \"Chicago\",\n        \"rating\": 4.0,\n        \"menu\": [\n            {\n                \"name\": \"Pad Thai\",\n                \"price\": 10.99,\n                \"description\": \"Stir-fried noodles with shrimp\",\n                \"isVeg\": false\n            },\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 13.99,\n                \"description\": \"Creamy tomato sauce with chicken\",\n                \"isVeg\": false\n            }\n        ],\n        \"averageRating\": 4.2\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"472"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 16:37:03 GMT"},{"key":"Etag","value":"W/\"1d8-ioqPgnuJj0U6Cac5YIvXhav1Axc\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::lshpp-1705768622868-db474bda6b0f"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurants\": {\n            \"name\": \"Spice Delight\",\n            \"cuisine\": \"Indian\",\n            \"address\": \"789 Oak Lane\",\n            \"city\": \"Chicago\",\n            \"rating\": 4,\n            \"menu\": [\n                {\n                    \"name\": \"Pad Thai\",\n                    \"price\": 10.99,\n                    \"description\": \"Stir-fried noodles with shrimp\",\n                    \"isVeg\": \"false\",\n                    \"_id\": \"65abf6af20ff3a1b833eea28\"\n                },\n                {\n                    \"name\": \"Butter Chicken\",\n                    \"price\": 13.99,\n                    \"description\": \"Creamy tomato sauce with chicken\",\n                    \"isVeg\": \"false\",\n                    \"_id\": \"65abf6af20ff3a1b833eea29\"\n                }\n            ],\n            \"averageRating\": 4.2,\n            \"_id\": \"65abf6af20ff3a1b833eea27\",\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"3a914695-b6d0-45ac-88d0-717241d6dffd"},{"name":"Reading a Restaurant","id":"8f06342b-03eb-44b8-a935-168c49ad3752","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/Spice Delight","description":"<ul>\n<li><p><strong>Endpoint :</strong> <code>GET /restaurants/:name</code></p>\n</li>\n<li><p><strong>Description :</strong> This request fetch a restaurant on the basis of the restaurant name.</p>\n</li>\n<li><p><strong>Parameters :</strong> Name</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","Spice Delight"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"b819b292-bbec-4fe7-9f2a-c008727fffde","name":"Reading a Restaurant","originalRequest":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/Spice Delight"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"473"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Fri, 19 Jan 2024 08:21:58 GMT"},{"key":"Etag","value":"W/\"1d9-00upgKqyn7vbenfL/UlYbq+hvPU\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::fwjdn-1705652514509-65cca7978332"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurant\": [\n            {\n                \"_id\": \"65aa0c0b6dcb659f989184e9\",\n                \"name\": \"Spice Delight\",\n                \"cuisine\": \"Indian\",\n                \"address\": \"789 Oak Lane\",\n                \"city\": \"Chicago\",\n                \"rating\": 4,\n                \"menu\": [\n                    {\n                        \"name\": \"Pad Thai\",\n                        \"price\": 10.99,\n                        \"description\": \"Stir-fried noodles with shrimp\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"65aa0c0b6dcb659f989184ea\"\n                    },\n                    {\n                        \"name\": \"Butter Chicken\",\n                        \"price\": 13.99,\n                        \"description\": \"Creamy tomato sauce with chicken\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"65aa0c0b6dcb659f989184eb\"\n                    }\n                ],\n                \"averageRating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"8f06342b-03eb-44b8-a935-168c49ad3752"},{"name":"Reading Restaurant by cuisine","id":"d3b20d39-57b5-4516-92ab-be49bda74ead","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/cuisine/Indian","description":"<ul>\n<li><p><strong>Endpoint :</strong> <code>GET /restaurants/cuisine/:cuisineType</code></p>\n</li>\n<li><p><strong>Description :</strong> This request fetch all restaurant based on the cuisine type</p>\n</li>\n<li><p><strong>Parameters :</strong> Cuisine type</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","cuisine","Indian"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"7ec9538c-b5ae-4089-acf8-522a16c3b7cd","name":"Reading Restaurant by cuisine","originalRequest":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/cuisine/Indian"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"474"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Fri, 19 Jan 2024 08:22:51 GMT"},{"key":"Etag","value":"W/\"1da-Y6hvXqrOKVkJ6TF7a/OSVCgdQbE\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::2p2mx-1705652571282-40587feddab5"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurants\": [\n            {\n                \"_id\": \"65aa0c0b6dcb659f989184e9\",\n                \"name\": \"Spice Delight\",\n                \"cuisine\": \"Indian\",\n                \"address\": \"789 Oak Lane\",\n                \"city\": \"Chicago\",\n                \"rating\": 4,\n                \"menu\": [\n                    {\n                        \"name\": \"Pad Thai\",\n                        \"price\": 10.99,\n                        \"description\": \"Stir-fried noodles with shrimp\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"65aa0c0b6dcb659f989184ea\"\n                    },\n                    {\n                        \"name\": \"Butter Chicken\",\n                        \"price\": 13.99,\n                        \"description\": \"Creamy tomato sauce with chicken\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"65aa0c0b6dcb659f989184eb\"\n                    }\n                ],\n                \"averageRating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"d3b20d39-57b5-4516-92ab-be49bda74ead"},{"name":"Updating a Restaurant","id":"8bf28c4c-abee-420b-96d7-84a8b7a9826e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated Name\",\n    \"city\":\"Updated city\"\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65aa0c0b6dcb659f989184e9","description":"<p><strong>Endpoint :</strong> <strong><code>POST /restaurants/:restaurantId</code></strong></p>\n<p><strong>Description :</strong> Provides the capability to update restaurant information, including ratings, address, and other relevant details, using its unique identifier (ID).</p>\n","urlObject":{"protocol":"https","path":["restaurants","65aa0c0b6dcb659f989184e9"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"cffad91a-056f-4791-bec3-cc945cb013d1","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Updated Name\",\n    \"city\":\"Updated city\"\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65aa0c0b6dcb659f989184e9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"475"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Fri, 19 Jan 2024 16:27:13 GMT"},{"key":"Etag","value":"W/\"1db-tTOarRzq4VOsAzDJanrNw5XcBmY\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::htlkh-1705681629016-9ef0c1b1cbf0"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurant\": {\n            \"_id\": \"65aa0c0b6dcb659f989184e9\",\n            \"name\": \"Updated Name\",\n            \"cuisine\": \"Indian\",\n            \"address\": \"789 Oak Lane\",\n            \"city\": \"Updated city\",\n            \"rating\": 4,\n            \"menu\": [\n                {\n                    \"name\": \"Pad Thai\",\n                    \"price\": 10.99,\n                    \"description\": \"Stir-fried noodles with shrimp\",\n                    \"isVeg\": \"false\",\n                    \"_id\": \"65aa0c0b6dcb659f989184ea\"\n                },\n                {\n                    \"name\": \"Butter Chicken\",\n                    \"price\": 13.99,\n                    \"description\": \"Creamy tomato sauce with chicken\",\n                    \"isVeg\": \"false\",\n                    \"_id\": \"65aa0c0b6dcb659f989184eb\"\n                }\n            ],\n            \"averageRating\": 4.2,\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"8bf28c4c-abee-420b-96d7-84a8b7a9826e"},{"name":"search restaurant by location","id":"6d95e54e-9eb7-4579-92ec-15bab443a031","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/search?location=Foodville","description":"<p><strong>Endpoint :</strong> <strong><code>GET /restaurants/search</code></strong></p>\n<p><strong>Description :</strong> Facilitates location-based searches, enabling users to find restaurants in specific cities or addresses effortlessly.</p>\n","urlObject":{"protocol":"https","path":["restaurants","search"],"host":["restaurant-api-seven","vercel","app"],"query":[{"key":"location","value":"Foodville"}],"variable":[]}},"response":[{"id":"81635d15-1d99-4952-b127-38fa0d248916","name":"search restaurant by location","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://restaurant-api-seven.vercel.app/restaurants/search?location=Foodville","protocol":"https","host":["restaurant-api-seven","vercel","app"],"path":["restaurants","search"],"query":[{"key":"location","value":"Foodville"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"861"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 05:38:45 GMT"},{"key":"Etag","value":"W/\"35d-mRjkO5H+Lvs4/8ekwi0MLA96el0\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::5xcn8-1705729120394-a5f66a703486"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurants\": [\n            {\n                \"_id\": \"659743c3079510eb43d250d3\",\n                \"name\": \"Delicious Bites\",\n                \"cuisine\": \"Italian\",\n                \"address\": \"123 Main Street\",\n                \"city\": \"Foodville\",\n                \"rating\": 4.5,\n                \"menu\": [\n                    {\n                        \"name\": \"Spaghetti Bolognese\",\n                        \"price\": 15.99,\n                        \"description\": \"Spaghetti with meat sauce and Parmesan cheese\",\n                        \"isVeg\": \"true\",\n                        \"_id\": \"659743c3079510eb43d250d5\"\n                    },\n                    {\n                        \"name\": \"Tiramisu\",\n                        \"price\": 7.99,\n                        \"description\": \"Classic Italian dessert with coffee and mascarpone\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"659743c3079510eb43d250d6\"\n                    }\n                ],\n                \"__v\": 6,\n                \"averageRating\": 4.666666666666667,\n                \"reviews\": [\n                    {\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57c5206923e411ec59bf3\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57d7ddb8c731791d13570\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 5,\n                        \"text\": \"average restaurant\",\n                        \"_id\": \"65a57da6db8c731791d13577\"\n                    }\n                ]\n            }\n        ]\n    }\n}"}],"_postman_id":"6d95e54e-9eb7-4579-92ec-15bab443a031"},{"name":"Delete a Restaurant","id":"86de5677-1e73-4ca4-aa26-6b14a71bb87a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65ab63b687c8aed50329ac0c","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>DELETE /restaurants/:restaurantId</code></p>\n</li>\n<li><p><strong>Description:</strong> Allows for the removal of a restaurant from our platform, ensuring data accuracy and relevance.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","65ab63b687c8aed50329ac0c"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"aed4b88a-eb9d-4d63-b8e6-5aaddd0cfae6","name":"Delete a Restaurant","originalRequest":{"method":"DELETE","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65ab63b687c8aed50329ac0c"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"512"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 06:11:11 GMT"},{"key":"Etag","value":"W/\"200-GLhDPn+y6Fu76WBmGnduC48eRdY\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::58ftk-1705731070734-671b7d47b3be"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"deleted successfully\",\n    \"restaurant\": {\n        \"_id\": \"65ab63b687c8aed50329ac0c\",\n        \"name\": \"Spice Haven\",\n        \"cuisine\": \"Indian\",\n        \"address\": \"456 Spice Lane\",\n        \"city\": \"Spicetown\",\n        \"rating\": 4.2,\n        \"menu\": [\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 14.99,\n                \"description\": \"Creamy and flavorful chicken curry\",\n                \"isVeg\": \"false\",\n                \"_id\": \"65ab63b687c8aed50329ac0d\"\n            },\n            {\n                \"name\": \"Vegetable Biryani\",\n                \"price\": 11.99,\n                \"description\": \"Fragrant rice with mixed vegetables\",\n                \"isVeg\": \"true\",\n                \"_id\": \"65ab63b687c8aed50329ac0e\"\n            }\n        ],\n        \"averageRating\": 0,\n        \"reviews\": [],\n        \"__v\": 0\n    }\n}"}],"_postman_id":"86de5677-1e73-4ca4-aa26-6b14a71bb87a"},{"name":"Filter Restaurant by rating","id":"b06692e4-eee0-4801-a3c3-239396cbbe42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/rating/4.5","description":"<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /restaurants/rating/:minRating</code></p>\n</li>\n<li><p><strong>Description:</strong> Allows users to filter restaurants by a minimum rating.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","rating","4.5"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"68047455-650d-4beb-88d2-0bcd7d0e07a7","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/rating/4.5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Encoding","value":"br"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 06:14:54 GMT"},{"key":"Etag","value":"W/\"4a8-vSGq3yeyAQdiDLPZjIZYBieivTk\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::mn8ht-1705731293776-71091a9bac7a"},{"key":"X-Xss-Protection","value":"0"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"restaurants\": [\n            {\n                \"_id\": \"659743c3079510eb43d250d3\",\n                \"name\": \"Delicious Bites\",\n                \"cuisine\": \"Italian\",\n                \"address\": \"123 Main Street\",\n                \"city\": \"Foodville\",\n                \"rating\": 4.5,\n                \"menu\": [\n                    {\n                        \"name\": \"Spaghetti Bolognese\",\n                        \"price\": 15.99,\n                        \"description\": \"Spaghetti with meat sauce and Parmesan cheese\",\n                        \"isVeg\": \"true\",\n                        \"_id\": \"659743c3079510eb43d250d5\"\n                    },\n                    {\n                        \"name\": \"Tiramisu\",\n                        \"price\": 7.99,\n                        \"description\": \"Classic Italian dessert with coffee and mascarpone\",\n                        \"isVeg\": \"false\",\n                        \"_id\": \"659743c3079510eb43d250d6\"\n                    }\n                ],\n                \"__v\": 6,\n                \"averageRating\": 4.666666666666667,\n                \"reviews\": [\n                    {\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57c5206923e411ec59bf3\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 4.5,\n                        \"text\": \"Great food and excellent service!\",\n                        \"_id\": \"65a57d7ddb8c731791d13570\"\n                    },\n                    {\n                        \"userId\": \"65a57950ba675b09b03706ea\",\n                        \"rating\": 5,\n                        \"text\": \"average restaurant\",\n                        \"_id\": \"65a57da6db8c731791d13577\"\n                    }\n                ]\n            },\n            {\n                \"_id\": \"65a2dcabe08e197a8b55dbc4\",\n                \"name\": \"New Restaurant\",\n                \"cuisine\": \"Italian\",\n                \"address\": \"123 Main St\",\n                \"city\": \"New York\",\n                \"rating\": 4.5,\n                \"menu\": [\n                    {\n                        \"name\": \"Pizza Margherita\",\n                        \"price\": 12.99,\n                        \"_id\": \"65a2dcabe08e197a8b55dbc5\"\n                    },\n                    {\n                        \"name\": \"Pasta Carbonara\",\n                        \"price\": 15.99,\n                        \"_id\": \"65a2dcabe08e197a8b55dbc6\"\n                    }\n                ],\n                \"averageRating\": 0,\n                \"__v\": 0,\n                \"reviews\": []\n            }\n        ]\n    }\n}"}],"_postman_id":"b06692e4-eee0-4801-a3c3-239396cbbe42"}],"id":"e5de777e-6f00-4d32-95ec-48942f72de9a","description":"<p>Restaurant Management provides a suite of essential features for efficiently handling restaurant-related operations. Key functionalities include restaurant creation, retrieval by name, listing all restaurants, filtering by cuisine type, updating restaurant information by ID, deleting restaurants by ID, searching by location, and filtering by rating, enabling a comprehensive restaurant management experience.</p>\n","_postman_id":"e5de777e-6f00-4d32-95ec-48942f72de9a"},{"name":"Menu Management","item":[{"name":"Adding a dish to menu of restaurant","id":"10fa7e76-f8d5-405c-8740-332ee18b1678","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n        \"name\": \"Butter Chicken\",\n        \"price\": 13.99,\n        \"description\": \"Creamy tomato sauce with chicken\",\n        \"isVeg\": false\n    }","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/menu","description":"<p><strong>Endpoint :</strong> <code>POST /restaurants/:restaurantId/reviews</code></p>\n<p><strong>Description :</strong> Lets restaurants update their menus by adding new dishes, enhancing menu offerings.</p>\n","urlObject":{"protocol":"https","path":["restaurants","65a2dcabe08e197a8b55dbc4","menu"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"13b7f701-ff61-44f9-8623-92bef2e1a94a","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n        \"name\": \"Butter Chicken\",\n        \"price\": 13.99,\n        \"description\": \"Creamy tomato sauce with chicken\",\n        \"isVeg\": false\n    }","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/menu"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"509"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 06:19:06 GMT"},{"key":"Etag","value":"W/\"1fd-/kDd7Zl99ZDMu7NjXSLGWRaELxc\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::5w48d-1705731546336-ce2a409e72da"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"menu is added\",\n    \"restaurant\": {\n        \"_id\": \"65a2dcabe08e197a8b55dbc4\",\n        \"name\": \"New Restaurant\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"65a2dcabe08e197a8b55dbc5\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"65a2dcabe08e197a8b55dbc6\"\n            },\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 13.99,\n                \"description\": \"Creamy tomato sauce with chicken\",\n                \"isVeg\": \"false\",\n                \"_id\": \"65ab65daa0eee69ff84e4a8b\"\n            }\n        ],\n        \"averageRating\": 0,\n        \"__v\": 1,\n        \"reviews\": []\n    }\n}"}],"_postman_id":"10fa7e76-f8d5-405c-8740-332ee18b1678"},{"name":"Delete Dish from menu of restaurant","id":"5fb51d52-58c3-4c78-b2f5-30d0e92aaabc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/menu/65a2dcabe08e197a8b55dbc6","description":"<ul>\n<li><strong>Endpoint :</strong> <code>DELETE /restaurants/restaurantId/menu/dishId</code></li>\n<li><strong>Description :</strong> Allows restaurants to manage their menus by removing dishes that are no longer available.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","65a2dcabe08e197a8b55dbc4","menu","65a2dcabe08e197a8b55dbc6"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"d32afa71-588f-4261-a9e8-1ba602c15647","name":"Delete dish from restaurant menu","originalRequest":{"method":"DELETE","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/menu/65a2dcabe08e197a8b55dbc6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"447"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 06:21:10 GMT"},{"key":"Etag","value":"W/\"1bf-FJfwvDqL5I6mEkbNAE9MvgPYFQo\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::tb4h6-1705731669740-71513f5dddef"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dish deleted successfully\",\n    \"restaurant\": {\n        \"_id\": \"65a2dcabe08e197a8b55dbc4\",\n        \"name\": \"New Restaurant\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"65a2dcabe08e197a8b55dbc5\"\n            },\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 13.99,\n                \"description\": \"Creamy tomato sauce with chicken\",\n                \"isVeg\": \"false\",\n                \"_id\": \"65ab65daa0eee69ff84e4a8b\"\n            }\n        ],\n        \"averageRating\": 0,\n        \"__v\": 2,\n        \"reviews\": []\n    }\n}"}],"_postman_id":"5fb51d52-58c3-4c78-b2f5-30d0e92aaabc"}],"id":"2db3eac9-8181-4081-ae40-934c01c2ba21","description":"<p>Menu Management streamlines the process of managing restaurant menus within your application. With two essential endpoints, it allows you to effortlessly add new dishes to a restaurant's menu and remove dishes that are no longer available. This API simplifies menu updates and ensures that users have access to the most up-to-date restaurant offerings.</p>\n","_postman_id":"2db3eac9-8181-4081-ae40-934c01c2ba21"},{"name":"User Reviews Management","item":[{"name":"Retrieving User Reviews for a Specific Restaurant","id":"d5b4b0f0-d7c2-460a-848d-ef3220ff824b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65ab7ff0185cf59a9f720d5a/reviews","description":"<ul>\n<li><p><strong>Endpoint :</strong> <code>GET /restaurants/restaurantId/reviews</code></p>\n</li>\n<li><p><strong>Description :</strong> Provides access to user reviews for a particular restaurant, helping users make informed dining choices.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","65ab7ff0185cf59a9f720d5a","reviews"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"f162a31a-0d35-4881-a7d3-3326bf6193b1","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"https://restaurant-api-seven.vercel.app/restaurants/65ab7ff0185cf59a9f720d5a/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"286"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 14:51:06 GMT"},{"key":"Etag","value":"W/\"11e-s8Vn125VQAIpRIEYXjYi/wdMxOY\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::pb7cg-1705762266421-71ffa529753a"},{"key":"X-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"reviews\": [\n        {\n            \"userId\": null,\n            \"rating\": 3.2,\n            \"text\": \"It is good restaurant\",\n            \"_id\": \"65ab807d185cf59a9f720d6c\"\n        },\n        {\n            \"userId\": null,\n            \"rating\": 3.2,\n            \"text\": \"It is good restaurant\",\n            \"_id\": \"65ab8410185cf59a9f720d72\"\n        },\n        {\n            \"userId\": null,\n            \"rating\": 3.2,\n            \"text\": \"It is damn good\",\n            \"_id\": \"65abb3569ac587d91a08e74a\"\n        }\n    ]\n}"}],"_postman_id":"d5b4b0f0-d7c2-460a-848d-ef3220ff824b"},{"name":"Allow users to add reviews and rating to restaurant","id":"03381d33-eff7-44be-9d76-fa252b4d2bcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"651714e7143ad7eb87c942f6\",\n    \"rating\": 4.5,\n    \"text\": \"Great food and excellent service!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/reviews","description":"<ul>\n<li><p><strong>Endpoint :</strong> <code>POST /restaurants/:restaurantId/reviews</code></p>\n</li>\n<li><p><strong>Description :</strong> Empowers users to share their dining experiences by adding ratings and reviews for specific restaurants.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["restaurants","65a2dcabe08e197a8b55dbc4","reviews"],"host":["restaurant-api-seven","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"1072b50e-eae5-42cc-8cd7-c3054d0c73ff","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"651714e7143ad7eb87c942f6\",\n    \"rating\": 4.5,\n    \"text\": \"Great food and excellent service!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://restaurant-api-seven.vercel.app/restaurants/65a2dcabe08e197a8b55dbc4/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Encoding","value":"br"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Date","value":"Sat, 20 Jan 2024 16:35:43 GMT"},{"key":"Etag","value":"W/\"3ea-8fKFQcbD3MRRLIOcLTJ9k74GcpY\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Dns-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"bom1::iad1::v8hrm-1705768542500-0817c8cb9c37"},{"key":"X-Xss-Protection","value":"0"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review added succesfully\",\n    \"restaurant\": {\n        \"_id\": \"65a2dcabe08e197a8b55dbc4\",\n        \"name\": \"New Restaurant\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"65a2dcabe08e197a8b55dbc5\"\n            },\n            {\n                \"name\": \"Butter Chicken\",\n                \"price\": 13.99,\n                \"description\": \"Creamy tomato sauce with chicken\",\n                \"isVeg\": \"false\",\n                \"_id\": \"65ab65daa0eee69ff84e4a8b\"\n            }\n        ],\n        \"averageRating\": 3.72,\n        \"__v\": 7,\n        \"reviews\": [\n            {\n                \"userId\": \"651714e7143ad7eb87c942f6\",\n                \"rating\": 4.5,\n                \"_id\": \"65ab67b3a0eee69ff84e4a98\"\n            },\n            {\n                \"userId\": \"65a57c5206923e411ec59bf3\",\n                \"rating\": 3.2,\n                \"text\": \"It is damn good\",\n                \"_id\": \"65abb4a713572db00d221b7c\"\n            },\n            {\n                \"userId\": \"65a57c5206923e411ec59bf3\",\n                \"rating\": 3.2,\n                \"text\": \"It is damn good\",\n                \"_id\": \"65abb4ca13572db00d221b83\"\n            },\n            {\n                \"userId\": \"65a57c5206923e411ec59bf3\",\n                \"rating\": 3.2,\n                \"text\": \"It is damn good you should try \",\n                \"_id\": \"65abb50313572db00d221b8b\"\n            },\n            {\n                \"userId\": \"651714e7143ad7eb87c942f6\",\n                \"rating\": 4.5,\n                \"text\": \"Great food and excellent service!\",\n                \"_id\": \"65abf65e55c0731ba94c1798\"\n            }\n        ]\n    }\n}"}],"_postman_id":"03381d33-eff7-44be-9d76-fa252b4d2bcc"}],"id":"cdd2f4fb-b950-4417-9f14-b73133da115b","description":"<p>User Reviews Management facilitates seamless user interaction and feedback within your application. With these endpoints, users can easily add detailed reviews and ratings for restaurants, enhancing the dining experience for others. Additionally, the API allows for the retrieval of user reviews specific to a particular restaurant, offering valuable insights and recommendations for users seeking to make informed dining choices.</p>\n","_postman_id":"cdd2f4fb-b950-4417-9f14-b73133da115b"}]}