{"info":{"_postman_id":"0951e6ff-2012-48d0-9610-0a3217f63646","name":"Zomato app API","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>Welcome to the Zomato App API, a robust and feature-rich RESTful web service that opens the door to a world of culinary exploration and management. Whether you're a developer looking to enhance your application with rich restaurant data or a food enthusiast seeking comprehensive information on dining establishments, our API powered by MongoDB and Express.js is your gateway to a treasure trove of culinary insights.</p>\n<h2 id=\"key-features\">Key Features</h2>\n<p><strong>MongoDB Database:</strong> The heart of our API is the MongoDB database, a flexible NoSQL solution that efficiently stores and organizes a diverse array of restaurant data. From cuisine varieties to location details, MongoDB's adaptability accommodates a wide spectrum of culinary information, ensuring a comprehensive database of restaurants.</p>\n<p><strong>Express.js Framework:</strong> Built on the solid foundation of Express.js for Node.js, our API offers high-performance, scalability, and reliability. Express.js simplifies HTTP request handling, streamlines routing, and guarantees rapid response times, ensuring a seamless experience for both developers and end-users.</p>\n<h2 id=\"explore-restaurant-data\">Explore Restaurant Data</h2>\n<p>Dive into the world of gastronomy with the Restaurant API:</p>\n<ul>\n<li><p>Effortlessly access a curated list of all available restaurants, making it a breeze to discover new dining experiences.</p>\n</li>\n<li><p>Embark on a culinary journey by delving deep into the details of a specific restaurant. Our unique identifier search provides comprehensive insights.</p>\n</li>\n<li><p>Seamlessly contribute to our ever-expanding collection by adding new restaurant records, ensuring the database remains up-to-date.</p>\n</li>\n<li><p>Maintain the accuracy and relevance of restaurant information by updating existing records with the latest details.</p>\n</li>\n<li><p>Streamline data management by gracefully removing restaurants from the collection when they are no longer needed.</p>\n</li>\n</ul>\n<h2 id=\"reviews-feature\">Reviews Feature</h2>\n<p>Elevate your restaurant exploration with the Reviews feature:</p>\n<ul>\n<li><p><strong>User Reviews:</strong> Allow users to add reviews and ratings for their dining experiences at specific restaurants, enhancing the dining decision-making process.</p>\n</li>\n<li><p><strong>Retrieve User Reviews:</strong> Access a wealth of user-generated content by retrieving reviews for a specific restaurant. Gain insights into the dining experiences of fellow patrons.</p>\n</li>\n</ul>\n<h2 id=\"secure-and-customizable\">Secure and Customizable</h2>\n<p>Tailor the API to meet your application's unique requirements. Enjoy peace of mind with customizable authentication and authorization mechanisms, ensuring data security:</p>\n<ul>\n<li><p>Implement user authentication and authorization tokens for specific endpoints, safeguarding your restaurant data.</p>\n</li>\n<li><p>Leverage role-based access control to fine-tune access permissions based on user roles, enhancing control over data accessibility.</p>\n</li>\n</ul>\n<h2 id=\"error-handling-and-documentation\">Error Handling and Documentation</h2>\n<p>We prioritize your development experience. Our API incorporates robust error handling, offering clear and informative error messages alongside appropriate HTTP status codes. This thoughtful design ensures that you can troubleshoot and resolve issues swiftly. For comprehensive guidance on API interaction, including request/response formats and practical usage examples, refer to our detailed API documentation.</p>\n<h2 id=\"begin-your-culinary-journey\">Begin Your Culinary Journey</h2>\n<p>Embark on your culinary journey with the Zomato App API. Explore, create, update, and manage restaurant data effortlessly, empowering your applications with rich and dynamic culinary-related content. Whether you're building the next food discovery app or enhancing your restaurant management system, our API is your trusted partner in the world of gastronomy.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21538013","collectionId":"0951e6ff-2012-48d0-9610-0a3217f63646","publishedId":"2s9YC5xC1o","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-09-15T05:00:53.000Z"},"item":[{"name":"Restaurants Management","item":[{"name":"Creating a Restaurant API","id":"f88ff981-014c-43b7-a52a-056d8b47a534","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://zomato-app.omkarpatil20.repl.co/restaurants/v1/","description":"<p>This api is used for creating a Restaurant object in db</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",""],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[]}},"response":[{"id":"b623a637-a2f3-4754-b796-ff80616a4181","name":"Creating a Restaurant API","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://zomato-app.omkarpatil20.repl.co/restaurants/v1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"362"},{"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":"Thu, 14 Sep 2023 09:43:02 GMT"},{"key":"Etag","value":"W/\"16a-cHEJs/FIC1Gyw1n7SeupKYiMdA4\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7153710; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"New Restaurant created\",\n    \"restaurant\": {\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\": \"6502d5a675be023917d47b56\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"6502d5a675be023917d47b57\"\n            }\n        ],\n        \"_id\": \"6502d5a675be023917d47b55\",\n        \"reviews\": [],\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f88ff981-014c-43b7-a52a-056d8b47a534"},{"name":"Reading a Restaurant by name API","id":"1f5a378d-cfdf-4711-8c66-69c200d3ef96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:name","description":"<p>This api is used for Reading a Restaurant by name</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":name"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"name"}]}},"response":[{"id":"edf80b46-3eff-440b-acb7-2b7322a831c0","name":"Reading a Restaurant by name API - Success","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/New Restaurant"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"385"},{"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":"Thu, 14 Sep 2023 09:51:44 GMT"},{"key":"Etag","value":"W/\"181-FLd9PpFORhUIhXzc1xeKEkbhBEg\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7153189; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurants with name \\\"New Restaurant\\\" : \",\n    \"restaurant\": [\n        {\n            \"_id\": \"6502d5a675be023917d47b55\",\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\": \"6502d5a675be023917d47b56\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502d5a675be023917d47b57\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"e1c313dd-1f72-408b-88b5-0166959c8807","name":"Reading a Restaurant by name API - 404","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/xyz"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 09:57:54 GMT"},{"key":"Etag","value":"W/\"22-ZBfombAj3ycDJFk7z9nygDzhSek\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7152819; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No Restaurants Found\"\n}"}],"_postman_id":"1f5a378d-cfdf-4711-8c66-69c200d3ef96"},{"name":"Reading All Restaurants API","id":"428772e1-3400-4786-8e7e-ad6f586502af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1","description":"<p>This api is used for Reading All Restaurants</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[]}},"response":[{"id":"3a7b8abf-fea4-4144-9c62-28f627e8f0c6","name":"Reading All Restaurants API - Success","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"360"},{"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":"Thu, 14 Sep 2023 10:00:49 GMT"},{"key":"Etag","value":"W/\"168-MGEBGnuYhwi3n1UQ/Bp58YN2yOU\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7152643; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Restaurants : \",\n    \"restaurant\": [\n        {\n            \"_id\": \"6502d5a675be023917d47b55\",\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\": \"6502d5a675be023917d47b56\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502d5a675be023917d47b57\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"428772e1-3400-4786-8e7e-ad6f586502af"},{"name":"Reading Restaurants by Cuisine","id":"bc6893a6-77ef-4126-8db5-584d24de5079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/cuisine/:cuisineType","description":"<p>This api is used for Reading Restaurants by cuisine</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1","cuisine",":cuisineType"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"cuisineType"}]}},"response":[{"id":"029a0b56-058d-4bc1-aac5-5ce9b24064c9","name":"Reading Restaurants by Cuisine - Success","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/cuisine/Italian"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"385"},{"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":"Thu, 14 Sep 2023 10:09:12 GMT"},{"key":"Etag","value":"W/\"181-aa/BfjFU7CmNLbQ4+lQodn+1FjI\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7152140; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurants with cuisineType \\\"Italian\\\" : \",\n    \"restaurant\": [\n        {\n            \"_id\": \"6502d5a675be023917d47b55\",\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\": \"6502d5a675be023917d47b56\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502d5a675be023917d47b57\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"d68b62aa-08fd-48c1-b22f-2008b9b0a24b","name":"Reading Restaurants by Cuisine - 404","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/cuisine/Mexican"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 10:10:04 GMT"},{"key":"Etag","value":"W/\"22-ZBfombAj3ycDJFk7z9nygDzhSek\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7152088; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No Restaurants Found\"\n}"}],"_postman_id":"bc6893a6-77ef-4126-8db5-584d24de5079"},{"name":"Updating a Restaurant API","id":"c94a30c7-d7c7-49b3-bedb-dfe5629f38ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId","description":"<p>This api is used for updating Restaurant's data</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"restaurantId"}]}},"response":[{"id":"284dcc8a-64c5-4747-933e-0b73ad321b29","name":"Updating a Restaurant API - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502d5a675be023917d47b55"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"367"},{"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":"Thu, 14 Sep 2023 10:17:01 GMT"},{"key":"Etag","value":"W/\"16f-JIBLPmfbbLaxKJEdcF4utQDnRHw\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7151675; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurant updated\",\n    \"restaurant\": {\n        \"_id\": \"6502d5a675be023917d47b55\",\n        \"name\": \"Updated Restaurant Name\",\n        \"cuisine\": \"Mexican\",\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\": \"6502d5a675be023917d47b56\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"6502d5a675be023917d47b57\"\n            }\n        ],\n        \"reviews\": [],\n        \"__v\": 0\n    }\n}"},{"id":"4dde7079-0e9f-424c-9682-7a1fd699a071","name":"Updating a Restaurant API - 404","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"name\": \"Updated Restaurant Name\",\r\n  \"cuisine\": \"Mexican\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502d5a675be023917d47b5a"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 10:17:38 GMT"},{"key":"Etag","value":"W/\"22-rmIOZ8PTokNdnDxBpeQJMJm8ivA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7151634; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurant not Found\"\n}"}],"_postman_id":"c94a30c7-d7c7-49b3-bedb-dfe5629f38ce"},{"name":"Deleting a Restaurant API","id":"73adb245-c715-44e6-9478-10f17a1f217e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId","description":"<p>This api is used for deleting Restaurant</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"restaurantId"}]}},"response":[{"id":"634f9572-3d42-4fce-924e-167aee5d23e9","name":"Deleting a Restaurant API - 404","originalRequest":{"method":"DELETE","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502d5a675be023917d47b5a"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 10:23:10 GMT"},{"key":"Etag","value":"W/\"22-rmIOZ8PTokNdnDxBpeQJMJm8ivA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7151305; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurant not Found\"\n}"},{"id":"2c0f1db3-ea4f-4db3-92d5-96e718147bfc","name":"Deleting a Restaurant API - Success","originalRequest":{"method":"DELETE","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502d5a675be023917d47b55"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49"},{"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":"Thu, 14 Sep 2023 10:23:34 GMT"},{"key":"Etag","value":"W/\"31-jLqhZx7RS0w54hiaionKtFGuNb8\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7151279; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurant Deleted\",\n    \"restaurants\": []\n}"}],"_postman_id":"73adb245-c715-44e6-9478-10f17a1f217e"},{"name":"Searching for Restaurants by Location","id":"686a4dbb-43e7-43db-b04c-d8884a1f50c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/search?location=Mumbai","description":"<p>This api is used for searching for restaurants by location</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1","search"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[{"key":"location","value":"Mumbai"}],"variable":[]}},"response":[{"id":"5d123eef-d87b-45af-add0-70b246f990e2","name":"Searching for Restaurants by Location - Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/search?location=New%20York","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["restaurants","v1","search"],"query":[{"key":"location","value":"New%20York"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"372"},{"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":"Thu, 14 Sep 2023 10:37:28 GMT"},{"key":"Etag","value":"W/\"174-BJXTFmoufpdWDQ95PJkmaSgXBqM\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7150445; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurants at \\\"New York\\\" : \",\n    \"restaurant\": [\n        {\n            \"_id\": \"6502dfb38b51c225f936ff60\",\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\": \"6502dfb38b51c225f936ff61\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502dfb38b51c225f936ff62\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"6c613aec-27ca-4439-9f6f-a2226d1ebcbb","name":"Searching for Restaurants by Location - 404","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/search?location=Mumbai","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["restaurants","v1","search"],"query":[{"key":"location","value":"Mumbai"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 10:38:07 GMT"},{"key":"Etag","value":"W/\"22-ZBfombAj3ycDJFk7z9nygDzhSek\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7150405; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No Restaurants Found\"\n}"}],"_postman_id":"686a4dbb-43e7-43db-b04c-d8884a1f50c4"},{"name":"Filtering Restaurants by Rating","id":"9c47348b-585b-4bb8-9398-1815442d61b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/rating/:minRating","description":"<p>This api is used for filtering restaurants by rating</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1","rating",":minRating"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"minRating"}]}},"response":[{"id":"23c03ae6-d115-401d-b236-bc175e0411e9","name":"Filtering Restaurants by Rating - Success","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/rating/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"382"},{"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":"Thu, 14 Sep 2023 10:41:42 GMT"},{"key":"Etag","value":"W/\"17e-ErqGjruqn2Z6emPCgyEjDrDsChE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7150190; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Restaurants with minimum rating \\\"4\\\" : \",\n    \"restaurant\": [\n        {\n            \"_id\": \"6502dfb38b51c225f936ff60\",\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\": \"6502dfb38b51c225f936ff61\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502dfb38b51c225f936ff62\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"d5445681-5816-445c-93f0-a194fe1ae073","name":"Filtering Restaurants by Rating - 404","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/rating/6"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"34"},{"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":"Thu, 14 Sep 2023 10:42:02 GMT"},{"key":"Etag","value":"W/\"22-ZBfombAj3ycDJFk7z9nygDzhSek\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7150170; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No Restaurants Found\"\n}"}],"_postman_id":"9c47348b-585b-4bb8-9398-1815442d61b3"}],"id":"ffe2960c-b8d7-48cb-bb1e-c6c829e38a60","description":"<p>This is collection of APIs used for Management of Restaurants data</p>\n","_postman_id":"ffe2960c-b8d7-48cb-bb1e-c6c829e38a60"},{"name":"Menu Management","item":[{"name":"Adding a Dish to a Restaurant's Menu","id":"18673bf7-3f90-4d90-82c8-e45fe2b1d796","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Another New Dish\",\r\n  \"price\": 9.99,\r\n  \"description\":\"This is another new dish\" ,\r\n  \"isVeg\":true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/menu","description":"<p>This api is used for Adding a Dish to a Restaurant's Menu</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId","menu"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"restaurantId"}]}},"response":[{"id":"182c9ab7-9ccf-4ab1-84fd-5789f3e3d9a8","name":"Adding a Dish to a Restaurant's Menu - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Another New Dish\",\r\n  \"price\": 9.99,\r\n  \"description\":\"This is another new dish\" ,\r\n  \"isVeg\":true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502dfb38b51c225f936ff60/menu"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"551"},{"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":"Thu, 14 Sep 2023 10:57:19 GMT"},{"key":"Etag","value":"W/\"227-jvfdBIsEQGO23bTZXeCxtQWinH8\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7149254; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"New Dish added\",\n    \"restaurants\": [\n        {\n            \"_id\": \"6502dfb38b51c225f936ff60\",\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\": \"6502dfb38b51c225f936ff61\"\n                },\n                {\n                    \"name\": \"Pasta Carbonara\",\n                    \"price\": 15.99,\n                    \"_id\": \"6502dfb38b51c225f936ff62\"\n                },\n                {\n                    \"name\": \"New Dish\",\n                    \"price\": 9.99,\n                    \"_id\": \"6502e65b5efb5993823f09a0\"\n                },\n                {\n                    \"name\": \"Another New Dish\",\n                    \"price\": 9.99,\n                    \"description\": \"This is another new dish\",\n                    \"isVeg\": true,\n                    \"_id\": \"6502e70e2dbb4285bbfcb4ec\"\n                }\n            ],\n            \"reviews\": [],\n            \"__v\": 2\n        }\n    ]\n}"},{"id":"8d78dd9b-1608-4109-9579-9bc3d39d57e3","name":"Adding a Dish to a Restaurant's Menu - 404","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Another New Dish\",\r\n  \"price\": 9.99,\r\n  \"description\":\"This is another new dish\" ,\r\n  \"isVeg\":true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502dfb38b51c225f936ff60sd/menu"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"134"},{"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":"Thu, 14 Sep 2023 11:05:18 GMT"},{"key":"Etag","value":"W/\"86-AMjNuhLeR5jL1+Yy7OEpde2Clq8\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7148774; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Cast to ObjectId failed for value \\\"6502dfb38b51c22sa45d5f936ff60\\\" (type string) at path \\\"_id\\\" for model \\\"Restaurant\\\"\"\n}"}],"_postman_id":"18673bf7-3f90-4d90-82c8-e45fe2b1d796"},{"name":"Removing a Dish from Restaurant's Menu","id":"a9aecc34-8cf4-4845-93bb-81c1b3466fb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/menu/:dishName","description":"<p>This api is used for Removing a Dish from Restaurant's Menu</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId","menu",":dishName"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"restaurantId"},{"type":"any","value":"","key":"dishName"}]}},"response":[{"id":"c7acfcf9-4d2a-4c45-80fe-8be20fff2f03","name":"Removing a Dish from a Restaurant's Menu - Success","originalRequest":{"method":"DELETE","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502dfb38b51c225f936ff60/menu/New%20Dish"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"609"},{"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":"Thu, 14 Sep 2023 11:56:44 GMT"},{"key":"Etag","value":"W/\"261-isLPm3woagVVW46g3En/Za2p6GU\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7145689; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Dish Removed\",\n    \"restaurants\": {\n        \"_id\": \"6502dfb38b51c225f936ff60\",\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\": \"6502dfb38b51c225f936ff61\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"6502dfb38b51c225f936ff62\"\n            },\n            {\n                \"name\": \"Another New Dish\",\n                \"price\": 9.99,\n                \"description\": \"This is another new dish\",\n                \"isVeg\": true,\n                \"_id\": \"6502e70e2dbb4285bbfcb4ec\"\n            },\n            {\n                \"name\": \"Another New Dish\",\n                \"price\": 9.99,\n                \"description\": \"This is another new dish\",\n                \"isVeg\": true,\n                \"_id\": \"6502e7fbe4ed0ef9469e1f17\"\n            }\n        ],\n        \"reviews\": [],\n        \"__v\": 4\n    }\n}"}],"_postman_id":"a9aecc34-8cf4-4845-93bb-81c1b3466fb0"}],"id":"c29f5a2c-6dd0-41d9-99c6-62225bf349d6","description":"<p>This is collection of APIs used for Management of Food Menu data</p>\n","_postman_id":"c29f5a2c-6dd0-41d9-99c6-62225bf349d6"},{"name":"User Reviews Management","item":[{"name":"Allowing Users to Add Reviews and Ratings for a Restaurant","id":"c9cb920c-115f-4911-96a9-c0b61e47f13f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":":token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"userId\": \"617a2ed9466e8c00160192e1\",\r\n  \"rating\": 4.5,\r\n  \"text\": \"Great food and excellent service!\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/reviews","description":"<p>This api is used for Allowing Users to Add Reviews and Ratings for a Restaurant</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId","reviews"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"650a8d4fc15b1c687b79e473","key":"restaurantId"}]}},"response":[{"id":"e901646f-bf5f-4d02-9f5d-d3f36e5a02b6","name":"Allowing Users to Add Reviews and Ratings for a Restaurant -  Error - unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"userId\": \"617a2ed9466e8c00160192e1\",\r\n  \"rating\": 4.5,\r\n  \"text\": \"Great food and excellent service!\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/reviews","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["restaurants","v1",":restaurantId","reviews"],"variable":[{"key":"restaurantId","value":"6502d5a675be023917d47b55"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"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":"Wed, 20 Sep 2023 06:09:37 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648115; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"},{"id":"dbf0015c-4a3b-4eb0-bc2f-914f7731b824","name":"Allowing Users to Add Reviews and Ratings for a Restaurant - Success","originalRequest":{"method":"POST","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"userId\": \"617a2ed9466e8c00160192e1\",\r\n  \"rating\": 4.5,\r\n  \"text\": \"Great food and excellent service!\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/reviews","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["restaurants","v1",":restaurantId","reviews"],"variable":[{"key":"restaurantId","value":"650a8d4fc15b1c687b79e473"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"454"},{"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":"Wed, 20 Sep 2023 06:12:53 GMT"},{"key":"Etag","value":"W/\"1c6-3XglU+G0FbicM7OjfRKhgbBiYYc\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6647920; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review and Rating Added\",\n    \"restaurants\": {\n        \"_id\": \"650a8d4fc15b1c687b79e473\",\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\": \"650a8d4fc15b1c687b79e474\"\n            },\n            {\n                \"name\": \"Pasta Carbonara\",\n                \"price\": 15.99,\n                \"_id\": \"650a8d4fc15b1c687b79e475\"\n            }\n        ],\n        \"reviews\": [\n            {\n                \"text\": \"Great food and excellent service!\",\n                \"rating\": 4.5,\n                \"_id\": \"650a8d64c15b1c687b79e47a\"\n            }\n        ],\n        \"__v\": 1\n    }\n}"}],"_postman_id":"c9cb920c-115f-4911-96a9-c0b61e47f13f"},{"name":"Retrieving User Reviews for a Specific Restaurant","id":"79247f2e-bb2c-49cb-9b67-fc1cf82e14cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/:restaurantId/reviews","description":"<p>Allowing Users Retrieving User Reviews for a Specific Restaurant</p>\n","urlObject":{"protocol":"https","path":["restaurants","v1",":restaurantId","reviews"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"","key":"restaurantId"}]}},"response":[{"id":"eeea1075-530c-42e8-a856-1aefd3d07524","name":"Retrieving User Reviews for a Specific Restaurant - Success","originalRequest":{"method":"GET","header":[],"url":"https://zomato-app.omkarpatil20.repl.co/restaurants/v1/6502fb8d54f725aed6611fae/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"96"},{"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":"Thu, 14 Sep 2023 12:26:54 GMT"},{"key":"Etag","value":"W/\"60-NiORLWWalUgKcrbwKgQXTQ3dMVI\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=7143887; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All Reviews:\",\n    \"reviews\": [\n        {\n            \"text\": \"Great food and excellent service!\",\n            \"rating\": 4.5\n        }\n    ]\n}"}],"_postman_id":"79247f2e-bb2c-49cb-9b67-fc1cf82e14cc"}],"id":"6d121bf1-5492-4bd7-9938-a94e062c40ba","description":"<p>This is collection of APIs used for Management of Reviews and Ratings for Restaurants</p>\n","_postman_id":"6d121bf1-5492-4bd7-9938-a94e062c40ba"},{"name":"Authentication","item":[{"name":"User Signup","id":"14fccbdb-c532-491d-8e33-861f757a000f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"secretpassword\",\r\n  \"username\": \"test\",\r\n  \"profilePicture\": \"<https://example.com/profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/signup","description":"<p>This API call creates and signs up a new user to the database.</p>\n","urlObject":{"protocol":"https","path":["auth","v1","signup"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[]}},"response":[{"id":"8f29d949-10a5-48c0-b876-14a8a0e24316","name":"User Signup -Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"secretpassword\",\r\n  \"username\": \"test\",\r\n  \"profilePicture\": \"<https://example.com/profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"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":"Wed, 20 Sep 2023 05:53:17 GMT"},{"key":"Etag","value":"W/\"1d9-FSEwc0F+oQYUdAKSwdlZb2PG9AM\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6649096; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"New user created\",\n    \"createdUser\": {\n        \"email\": \"test@example.com\",\n        \"password\": \"$2b$10$QFfvPDbMQjUfuSgI2T9HcuaWT/6kscb/5LVWLYtMkhy4eXmGp3sdW\",\n        \"username\": \"test\",\n        \"_id\": \"650a88ccc15b1c687b79e45d\",\n        \"createdAt\": \"2023-09-20T05:53:16.889Z\",\n        \"updatedAt\": \"2023-09-20T05:53:16.889Z\",\n        \"__v\": 0\n    },\n    \"encodedToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTE5NywiZXhwIjoxNjk1Mjc1NTk3fQ.dlKARyIQ6cXUq3eQNDX3iE7UlaIBG5EyIeb2GzCqv0c\"\n}"},{"id":"39c82abb-5d27-4b5a-bddb-e5e2dd944788","name":"User Signup - Error - User already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"secretpassword\",\r\n  \"username\": \"test\",\r\n  \"profilePicture\": \"<https://example.com/profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/signup"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"36"},{"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":"Wed, 20 Sep 2023 05:53:50 GMT"},{"key":"Etag","value":"W/\"24-5B56xuvmw3IrU+e3WAtyoxowjFk\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6649062; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Email already registered\"\n}"}],"_postman_id":"14fccbdb-c532-491d-8e33-861f757a000f"},{"name":"User Login","id":"d7592f0e-23d6-4dae-a092-5db5e734efc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"secretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/login","description":"<p>This API logs in a registered user from the database.</p>\n","urlObject":{"protocol":"https","path":["auth","v1","login"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[]}},"response":[{"id":"509332e6-bee8-4225-8aa1-0bf09a656e79","name":"User Login - Error - user not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"unavailableuser@example.com\",\r\n  \"password\": \"secretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/login"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"26"},{"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":"Wed, 20 Sep 2023 05:55:22 GMT"},{"key":"Etag","value":"W/\"1a-2JdoHsw8Ys7KN4vit7Gc+mguXiY\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648970; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User Not Found\"\n}"},{"id":"50ca4b06-6bdc-4c5a-aa2c-f2a6d02f5749","name":"User Login - Error - wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"wrongpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"30"},{"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":"Wed, 20 Sep 2023 05:55:50 GMT"},{"key":"Etag","value":"W/\"1e-yI8lx7vbpwW+EkxfwKSKzu8+B/0\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648942; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Incorrect Password\"\n}"},{"id":"93027d50-493a-44d0-a3d0-527b4d25fc0b","name":"User Login - Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test@example.com\",\r\n  \"password\": \"secretpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/auth/v1/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"464"},{"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":"Wed, 20 Sep 2023 05:56:08 GMT"},{"key":"Etag","value":"W/\"1d0-uXFTXteH46TKaafM46qTRW4xGqM\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648924; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User logged in\",\n    \"user\": {\n        \"_id\": \"650a88ccc15b1c687b79e45d\",\n        \"email\": \"test@example.com\",\n        \"password\": \"$2b$10$QFfvPDbMQjUfuSgI2T9HcuaWT/6kscb/5LVWLYtMkhy4eXmGp3sdW\",\n        \"username\": \"test\",\n        \"createdAt\": \"2023-09-20T05:53:16.889Z\",\n        \"updatedAt\": \"2023-09-20T05:53:16.889Z\",\n        \"__v\": 0\n    },\n    \"encodedToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTM2OCwiZXhwIjoxNjk1Mjc1NzY4fQ.ko6SLlyddIvm2uPU3yKsBken1VQHLVPKALntW2a7gsk\"\n}"}],"_postman_id":"d7592f0e-23d6-4dae-a092-5db5e734efc1"},{"name":"Change User Password","id":"a6949f0c-c59b-48bc-a999-eb99f7547b6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":":token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"currentPassword\": \"secretpassword\",\r\n  \"newPassword\": \"newpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/password","description":"<p>This API changes password of registered User</p>\n","urlObject":{"protocol":"https","path":["user","v1",":userId","password"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"650a88ccc15b1c687b79e45d","key":"userId"}]}},"response":[{"id":"5cbc4d0f-95ba-4a5c-9eb3-a45fa4475ecc","name":"Change User Password - Error - unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"currentPassword\": \"secretpassword\",\r\n  \"newPassword\": \"newpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/password","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","password"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"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":"Wed, 20 Sep 2023 06:03:10 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648502; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"},{"id":"1484640f-e84e-4d42-a1b0-a0a13d3c15f7","name":"Change User Password - Success","originalRequest":{"method":"POST","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"currentPassword\": \"secretpassword\",\r\n  \"newPassword\": \"newpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/password","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","password"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"241"},{"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":"Wed, 20 Sep 2023 06:04:24 GMT"},{"key":"Etag","value":"W/\"f1-XuwIQMwiqMMlzBgqe7bLDJv7kco\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648429; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password changed for the user\",\n    \"user\": {\n        \"_id\": \"650a88ccc15b1c687b79e45d\",\n        \"email\": \"test@example.com\",\n        \"password\": \"newpassword\",\n        \"username\": \"test\",\n        \"createdAt\": \"2023-09-20T05:53:16.889Z\",\n        \"updatedAt\": \"2023-09-20T06:04:23.770Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"a6949f0c-c59b-48bc-a999-eb99f7547b6d"},{"name":"Update User Profile Picture","id":"78fb5fa2-95aa-4762-beb3-2fea7d49f747","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":":token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\r\n  \"newProfilePictureUrl\": \"<https://example.com/new-profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/profilePicture","description":"<p>This API updates profile picture of registered User</p>\n","urlObject":{"protocol":"https","path":["user","v1",":userId","profilePicture"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"650a88ccc15b1c687b79e45d","key":"userId"}]}},"response":[{"id":"2b95cea8-7ded-4338-9856-657180b1f602","name":"Update User Profile Picture - Error - unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n  \"newProfilePictureUrl\": \"<https://example.com/new-profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/profilePicture","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","profilePicture"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"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":"Wed, 20 Sep 2023 06:05:00 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648392; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"},{"id":"cdc3c5c4-89f8-4984-8b76-e91d229992ec","name":"Update User Profile Picture - Success","originalRequest":{"method":"POST","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\r\n  \"newProfilePictureUrl\": \"<https://example.com/new-profile.jpg>\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/profilePicture","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","profilePicture"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"308"},{"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":"Wed, 20 Sep 2023 06:05:35 GMT"},{"key":"Etag","value":"W/\"134-lfVbrhps2JAMZ5g5h427Rjif+HE\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648357; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Profile Picture updated for the user\",\n    \"user\": {\n        \"_id\": \"650a88ccc15b1c687b79e45d\",\n        \"email\": \"test@example.com\",\n        \"password\": \"newpassword\",\n        \"username\": \"test\",\n        \"createdAt\": \"2023-09-20T05:53:16.889Z\",\n        \"updatedAt\": \"2023-09-20T06:05:35.474Z\",\n        \"__v\": 0,\n        \"profilePictureUrl\": \"<https://example.com/new-profile.jpg>\"\n    }\n}"}],"_postman_id":"78fb5fa2-95aa-4762-beb3-2fea7d49f747"},{"name":"Update User Contact Details","id":"3cb2de1d-92e7-4339-8316-2476a8d0b6aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"authorization","value":":token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": \"1234546790\",\r\n  \"address\": \"123 Main St, City\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/contact","description":"<p>This API updates contact details of registered User</p>\n","urlObject":{"protocol":"https","path":["user","v1",":userId","contact"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"650a88ccc15b1c687b79e45d","key":"userId"}]}},"response":[{"id":"2ffb3a9c-e3da-4b20-9c1a-8b85da2b7dd3","name":"Update User Contact Details - Error - unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": \"1234546790\",\r\n  \"address\": \"123 Main St, City\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/contact","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","contact"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"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":"Wed, 20 Sep 2023 06:06:04 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648328; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"},{"id":"2b984590-4392-4549-87df-0ecc5a8b4090","name":"Update User Contact Details - Success","originalRequest":{"method":"POST","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"phoneNumber\": \"1234546790\",\r\n  \"address\": \"123 Main St, City\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/:userId/contact","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1",":userId","contact"],"variable":[{"key":"userId","value":"650a88ccc15b1c687b79e45d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"363"},{"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":"Wed, 20 Sep 2023 06:06:28 GMT"},{"key":"Etag","value":"W/\"16b-FVHQ/hp5f+KqyjGfQvr30eq40/A\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648304; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contact details updated for the user\",\n    \"user\": {\n        \"_id\": \"650a88ccc15b1c687b79e45d\",\n        \"email\": \"test@example.com\",\n        \"password\": \"newpassword\",\n        \"username\": \"test\",\n        \"createdAt\": \"2023-09-20T05:53:16.889Z\",\n        \"updatedAt\": \"2023-09-20T06:06:28.713Z\",\n        \"__v\": 0,\n        \"profilePictureUrl\": \"<https://example.com/new-profile.jpg>\",\n        \"phoneNumber\": 1234546790,\n        \"address\": \"123 Main St, City\"\n    }\n}"}],"_postman_id":"3cb2de1d-92e7-4339-8316-2476a8d0b6aa"},{"name":"Get User by Phone Number","id":"fd9f9214-63e6-45e2-8c54-044e57530293","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"url":"https://zomato-app.omkarpatil20.repl.co/user/v1/phone/:phoneNumber","description":"<p>This API call gets user by Phone number from the db.</p>\n","urlObject":{"protocol":"https","path":["user","v1","phone",":phoneNumber"],"host":["zomato-app","omkarpatil20","repl","co"],"query":[],"variable":[{"type":"any","value":"1234546790","key":"phoneNumber"}]}},"response":[{"id":"e1333561-9ffe-4a56-8e92-52ae34b512fd","name":"Get User by Phone Number - Error - 404","originalRequest":{"method":"GET","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/phone/:phoneNumber","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1","phone",":phoneNumber"],"variable":[{"key":"phoneNumber","value":"123456790"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"26"},{"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":"Wed, 20 Sep 2023 06:07:30 GMT"},{"key":"Etag","value":"W/\"1a-hq/hT0ORGTkTfyRpVCZ/JB/r8Eg\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648242; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found\"\n}"},{"id":"3c4d0c9c-7801-45ef-9502-285fecc86948","name":"Get User by Phone Number - Success","originalRequest":{"method":"GET","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text"}],"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/phone/:phoneNumber","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1","phone",":phoneNumber"],"variable":[{"key":"phoneNumber","value":"1234546790"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"352"},{"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":"Wed, 20 Sep 2023 06:08:12 GMT"},{"key":"Etag","value":"W/\"160-RR5a9sIRg7qD6Puc3Z8Ygdq14dc\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648200; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User found\",\n    \"user\": {\n        \"_id\": \"6503029dadffc74e4d66145e\",\n        \"email\": \"developer@example.com\",\n        \"password\": \"newpassword\",\n        \"username\": \"anothernewuser\",\n        \"createdAt\": \"2023-09-14T12:54:53.386Z\",\n        \"updatedAt\": \"2023-09-14T13:05:19.977Z\",\n        \"__v\": 0,\n        \"profilePictureUrl\": \"<https://example.com/new-profile.jpg>\",\n        \"address\": \"123 Main St, City\",\n        \"phoneNumber\": 1234546790\n    }\n}"},{"id":"46cf430e-b4ff-424a-b766-fc00a1696a0a","name":"Get User by Phone Number - Error - unauthorized","originalRequest":{"method":"GET","header":[{"key":"authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MGE4OGNjYzE1YjFjNjg3Yjc5ZTQ1ZCIsImlhdCI6MTY5NTE4OTc3MCwiZXhwIjoxNjk1Mjc2MTcwfQ.Kpc974UKv04UUonAeCbPw7K3UFGrT7nhEHFmSSOU2kE","type":"text","disabled":true}],"url":{"raw":"https://zomato-app.omkarpatil20.repl.co/user/v1/phone/:phoneNumber","protocol":"https","host":["zomato-app","omkarpatil20","repl","co"],"path":["user","v1","phone",":phoneNumber"],"variable":[{"key":"phoneNumber","value":"1234546790"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"55"},{"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":"Wed, 20 Sep 2023 06:08:31 GMT"},{"key":"Etag","value":"W/\"37-z7piH5j/V2yaASQxJNVxEuNM2IA\""},{"key":"Expect-Ct","value":"max-age=2592000, report-uri=\"https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791\""},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Replit-Cluster","value":"global"},{"key":"Strict-Transport-Security","value":"max-age=6648181; includeSubDomains"},{"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-Xss-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorised access, please add the token\"\n}"}],"_postman_id":"fd9f9214-63e6-45e2-8c54-044e57530293"}],"id":"3f13c8ea-c587-4e7f-9ffe-c1b6fd420fb6","description":"<p>This provides apis for authentication</p>\n","_postman_id":"3f13c8ea-c587-4e7f-9ffe-c1b6fd420fb6"}]}