{"info":{"_postman_id":"10dcae39-545c-4c71-9474-5906bc25904e","name":"Food Quick","description":"<html><head></head><body><p><strong>Welcome to</strong> <em><strong>Aasim's Food Quick</strong></em> <strong>API documentation.</strong></p>\n<h2 id=\"overview\">Overview</h2>\n<p>This API documentation provides details on how to use the Zomato-like Restaurant API to create, retrieve, update, and delete restaurants, manage restaurant menus, add user reviews and ratings, and more. The API is designed to facilitate restaurant discovery and management.</p>\n<h2 id=\"api-base-url\"><strong>API Base URL</strong></h2>\n<blockquote>\n<p><code>https://assignment11foodquick.aasimd.repl.co</code> </p>\n</blockquote>\n<h2 id=\"getting-started\">Getting Started</h2>\n<p>Before using the API, make sure you have the necessary credentials and understand the available endpoints. Refer to the following sections for detailed information on each endpoint.</p>\n<h2 id=\"functionalities\">Functionalities</h2>\n<h3 id=\"restaurant-management\"><strong>Restaurant Management</strong></h3>\n<ul>\n<li><p><strong>Create / Add Restaurant</strong></p>\n<ul>\n<li><p>Endpoint: <code>POST /restaurants</code></p>\n</li>\n<li><p>Description: Create a new restaurant.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Retrieve Restaurant by Name</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants/:name</code></p>\n</li>\n<li><p>Description: Retrieve restaurant details by name.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Retrieve All Restaurants</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants</code></p>\n</li>\n<li><p>Description: Retrieve a list of all restaurants.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Retrieve Restaurants by Cuisine</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants/cuisine/:cuisineType</code></p>\n</li>\n<li><p>Description: Retrieve restaurants by cuisine type.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Update Restaurant Information</strong></p>\n<ul>\n<li><p>Endpoint: <code>POST /restaurants/:restaurantId</code></p>\n</li>\n<li><p>Description: Update restaurant information (e.g., rating, address) by ID.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Delete Restaurant</strong></p>\n<ul>\n<li><p>Endpoint: <code>DELETE /restaurants/:restaurantId</code></p>\n</li>\n<li><p>Description: Delete a restaurant by ID.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Search for Restaurants by Location</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants/search?location=:location</code></p>\n</li>\n<li><p>Description: Search for restaurants by location (city or address).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Filtering Restaurants by Rating</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants/rating/:minimumRating</code></p>\n</li>\n<li><p>Description: Filter restaurants based on ratings minimum and equal to minimumRating</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"menu-management\"><strong>Menu Management</strong></h3>\n<ul>\n<li><p><strong>Add a Dish to a Restaurant's Menu</strong></p>\n<ul>\n<li><p>Endpoint: <code>POST /restaurants/:restaurantId/menu</code></p>\n</li>\n<li><p>Description: Add a new dish to a restaurant's menu.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Remove a Dish from a Restaurant's Menu</strong></p>\n<ul>\n<li><p>Endpoint: <code>DELETE /restaurants/:restaurantId/menu/:dishName</code></p>\n</li>\n<li><p>Description: Remove a dish from a restaurant's menu.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"user-reviews\"><strong>User Reviews</strong></h3>\n<ul>\n<li><p><strong>Add Reviews and Ratings for a Restaurant</strong></p>\n<ul>\n<li><p>Endpoint: <code>POST /restaurants/:restaurantId/reviews</code></p>\n</li>\n<li><p>Description: Allow users to add reviews and ratings for a restaurant.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Retrieve User Reviews for a Specific Restaurant</strong></p>\n<ul>\n<li><p>Endpoint: <code>GET /restaurants/:restaurantId/reviews</code></p>\n</li>\n<li><p>Description: Retrieve user reviews for a specific restaurant.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"restaurant-model\">Restaurant Model</h3>\n<p>The Restaurant Model is the core structure that represents dining establishments within the system. It serves as the foundation for managing and organizing information about various restaurants, making it possible for users to discover and interact with them. Here's an overview of the key components and fields of the Restaurant Model:</p>\n<ul>\n<li><p><strong>name:</strong> The name of the restaurant, which provides a unique identifier for each establishment.</p>\n</li>\n<li><p><strong>cuisine:</strong> This field specifies the type of cuisine that the restaurant specializes in, allowing users to filter and search for restaurants based on their culinary preferences.</p>\n</li>\n<li><p><strong>address:</strong> The physical address of the restaurant, helping users find the restaurant's location easily.</p>\n</li>\n<li><p><strong>city:</strong> The city in which the restaurant is located, enabling users to narrow down their search by city.</p>\n</li>\n<li><p><strong>rating:</strong> The rating is a numerical value that represents the overall quality or popularity of the restaurant. It is typically on a scale from 0 to 5, with 0 being the lowest and 5 being the highest rating. Users can rely on this rating to make informed dining decisions.</p>\n</li>\n<li><p><strong>menu:</strong> The menu field is an array that contains a list of menu items offered by the restaurant. Each menu item is an object with the following attributes:</p>\n<ul>\n<li><p><strong>name:</strong> The name of the menu item.</p>\n</li>\n<li><p><strong>price:</strong> The price of the menu item.</p>\n</li>\n<li><p><strong>description:</strong> A brief description or summary of the menu item.</p>\n</li>\n<li><p><strong>isVeg:</strong> A boolean value indicating whether the menu item is vegetarian (true) or non-vegetarian (false).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>averageRating:</strong> This field represents the average rating of the restaurant. This is an average of all the users ratings.</p>\n</li>\n<li><p><strong>reviews:</strong> The Reviews field has an array of objects of reviews for the restaurants by the users, the objects have following attributes:</p>\n<ul>\n<li><p><strong>user:</strong> An Object of user Information with following attributes:</p>\n<ul>\n<li><p><strong>username:</strong> The username of the user.</p>\n</li>\n<li><p><strong>profilePicUrl:</strong> The url of user's profile picture.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>comment:</strong> The review comment from the user.</p>\n</li>\n<li><p><strong>rating:</strong> The rating from the user.</p>\n</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24459577","collectionId":"10dcae39-545c-4c71-9474-5906bc25904e","publishedId":"2s9YCARAgp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-09-20T20:03:28.000Z"},"item":[{"name":"Read All Restaurants","id":"b7579d0f-ab2a-4eea-bee8-5339cb1c6bdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants","description":"<p><strong>Title:</strong> Get all restaurants.</p>\n<p><strong>Description:</strong></p>\n<p>This endpoint allows you to fetch details for all restaurants that are stored in the database.</p>\n<p><strong>Parameters:</strong> none</p>\n<p><strong>Returns:</strong></p>\n<p>An array of all the restaurants present in the database.</p>\n","urlObject":{"protocol":"https","path":["restaurants"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"3f3212dd-6fbe-4439-b13b-7444a0f3d73b","name":"Success Request","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"4251"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 20:16:45 GMT"},{"key":"Etag","value":"W/\"109b-Q/bBt1xh8tT+7fo3ml2ASh2dg9o\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7562982; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Retrieved Restaurants data\",\n    \"data\": [\n        {\n            \"_id\": \"650b25b4b5a57d0f1419df02\",\n            \"name\": \"Lunch-Home\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"1234 Main St\",\n            \"city\": \"Tokyo\",\n            \"rating\": 4.5,\n            \"averageRating\": 0,\n            \"menu\": [\n                {\n                    \"name\": \"Pizza\",\n                    \"price\": 12.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df03\"\n                },\n                {\n                    \"name\": \"Pasta\",\n                    \"price\": 15.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df04\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 2\n        },\n        {\n            \"_id\": \"650b46fc745f461723f2e1cc\",\n            \"name\": \"Ristorante Italiano\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"123 Pasta Lane\",\n            \"city\": \"Pizza Town\",\n            \"rating\": 4.7,\n            \"averageRating\": 4.5,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f52e\",\n                    \"comment\": \"Authentic Italian cuisine!\",\n                    \"rating\": 4.8,\n                    \"_id\": \"650b46fc745f461723f2e1cd\"\n                },\n                {\n                    \"user\": \"650b43935246a3fac187f52c\",\n                    \"comment\": \"I love their pizza!\",\n                    \"rating\": 4.5,\n                    \"_id\": \"650b46fc745f461723f2e1ce\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Margherita Pizza\",\n                    \"price\": 12.99,\n                    \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fc745f461723f2e1cf\"\n                },\n                {\n                    \"name\": \"Fettuccine Alfredo\",\n                    \"price\": 14.99,\n                    \"description\": \"Creamy pasta with parmesan cheese\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fc745f461723f2e1d0\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n            \"updatedAt\": \"2023-09-20T19:24:44.901Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1d8\",\n            \"name\": \"Sushi Haven\",\n            \"cuisine\": \"Japanese\",\n            \"address\": \"456 Sushi Street\",\n            \"city\": \"Tokyo\",\n            \"rating\": 4.4,\n            \"averageRating\": 4.2,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f528\",\n                    \"comment\": \"Amazing sushi rolls!\",\n                    \"rating\": 4.6,\n                    \"_id\": \"650b46fd745f461723f2e1d9\"\n                },\n                {\n                    \"user\": \"65074857993193d8b769c94a\",\n                    \"comment\": \"Fresh and delicious!\",\n                    \"rating\": 4.3,\n                    \"_id\": \"650b46fd745f461723f2e1da\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Rainbow Roll\",\n                    \"price\": 18.99,\n                    \"description\": \"Assorted fish on a sushi roll\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1db\"\n                },\n                {\n                    \"name\": \"Vegetable Tempura\",\n                    \"price\": 10.99,\n                    \"description\": \"Crispy fried vegetables\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1dc\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.379Z\",\n            \"updatedAt\": \"2023-09-20T19:24:45.379Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1df\",\n            \"name\": \"Tex-Mex Grill\",\n            \"cuisine\": \"Mexican\",\n            \"address\": \"789 Nacho Boulevard\",\n            \"city\": \"Taco City\",\n            \"rating\": 4.2,\n            \"averageRating\": 4,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f528\",\n                    \"comment\": \"Spicy and flavorful!\",\n                    \"rating\": 4.4,\n                    \"_id\": \"650b46fd745f461723f2e1e0\"\n                },\n                {\n                    \"user\": \"650b43925246a3fac187f523\",\n                    \"comment\": \"Tacos are a must-try!\",\n                    \"rating\": 4,\n                    \"_id\": \"650b46fd745f461723f2e1e1\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Burrito Supreme\",\n                    \"price\": 9.99,\n                    \"description\": \"Large stuffed burrito with beef and beans\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1e2\"\n                },\n                {\n                    \"name\": \"Guacamole\",\n                    \"price\": 5.99,\n                    \"description\": \"Freshly made guacamole\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1e3\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.402Z\",\n            \"updatedAt\": \"2023-09-20T19:24:45.402Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1e5\",\n            \"name\": \"Burger Junction\",\n            \"cuisine\": \"American\",\n            \"address\": \"101 Burger Road\",\n            \"city\": \"Burger Town\",\n            \"rating\": 4.6,\n            \"averageRating\": 4.4,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43925246a3fac187f523\",\n                    \"comment\": \"Best burgers in town!\",\n                    \"rating\": 4.7,\n                    \"_id\": \"650b46fd745f461723f2e1e6\"\n                },\n                {\n                    \"user\": \"65074857993193d8b769c94a\",\n                    \"comment\": \"Juicy and delicious!\",\n                    \"rating\": 4.5,\n                    \"_id\": \"650b46fd745f461723f2e1e7\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Classic Cheeseburger\",\n                    \"price\": 8.99,\n                    \"description\": \"Beef patty with cheese and toppings\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1e8\"\n                },\n                {\n                    \"name\": \"Veggie Burger\",\n                    \"price\": 7.99,\n                    \"description\": \"Plant-based burger with veggies\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1e9\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.423Z\",\n            \"updatedAt\": \"2023-09-20T19:24:45.423Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1eb\",\n            \"name\": \"Mediterranean Delight\",\n            \"cuisine\": \"Mediterranean\",\n            \"address\": \"222 Olive Street\",\n            \"city\": \"Mediterra\",\n            \"rating\": 4.3,\n            \"averageRating\": 4.1,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f528\",\n                    \"comment\": \"Delicious hummus and falafel!\",\n                    \"rating\": 4.4,\n                    \"_id\": \"650b46fd745f461723f2e1ec\"\n                },\n                {\n                    \"user\": \"650b43925246a3fac187f523\",\n                    \"comment\": \"Authentic Mediterranean flavors!\",\n                    \"rating\": 4,\n                    \"_id\": \"650b46fd745f461723f2e1ed\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Hummus Platter\",\n                    \"price\": 10.99,\n                    \"description\": \"Creamy hummus with pita bread\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1ee\"\n                },\n                {\n                    \"name\": \"Shawarma Wrap\",\n                    \"price\": 12.99,\n                    \"description\": \"Grilled meat or veggies in a wrap\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1ef\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.445Z\",\n            \"updatedAt\": \"2023-09-20T19:24:45.445Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"b7579d0f-ab2a-4eea-bee8-5339cb1c6bdc"},{"name":"Add Restaurant","id":"9140becb-d38c-405c-99dd-e0be525de9c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Restaurant\",\r\n  \"cuisine\": \"Italian\",\r\n  \"address\": \"123 Main St\",\r\n  \"city\": \"New York\",\r\n  \"rating\": 4.5,\r\n  \"menu\": [\r\n    { \"name\": \"Pizza Margherita\", \"price\": 12.99 },\r\n    { \"name\": \"Pasta Carbonara\", \"price\": 15.99 }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants","description":"<p><strong>Title:</strong> Create a Restaurant</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to create a new restaurant in the database. By providing essential restaurant information, such as the name, cuisine type, address, city, and menu items, you can add a new dining establishment to your application's database.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>Body:</strong> JSON as in the format below.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon successful creation, this API returns a JSON object representing the restaurant that was added to the database. The response includes details such as the restaurant's unique identifier, name, cuisine type, address, city, rating, menu items, and more.</p>\n","urlObject":{"protocol":"https","path":["restaurants"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"2712397e-a2a9-4272-a7b8-fea575b6d199","name":"Success Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Restaurant\",\r\n  \"cuisine\": \"Italian\",\r\n  \"address\": \"123 Main St\",\r\n  \"city\": \"New York\",\r\n  \"rating\": 4.5,\r\n  \"menu\": [\r\n    { \"name\": \"Pizza Margherita\", \"price\": 12.99 },\r\n    { \"name\": \"Pasta Carbonara\", \"price\": 15.99 }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"450"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:23:23 GMT"},{"key":"Etag","value":"W/\"1c2-21kNH/rSv9jzz4zOTkA/JGLw9Ug\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7558984; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"New Restaurant Added\",\n    \"data\": {\n        \"name\": \"New Restaurant\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"averageRating\": 0,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"650b62cb89bd46ed890f5a05\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"650b62cb89bd46ed890f5a06\"\n            }\n        ],\n        \"_id\": \"650b62cb89bd46ed890f5a04\",\n        \"reviews\": [],\n        \"createdAt\": \"2023-09-20T21:23:23.650Z\",\n        \"updatedAt\": \"2023-09-20T21:23:23.650Z\",\n        \"__v\": 0\n    }\n}"},{"id":"73a91a85-047e-49f6-bcae-c63b5dd9930f","name":"Failure Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Restaurant\",\r\n  \"cuisine\": \"Italian\",\r\n  \"address\": \"123 Main St\",\r\n  \"city\": \"New York\",\r\n  \"rating\": 4.5,\r\n  \"menu\": [\r\n    { \"name\": \"Pizza Margherita\", \"price\": 12.99 },\r\n    { \"name\": \"Pasta Carbonara\", \"price\": 15.99 }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"70"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:25:31 GMT"},{"key":"Etag","value":"W/\"46-bh4ow8Qc83VklftwqT9oh4OZftM\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7558856; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"couldn't add restaurant, try again with correct details.\"\n}"}],"_postman_id":"9140becb-d38c-405c-99dd-e0be525de9c4"},{"name":"Read a Restaurant by Name","id":"c4365f91-2c4b-4436-8e48-fa9ed1912c2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/Ristorante%20Italiano","description":"<p><strong>Title:</strong> Read a Restaurant by Name</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to retrieve restaurant details by providing its name. You can access specific restaurant information, such as the cuisine type, address, city, rating, menu items, and more, by specifying the name of the restaurant.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>name</strong> - A string representing the name of the restaurant you want to retrieve. As per below example URL.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful request, this API returns a JSON object containing the details of the restaurant matching the provided name. The response includes information such as the restaurant's unique identifier, name, cuisine type, address, city, rating, menu items, and more.</p>\n","urlObject":{"protocol":"https","path":["restaurants","Ristorante%20Italiano"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"617c5d9e-83e2-40a7-8fea-f97dbcd52a96","name":"Success Example","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/Ristorante%20Italian"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"859"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:35:05 GMT"},{"key":"Etag","value":"W/\"35b-tYD1d37I354d5X+EnVpePh5/mVs\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7558282; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Retrieved Restaurant data\",\n    \"data\": {\n        \"_id\": \"650b46fc745f461723f2e1cc\",\n        \"name\": \"Ristorante Italiano\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Pasta Lane\",\n        \"city\": \"Pizza Town\",\n        \"rating\": 4.7,\n        \"averageRating\": 4.5,\n        \"reviews\": [\n            {\n                \"user\": \"650b43935246a3fac187f52e\",\n                \"comment\": \"Authentic Italian cuisine!\",\n                \"rating\": 4.8,\n                \"_id\": \"650b46fc745f461723f2e1cd\"\n            },\n            {\n                \"user\": \"650b43935246a3fac187f52c\",\n                \"comment\": \"I love their pizza!\",\n                \"rating\": 4.5,\n                \"_id\": \"650b46fc745f461723f2e1ce\"\n            }\n        ],\n        \"menu\": [\n            {\n                \"name\": \"Margherita Pizza\",\n                \"price\": 12.99,\n                \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                \"isVeg\": true,\n                \"_id\": \"650b46fc745f461723f2e1cf\"\n            },\n            {\n                \"name\": \"Fettuccine Alfredo\",\n                \"price\": 14.99,\n                \"description\": \"Creamy pasta with parmesan cheese\",\n                \"isVeg\": false,\n                \"_id\": \"650b46fc745f461723f2e1d0\"\n            }\n        ],\n        \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n        \"updatedAt\": \"2023-09-20T19:24:44.901Z\",\n        \"__v\": 0\n    }\n}"},{"id":"2b5b7698-1058-48d2-897b-4f5b35d4f281","name":"Failure Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/Ristorante%20Italian"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"35"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:37:31 GMT"},{"key":"Etag","value":"W/\"23-x9Kfw8TlFVwErCoknB0fBCCUfM0\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7558136; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurant not found.\"\n}"}],"_postman_id":"c4365f91-2c4b-4436-8e48-fa9ed1912c2d"},{"name":"Read Restaurants by Cuisine","id":"b9a82bcc-6299-4b85-b8a1-753575213249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/cuisine/Italian","description":"<p><strong>Title:</strong> Get Restaurants by Cuisine Type</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint enables you to retrieve a list of restaurants that match a specific cuisine type. By specifying the desired cuisine, you can access a collection of restaurants offering that particular culinary experience.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>cuisine</strong> - A string representing the cuisine type you want to filter by.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful request, this API returns a JSON array containing a list of restaurants that share the specified cuisine type. Each restaurant object within the array includes details such as the unique identifier, name, address, city, rating, menu items, and more.</p>\n","urlObject":{"protocol":"https","path":["restaurants","cuisine","Italian"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"ab892f57-79c8-41eb-a897-97f49ed282fc","name":"Success Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/cuisine/Italian"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1305"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 24 Sep 2023 15:30:56 GMT"},{"key":"Etag","value":"W/\"519-oxU5GnJSvjpJk4G/8VoOajOterQ\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7234531; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Retrieved Restaurants data having cuisine Italian\",\n    \"data\": [\n        {\n            \"_id\": \"650b25b4b5a57d0f1419df02\",\n            \"name\": \"Lunch-Home\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"1234 Main St\",\n            \"city\": \"Tokyo\",\n            \"rating\": 4.5,\n            \"averageRating\": 0,\n            \"menu\": [\n                {\n                    \"name\": \"Pizza\",\n                    \"price\": 12.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df03\"\n                },\n                {\n                    \"name\": \"Pasta\",\n                    \"price\": 15.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df04\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 2,\n            \"updatedAt\": \"2023-09-24T14:53:39.389Z\"\n        },\n        {\n            \"_id\": \"650b46fc745f461723f2e1cc\",\n            \"name\": \"Ristorante Italiano\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"123 Pasta Lane\",\n            \"city\": \"Pizza Town\",\n            \"rating\": 4.7,\n            \"averageRating\": 4.4,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f52e\",\n                    \"comment\": \"Authentic Italian cuisine!\",\n                    \"rating\": 4.8,\n                    \"_id\": \"650b46fc745f461723f2e1cd\"\n                },\n                {\n                    \"user\": \"650b43935246a3fac187f52c\",\n                    \"comment\": \"I love their pizza!\",\n                    \"rating\": 4.5,\n                    \"_id\": \"650b46fc745f461723f2e1ce\"\n                },\n                {\n                    \"user\": \"650b43925246a3fac187f523\",\n                    \"comment\": \"Authentic flavors!\",\n                    \"rating\": 4,\n                    \"_id\": \"650b773365d7e440e900e648\"\n                },\n                {\n                    \"user\": \"650b43935246a3fac187f52c\",\n                    \"comment\": \"New Comment!\",\n                    \"rating\": 4.3,\n                    \"_id\": \"650b775865d7e440e900e64f\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Margherita Pizza\",\n                    \"price\": 12.99,\n                    \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fc745f461723f2e1cf\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n            \"updatedAt\": \"2023-09-24T14:55:23.039Z\",\n            \"__v\": 5\n        }\n    ]\n}"},{"id":"6abe2932-4e19-4def-84fa-3df8d53625e1","name":"Error Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/cuisine/Indian"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"50"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:43:49 GMT"},{"key":"Etag","value":"W/\"32-g8bS66VChOhtr6Clm098WNnSF5s\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7557758; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Indian cuisine restaurant not found.\"\n}"}],"_postman_id":"b9a82bcc-6299-4b85-b8a1-753575213249"},{"name":"Update Restaurant","id":"8309a44c-3d06-40b6-b0fa-9270580b7814","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/6510506db2252b340c1f8b98","description":"<p><strong>Title:</strong> Update Restaurant Details by ID</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to update restaurant information by specifying its unique identifier (ID). You can modify various details of the restaurant, such as its name, cuisine type, address, city, rating, and menu items, to keep the restaurant's information accurate and up to date.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>id</strong> - A string representing the unique identifier (ID) of the restaurant you want to update.</p>\n<p><strong>body</strong> - A JSON object containing the updated restaurant data. The JSON object should include fields such as the new name, cuisine type, address, city, rating, and menu items.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful request, this API returns a JSON object representing the updated restaurant details, confirming that the changes have been applied.</p>\n","urlObject":{"protocol":"https","path":["restaurants","6510506db2252b340c1f8b98"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"24fe865b-dbe8-4b9e-96a5-1c376c0939f8","name":"Success Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/6510506db2252b340c1f8b98"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"470"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 24 Sep 2023 15:07:12 GMT"},{"key":"Etag","value":"W/\"1d6-DFeMYefVcrEXxXXOet20OZBeksg\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7235955; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Updated Restaurant\",\n    \"data\": {\n        \"_id\": \"6510506db2252b340c1f8b98\",\n        \"name\": \"Updated Restaurant Name\",\n        \"cuisine\": \"Mexican\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"averageRating\": 0,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"6510506db2252b340c1f8b99\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"6510506db2252b340c1f8b9a\"\n            }\n        ],\n        \"reviews\": [],\n        \"createdAt\": \"2023-09-24T15:06:21.194Z\",\n        \"updatedAt\": \"2023-09-24T15:07:12.332Z\",\n        \"__v\": 0\n    }\n}"},{"id":"9494200d-a2b9-4991-9584-741b71cd2904","name":"Error Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b62cb89bd46ed890f5a0"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"54"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:52:34 GMT"},{"key":"Etag","value":"W/\"36-K+a3qZT1JZYIuuL1fRErnyk0VZ4\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7557234; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error: No Restaurant found with this id.\"\n}"}],"_postman_id":"8309a44c-3d06-40b6-b0fa-9270580b7814"},{"name":"Delete Restaurant","id":"b1d30491-ed63-42d1-a358-f3e5c1b227d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/6510506db2252b340c1f8b98","description":"<p><strong>Title:</strong> Delete Restaurant by ID</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint enables you to delete a restaurant from the database by providing its unique identifier (ID). Deleting a restaurant permanently removes it from the system, including all associated information such as menu items and user reviews.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>id</strong> - A string representing the unique identifier (ID) of the restaurant you want to delete.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful deletion, this API returns a success message confirming that the restaurant has been deleted from the database.</p>\n","urlObject":{"protocol":"https","path":["restaurants","6510506db2252b340c1f8b98"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"b998e290-cb22-43f3-9e15-d4e22aa88347","name":"Success Example","originalRequest":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/6510506db2252b340c1f8b98"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"470"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 24 Sep 2023 15:07:55 GMT"},{"key":"Etag","value":"W/\"1d6-rKfK6OkMY/EAN3gx+VaJ+Ij2g38\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7235913; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Deleted Restaurant\",\n    \"data\": {\n        \"_id\": \"6510506db2252b340c1f8b98\",\n        \"name\": \"Updated Restaurant Name\",\n        \"cuisine\": \"Mexican\",\n        \"address\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"rating\": 4.5,\n        \"averageRating\": 0,\n        \"menu\": [\n            {\n                \"name\": \"Pizza Margherita\",\n                \"price\": 12.99,\n                \"_id\": \"6510506db2252b340c1f8b99\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"6510506db2252b340c1f8b9a\"\n            }\n        ],\n        \"reviews\": [],\n        \"createdAt\": \"2023-09-24T15:06:21.194Z\",\n        \"updatedAt\": \"2023-09-24T15:07:12.332Z\",\n        \"__v\": 0\n    }\n}"},{"id":"ad056b9b-db25-4e9a-845d-f7d73de32c0e","name":"Error Example","originalRequest":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b62cb89bd46ed890f5a04"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"62"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 21:57:44 GMT"},{"key":"Etag","value":"W/\"3e-bgIBa9QLbOc5bpPtKFkiJTVB47c\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7556923; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Deleting Restaurant: Restaurant Not Found.\"\n}"}],"_postman_id":"b1d30491-ed63-42d1-a358-f3e5c1b227d0"},{"name":"Search Restaurants by Location","id":"1934d59f-990b-4f4f-a5af-b7a80a555d9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/search?location=Tokyo","description":"<p><strong>Title:</strong> Search Restaurants by Location</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to search for restaurants based on their location, which can be specified as a city or an address. It helps users find restaurants in a particular area or near a specific location, making it convenient for those looking for dining options in a specific vicinity.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>location</strong> - A string that can be either a city name or an address. This parameter determines the location for which you want to search restaurants.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful request, this API returns a JSON array containing a list of restaurants that match the specified location. Each restaurant object in the array includes details such as name, cuisine type, address, city, rating, and menu items.</p>\n","urlObject":{"protocol":"https","path":["restaurants","search"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[{"key":"location","value":"Tokyo"}],"variable":[]}},"response":[{"id":"a3f66e38-23e3-4037-a816-7e6737849040","name":"Success Example","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://assignment11foodquick.aasimd.repl.co/restaurants/search?location=Tokyo","protocol":"https","host":["assignment11foodquick","aasimd","repl","co"],"path":["restaurants","search"],"query":[{"key":"location","value":"Tokyo"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1168"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sun, 24 Sep 2023 15:16:32 GMT"},{"key":"Etag","value":"W/\"490-lyrPw5dOrHml1e5t2ag+kR3dOlU\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7235395; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Retrieved Restaurant in Tokyo location\",\n    \"data\": [\n        {\n            \"_id\": \"650b25b4b5a57d0f1419df02\",\n            \"name\": \"Lunch-Home\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"1234 Main St\",\n            \"city\": \"Tokyo\",\n            \"rating\": 4.5,\n            \"averageRating\": 0,\n            \"menu\": [\n                {\n                    \"name\": \"Pizza\",\n                    \"price\": 12.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df03\"\n                },\n                {\n                    \"name\": \"Pasta\",\n                    \"price\": 15.99,\n                    \"_id\": \"650b25b4b5a57d0f1419df04\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 2,\n            \"updatedAt\": \"2023-09-24T14:53:39.389Z\"\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1d8\",\n            \"name\": \"Sushi Haven\",\n            \"cuisine\": \"Japanese\",\n            \"address\": \"456 Sushi Street\",\n            \"city\": \"Tokyo\",\n            \"rating\": 4.4,\n            \"averageRating\": 4.4,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f528\",\n                    \"comment\": \"Amazing sushi rolls!\",\n                    \"rating\": 4.6,\n                    \"_id\": \"650b46fd745f461723f2e1d9\"\n                },\n                {\n                    \"user\": \"65074857993193d8b769c94a\",\n                    \"comment\": \"Fresh and delicious!\",\n                    \"rating\": 4.3,\n                    \"_id\": \"650b46fd745f461723f2e1da\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Rainbow Roll\",\n                    \"price\": 18.99,\n                    \"description\": \"Assorted fish on a sushi roll\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1db\"\n                },\n                {\n                    \"name\": \"Vegetable Tempura\",\n                    \"price\": 10.99,\n                    \"description\": \"Crispy fried vegetables\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1dc\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.379Z\",\n            \"updatedAt\": \"2023-09-24T14:57:49.669Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"dacc348f-a9ea-4fbe-b071-c4af5823c25e","name":"Error Request","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://assignment11foodquick.aasimd.repl.co/restaurants/search?location=Mumbai","protocol":"https","host":["assignment11foodquick","aasimd","repl","co"],"path":["restaurants","search"],"query":[{"key":"location","value":"Mumbai"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"46"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:14:51 GMT"},{"key":"Etag","value":"W/\"2e-uJ6FpUFmObRWFeGdJawo1iiqTjs\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7555896; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurants Not Found in Mumbai.\"\n}"}],"_postman_id":"1934d59f-990b-4f4f-a5af-b7a80a555d9c"},{"name":"Filter Restaurants by Rating","id":"6d5cfda3-0c59-4dd1-9b8a-d92fd0dc76ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/rating/4.6","description":"<p><strong>Title:</strong> Filter Restaurants by Rating</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint enables you to filter and retrieve restaurants based on their ratings. You can specify a minimum rating value, and the API will return a list of restaurants with ratings greater than or equal to the specified value. This feature assists users in finding highly-rated restaurants that match their preferences.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>minRating</strong> - A numeric value representing the minimum rating that restaurants should have to be included in the results. Ratings are on a scale of 0 to 5, where 0 is the lowest and 5 is the highest.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon a successful request, this API returns a JSON array containing a list of restaurants that meet the specified rating criteria. Each restaurant object in the array includes details such as name, cuisine type, address, city, rating, and menu items.</p>\n","urlObject":{"protocol":"https","path":["restaurants","rating","4.6"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"9a98668c-2be5-48df-ab9c-62391435ae01","name":"Success Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/rating/4.6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1657"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:20:42 GMT"},{"key":"Etag","value":"W/\"679-Vl2Glo85vpRo+L3IVO4Z5MrZQJE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7555545; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully Retrieved Restaurant with minimum rating 4.6\",\n    \"data\": [\n        {\n            \"_id\": \"650b46fc745f461723f2e1cc\",\n            \"name\": \"Ristorante Italiano\",\n            \"cuisine\": \"Italian\",\n            \"address\": \"123 Pasta Lane\",\n            \"city\": \"Pizza Town\",\n            \"rating\": 4.7,\n            \"averageRating\": 4.5,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43935246a3fac187f52e\",\n                    \"comment\": \"Authentic Italian cuisine!\",\n                    \"rating\": 4.8,\n                    \"_id\": \"650b46fc745f461723f2e1cd\"\n                },\n                {\n                    \"user\": \"650b43935246a3fac187f52c\",\n                    \"comment\": \"I love their pizza!\",\n                    \"rating\": 4.5,\n                    \"_id\": \"650b46fc745f461723f2e1ce\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Margherita Pizza\",\n                    \"price\": 12.99,\n                    \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fc745f461723f2e1cf\"\n                },\n                {\n                    \"name\": \"Fettuccine Alfredo\",\n                    \"price\": 14.99,\n                    \"description\": \"Creamy pasta with parmesan cheese\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fc745f461723f2e1d0\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n            \"updatedAt\": \"2023-09-20T19:24:44.901Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"650b46fd745f461723f2e1e5\",\n            \"name\": \"Burger Junction\",\n            \"cuisine\": \"American\",\n            \"address\": \"101 Burger Road\",\n            \"city\": \"Burger Town\",\n            \"rating\": 4.6,\n            \"averageRating\": 4.4,\n            \"reviews\": [\n                {\n                    \"user\": \"650b43925246a3fac187f523\",\n                    \"comment\": \"Best burgers in town!\",\n                    \"rating\": 4.7,\n                    \"_id\": \"650b46fd745f461723f2e1e6\"\n                },\n                {\n                    \"user\": \"65074857993193d8b769c94a\",\n                    \"comment\": \"Juicy and delicious!\",\n                    \"rating\": 4.5,\n                    \"_id\": \"650b46fd745f461723f2e1e7\"\n                }\n            ],\n            \"menu\": [\n                {\n                    \"name\": \"Classic Cheeseburger\",\n                    \"price\": 8.99,\n                    \"description\": \"Beef patty with cheese and toppings\",\n                    \"isVeg\": false,\n                    \"_id\": \"650b46fd745f461723f2e1e8\"\n                },\n                {\n                    \"name\": \"Veggie Burger\",\n                    \"price\": 7.99,\n                    \"description\": \"Plant-based burger with veggies\",\n                    \"isVeg\": true,\n                    \"_id\": \"650b46fd745f461723f2e1e9\"\n                }\n            ],\n            \"createdAt\": \"2023-09-20T19:24:45.423Z\",\n            \"updatedAt\": \"2023-09-20T19:24:45.423Z\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"11dc336f-31fb-4009-ad19-14d26a754c76","name":"Error Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/rating/one"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"41"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:21:44 GMT"},{"key":"Etag","value":"W/\"29-xhYx0YeTeOt2Oz0iPV9RpPeFNHM\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7555483; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Filtering Restaurant.\"\n}"}],"_postman_id":"6d5cfda3-0c59-4dd1-9b8a-d92fd0dc76ef"},{"name":"Add a Dish to a Restaurant's Menu","id":"65d22d19-62db-4299-8c30-4ed2858a500e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Dish\",\r\n  \"price\": 9.99\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/menu","description":"<p><strong>Title:</strong> Add a Dish to Restaurant Menu</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to add a new dish to a restaurant's menu. Restaurants frequently update their menus to include new and exciting offerings, and this feature makes it simple to expand their menu with ease. By providing details such as the dish name, price, description, and whether it's vegetarian or non-vegetarian (veg or non-veg), restaurant owners can keep their menus fresh and appealing to customers.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>restaurantId</strong> - The unique identifier of the restaurant to which the dish should be added.</p>\n<p><strong>body</strong> - A JSON object containing the details of the new dish to be added to the menu. The object should include the following properties:</p>\n<ul>\n<li><p><strong>name</strong> (String): The name of the new dish.</p>\n</li>\n<li><p><strong>price</strong> (Number): The price of the new dish.</p>\n</li>\n<li><p><strong>description</strong> (String): A brief description of the new dish.</p>\n</li>\n<li><p><strong>isVeg</strong> (Boolean): Indicates whether the dish is vegetarian (true) or non-vegetarian (false).</p>\n</li>\n</ul>\n<p><strong>Returns:</strong></p>\n<p>Upon successful execution, this API responds with a JSON object confirming that the dish has been added to the restaurant's menu, along with the details of the newly added dish.</p>\n","urlObject":{"protocol":"https","path":["restaurants","650b46fc745f461723f2e1cc","menu"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"c7b9d520-8d89-4a2e-95b9-dfb199223be4","name":"Success Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Dish\",\r\n  \"price\": 9.99\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/menu"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"910"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:32:31 GMT"},{"key":"Etag","value":"W/\"38e-j70DpDmCpLOy3QAMwc+3NQWyYKY\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7554836; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dish Added Successfully\",\n    \"data\": {\n        \"_id\": \"650b46fc745f461723f2e1cc\",\n        \"name\": \"Ristorante Italiano\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Pasta Lane\",\n        \"city\": \"Pizza Town\",\n        \"rating\": 4.7,\n        \"averageRating\": 4.5,\n        \"reviews\": [\n            {\n                \"user\": \"650b43935246a3fac187f52e\",\n                \"comment\": \"Authentic Italian cuisine!\",\n                \"rating\": 4.8,\n                \"_id\": \"650b46fc745f461723f2e1cd\"\n            },\n            {\n                \"user\": \"650b43935246a3fac187f52c\",\n                \"comment\": \"I love their pizza!\",\n                \"rating\": 4.5,\n                \"_id\": \"650b46fc745f461723f2e1ce\"\n            }\n        ],\n        \"menu\": [\n            {\n                \"name\": \"Margherita Pizza\",\n                \"price\": 12.99,\n                \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                \"isVeg\": true,\n                \"_id\": \"650b46fc745f461723f2e1cf\"\n            },\n            {\n                \"name\": \"Fettuccine Alfredo\",\n                \"price\": 14.99,\n                \"description\": \"Creamy pasta with parmesan cheese\",\n                \"isVeg\": false,\n                \"_id\": \"650b46fc745f461723f2e1d0\"\n            },\n            {\n                \"name\": \"New Dish\",\n                \"price\": 9.99,\n                \"_id\": \"650b72fff67b60b1b8b225c6\"\n            }\n        ],\n        \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n        \"updatedAt\": \"2023-09-20T22:32:31.856Z\",\n        \"__v\": 1\n    }\n}"},{"id":"b0bcef04-18ff-44c6-8e03-c64bd178cd06","name":"Error Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"New Dish 2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/menu"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"68"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:34:21 GMT"},{"key":"Etag","value":"W/\"44-ov9ZdZVRv5hnsY6vnUFIk8dx49I\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7554726; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Adding new dish, try again with correct details.\"\n}"}],"_postman_id":"65d22d19-62db-4299-8c30-4ed2858a500e"},{"name":"Remove a Dish from a Restaurant's Menu","id":"1770a80b-5df5-4f12-8523-f147c8422449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/menu/New%20Dish","description":"<p><strong>Title:</strong> Remove a Dish from Restaurant Menu</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to remove a dish from a restaurant's menu. Restaurants often update their menus, and this feature helps them manage their offerings by allowing the removal of dishes that are no longer available or in demand. To use this API, you need to specify the unique identifier of the restaurant and the name of the dish to be removed.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>restaurantId</strong> - The unique identifier of the restaurant from which the dish should be removed.</p>\n<p><strong>dishName</strong> - The name of the dish to be removed from the restaurant's menu.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon successful execution, this API responds with a message confirming that the dish has been removed from the restaurant's menu.</p>\n","urlObject":{"protocol":"https","path":["restaurants","650b46fc745f461723f2e1cc","menu","New%20Dish"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"756a41dd-4d7a-4ab6-ad0d-baa3ca2f59a6","name":"Success Request","originalRequest":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/menu/Fettuccine%20Alfredo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"705"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:46:18 GMT"},{"key":"Etag","value":"W/\"2c1-VVN4Bz7E3HBkKraX5sg2a3CreFI\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7554009; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dish Removed Successfully\",\n    \"data\": {\n        \"_id\": \"650b46fc745f461723f2e1cc\",\n        \"name\": \"Ristorante Italiano\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Pasta Lane\",\n        \"city\": \"Pizza Town\",\n        \"rating\": 4.7,\n        \"averageRating\": 4.5,\n        \"reviews\": [\n            {\n                \"user\": \"650b43935246a3fac187f52e\",\n                \"comment\": \"Authentic Italian cuisine!\",\n                \"rating\": 4.8,\n                \"_id\": \"650b46fc745f461723f2e1cd\"\n            },\n            {\n                \"user\": \"650b43935246a3fac187f52c\",\n                \"comment\": \"I love their pizza!\",\n                \"rating\": 4.5,\n                \"_id\": \"650b46fc745f461723f2e1ce\"\n            }\n        ],\n        \"menu\": [\n            {\n                \"name\": \"Margherita Pizza\",\n                \"price\": 12.99,\n                \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                \"isVeg\": true,\n                \"_id\": \"650b46fc745f461723f2e1cf\"\n            }\n        ],\n        \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n        \"updatedAt\": \"2023-09-20T22:45:44.008Z\",\n        \"__v\": 3\n    }\n}"},{"id":"50ab2dd3-5ddb-42b1-bd8e-bbf8eaf8fa90","name":"Error Request","originalRequest":{"method":"DELETE","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1c/menu/pizza"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"68"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:44:46 GMT"},{"key":"Etag","value":"W/\"44-k3he0oubyDJeeuUHwORdfeXInYc\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7554103; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Removing dish, Restaurant Not found for given id\"\n}"}],"_postman_id":"1770a80b-5df5-4f12-8523-f147c8422449"},{"name":"Add Reviews and Ratings for a Restaurant","id":"348219f3-cb13-435a-bae3-d4f0deab4b72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": \"650b43935246a3fac187f52c\",\r\n    \"comment\": \"New Comment!\",\r\n    \"rating\": 4.3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/reviews","description":"<p><strong>Title:</strong> Add a Review and Rating for a Restaurant</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint enables users to contribute by adding their reviews and ratings for a restaurant. Restaurant reviews play a vital role in helping others make informed decisions about where to dine. Users can provide valuable insights by sharing their opinions on the restaurant's food, service, ambiance, and more. To use this feature, users need to specify the restaurant's unique identifier, their own user ID, the review text, and the numerical rating (usually on a scale of 1 to 5).</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>restaurantId</strong> - The unique identifier of the restaurant for which the review and rating should be added.</p>\n<p><strong>userId</strong> - The unique identifier of the user adding the review and rating.</p>\n<p><strong>body</strong> - A JSON object containing the details of the review and rating to be added. The object should include the following properties:</p>\n<ul>\n<li><p><strong>text</strong> (String): The text of the review, providing insights and opinions about the restaurant.</p>\n</li>\n<li><p><strong>rating</strong> (Number): A numerical rating assigned to the restaurant, typically on a scale of 1 to 5, with 1 being the lowest and 5 being the highest.</p>\n</li>\n</ul>\n<p><strong>Returns:</strong></p>\n<p>Upon successful execution, this API responds with a JSON object confirming that the review and rating have been added for the restaurant.</p>\n","urlObject":{"protocol":"https","path":["restaurants","650b46fc745f461723f2e1cc","reviews"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"75b8b0bb-e7fb-458a-b290-0b2b48a16f82","name":"Success Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": \"650b43935246a3fac187f52c\",\r\n    \"comment\": \"New Comment!\",\r\n    \"rating\": 4.3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"923"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:51:04 GMT"},{"key":"Etag","value":"W/\"39b-Hd5W8jzChHmQiKDkrKbIdE1q6FU\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7553723; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review Added Successfully\",\n    \"data\": {\n        \"_id\": \"650b46fc745f461723f2e1cc\",\n        \"name\": \"Ristorante Italiano\",\n        \"cuisine\": \"Italian\",\n        \"address\": \"123 Pasta Lane\",\n        \"city\": \"Pizza Town\",\n        \"rating\": 4.7,\n        \"averageRating\": 4.5,\n        \"reviews\": [\n            {\n                \"user\": \"650b43935246a3fac187f52e\",\n                \"comment\": \"Authentic Italian cuisine!\",\n                \"rating\": 4.8,\n                \"_id\": \"650b46fc745f461723f2e1cd\"\n            },\n            {\n                \"user\": \"650b43935246a3fac187f52c\",\n                \"comment\": \"I love their pizza!\",\n                \"rating\": 4.5,\n                \"_id\": \"650b46fc745f461723f2e1ce\"\n            },\n            {\n                \"user\": \"650b43925246a3fac187f523\",\n                \"comment\": \"Authentic flavors!\",\n                \"rating\": 4,\n                \"_id\": \"650b773365d7e440e900e648\"\n            },\n            {\n                \"user\": \"650b43935246a3fac187f52c\",\n                \"comment\": \"New Comment!\",\n                \"rating\": 4.3,\n                \"_id\": \"650b775865d7e440e900e64f\"\n            }\n        ],\n        \"menu\": [\n            {\n                \"name\": \"Margherita Pizza\",\n                \"price\": 12.99,\n                \"description\": \"Classic pizza with tomato, mozzarella, and basil\",\n                \"isVeg\": true,\n                \"_id\": \"650b46fc745f461723f2e1cf\"\n            }\n        ],\n        \"createdAt\": \"2023-09-20T19:24:44.901Z\",\n        \"updatedAt\": \"2023-09-20T22:51:04.309Z\",\n        \"__v\": 5\n    }\n}"},{"id":"f8feccd6-0f11-42ec-a139-8031eb51607a","name":"Error Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"user\": \"650b43935246a3fac187f52\",\r\n    \"comment\": \"New Comment!\",\r\n    \"rating\": 4.3\r\n}","options":{"raw":{"language":"json"}}},"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/reviews"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"70"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:53:18 GMT"},{"key":"Etag","value":"W/\"46-pz3ZE+jl4Xa4j8qk0NKk1QzggtY\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7553589; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Adding review. Try again with correct user details\"\n}"}],"_postman_id":"348219f3-cb13-435a-bae3-d4f0deab4b72"},{"name":"Retrieve User Reviews for a Specific Restaurant","id":"950bbf23-a10b-42d3-9eb0-dd6fab8591ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/reviews","description":"<p><strong>Title:</strong> Retrieve User Reviews for a Specific Restaurant</p>\n<p><strong>Description:</strong></p>\n<p>This API endpoint allows you to retrieve restaurant's reviews through restaurant id.</p>\n<p><strong>Parameters:</strong></p>\n<p><strong>restaurantId</strong> - The unique identifier of the restaurant for which the review and rating should be added.</p>\n<p><strong>Returns:</strong></p>\n<p>Upon successful execution, this API responds with a JSON object containing all the reviews and ratings for the restaurant.</p>\n","urlObject":{"protocol":"https","path":["restaurants","650b46fc745f461723f2e1cc","reviews"],"host":["assignment11foodquick","aasimd","repl","co"],"query":[],"variable":[]}},"response":[{"id":"ca6fff80-499a-4661-b156-3dfd1b3ba8cd","name":"Success Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1cc/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"660"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:54:59 GMT"},{"key":"Etag","value":"W/\"294-hf4PntiOkn4h1JLNv2Cl+gya4BI\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7553488; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Reviews for the Restaurant Retrieved Successfully\",\n    \"data\": [\n        {\n            \"user\": {\n                \"_id\": \"650b43935246a3fac187f52e\",\n                \"username\": \"sarah_johnson\"\n            },\n            \"comment\": \"Authentic Italian cuisine!\",\n            \"rating\": 4.8,\n            \"_id\": \"650b46fc745f461723f2e1cd\"\n        },\n        {\n            \"user\": {\n                \"_id\": \"650b43935246a3fac187f52c\",\n                \"username\": \"david_wilson\"\n            },\n            \"comment\": \"I love their pizza!\",\n            \"rating\": 4.5,\n            \"_id\": \"650b46fc745f461723f2e1ce\"\n        },\n        {\n            \"user\": {\n                \"_id\": \"650b43925246a3fac187f523\",\n                \"username\": \"jane_smith\"\n            },\n            \"comment\": \"Authentic flavors!\",\n            \"rating\": 4,\n            \"_id\": \"650b773365d7e440e900e648\"\n        },\n        {\n            \"user\": {\n                \"_id\": \"650b43935246a3fac187f52c\",\n                \"username\": \"david_wilson\"\n            },\n            \"comment\": \"New Comment!\",\n            \"rating\": 4.3,\n            \"_id\": \"650b775865d7e440e900e64f\"\n        }\n    ]\n}"},{"id":"63438f9c-be46-461a-99f0-ab21e1eede11","name":"Error Request","originalRequest":{"method":"GET","header":[],"url":"https://assignment11foodquick.aasimd.repl.co/restaurants/650b46fc745f461723f2e1c/reviews"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"61"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 20 Sep 2023 22:56:24 GMT"},{"key":"Etag","value":"W/\"3d-FQ4c71t0lJv35DxIrciVYYYEEYg\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Replit-Cluster","value":"asia-a"},{"key":"Strict-Transport-Security","value":"max-age=7553403; includeSubDomains"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Retrieving reviews, Restaurant Not Found.\"\n}"}],"_postman_id":"950bbf23-a10b-42d3-9eb0-dd6fab8591ca"}]}