{"info":{"_postman_id":"6b25f507-0301-404c-9677-32498fa4da72","name":"Travel API Documentation","description":"<html><head></head><body><p>Welcome to the API documentation for our Travel App a powerful platform designed to provide users with seamless travel recommendations and destination management, much like the popular service TripAdvisor. This API enables developers to integrate our travel recommendation features into their applications.</p>\n<h2 id=\"api-implementation-details\"><strong>API Implementation Details</strong></h2>\n<ul>\n<li><strong>Database :</strong> We utilize MongoDB as the underlying database for storing travel destination information.</li>\n<li><strong>ODM :</strong> Mongoose is employed as the Object Data Modeling library to facilitate interaction with the MongoDB database.</li>\n<li><strong>Autentication :</strong> To ensure data security and user-specific interactions, make sure to implement authentication and authorization mechanisms in your application.</li>\n</ul>\n<h4 id=\"api-endpoints\">API ENDPOINTS</h4>\n<p>These API endpoints provide a comprehensive set of features to manage travel destinations, retrieve relevant information, and engage with user ratings and reviews on the platform.</p>\n<ol>\n<li><strong>Create a new travel destination :</strong> Allows you to add a new travel destination to the platform with details such as name, location, description, and rating.</li>\n<li><strong>Retrieve a travel destination by name :</strong> Fetches the details of a specific travel destination based on its name.</li>\n<li><strong>Retrieve list of all travel destination :</strong> Returns a list of all travel destinations available on the platform.</li>\n<li><strong>Retrieve travel destinations by location like city/country :</strong> Allows you to retrieve a list of travel destinations based on their location, which can be a city or country.</li>\n<li><strong>Retrieve travel destinations by rating :</strong> Retrieves travel destinations based on their ratings, categorized as either top-rated or low-rated.</li>\n<li><strong>Update a travel destination by ID :</strong> Enables you to update the details of a specific travel destination using its unique identifier (ID).</li>\n<li><strong>Delete a Travel destination by ID :</strong> Deletes a travel destination from the platform based on its unique identifier (ID).</li>\n<li><strong>Filter destinations by minimum rating :</strong> Filters and retrieves travel destinations with ratings equal to or higher than a specified minimum rating.</li>\n<li><strong>Add users review :</strong> Allows users to submit ratings and reviews for a specific travel destination using its ID.</li>\n<li><strong>Retrieve all reviews for a travel destination :</strong> Retrieves first three reviews associated with a particular travel destination using its ID.</li>\n</ol>\n<h4 id=\"api-base-url\">API BASE URL</h4>\n<p>It is important to make all API requests to the base URL provided below. Please ensure that you use this URL for all your API requests</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://travel-api-sand.vercel.app/\n\n</code></pre></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23291498","collectionId":"6b25f507-0301-404c-9677-32498fa4da72","publishedId":"2s9YsT7UDZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-21T10:03:34.000Z"},"item":[{"name":"Travel Destination Management","item":[{"name":"Creating a Travel Destination","id":"55d3e76c-498f-4d06-a260-520040b18524","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Mountain Retreat Lodge\",\n  \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n  \"city\": \"Serene Valley\",\n  \"country\": \"Hilltopia\",\n  \"rating\": 4.2,\n  \"reviews\": []\n}\n","options":{"raw":{"language":"json"}}},"url":"https://travel-api-sand.vercel.app/api/v1/destinations","description":"<ul>\n<li><p>Endpoint : <code>POST /api/v1/destinations</code></p>\n</li>\n<li><p>Description : Allows you to add a new travel destination to the platform with details such as name, location, description, and rating.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"41e21784-634c-4af4-9a96-172116187698","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Mountain Retreat Lodge\",\n  \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n  \"city\": \"Serene Valley\",\n  \"country\": \"Hilltopia\",\n  \"rating\": 4.2,\n  \"reviews\": []\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/destinations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"285"},{"key":"ETag","value":"W/\"11d-VacdoDoYuXr9SeO28QZpeWUC0po\""},{"key":"Date","value":"Sat, 20 Jan 2024 18:43:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Destination created successfully\",\n    \"data\": {\n        \"destination\": {\n            \"name\": \"Mountain Retreat Lodge\",\n            \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n            \"city\": \"Serene Valley\",\n            \"country\": \"Hilltopia\",\n            \"rating\": 4.2,\n            \"reviews\": [],\n            \"_id\": \"65ac14600a5ce04bb4805bc1\"\n        }\n    }\n}"}],"_postman_id":"55d3e76c-498f-4d06-a260-520040b18524"},{"name":"Retrieving All Travel Destinations","id":"db032547-fd2a-4d92-81ce-df95bc1a28bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations</code></p>\n</li>\n<li><p>Description : Returns a list of all travel destinations available on the platform.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"82508c0c-ec7e-460c-8a20-000350cc67b9","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"475"},{"key":"ETag","value":"W/\"1db-vBiyTBt2RNxN5CO9JhDpQyc0RtQ\""},{"key":"Date","value":"Sat, 20 Jan 2024 19:02:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"destinations\": [\n            {\n                \"_id\": \"65ac17fb092c3c23e4c3de7d\",\n                \"name\": \"Mountain Retreat Lodge\",\n                \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n                \"city\": \"Serene Valley\",\n                \"country\": \"Hilltopia\",\n                \"rating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"65ac184c092c3c23e4c3de80\",\n                \"name\": \"Mountain Retreat Lodge\",\n                \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n                \"city\": \"Serene Valley\",\n                \"country\": \"Hilltopia\",\n                \"rating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"db032547-fd2a-4d92-81ce-df95bc1a28bd"},{"name":"Retrieving a travel destination by name","id":"e6a5a9ce-ed43-4444-ac4f-2e12e61b20d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations/Historical City Tour","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations/:name</code></p>\n</li>\n<li><p>Description : Fetches the details of a specific travel destination based on its name.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","Historical City Tour"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"036db79b-2c6d-4cde-b75a-efb9ae76c3fc","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations/Historical City Tour"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"233"},{"key":"ETag","value":"W/\"e9-k/wpM0HiEdLH/JKXkpZ9Za7U6Mo\""},{"key":"Date","value":"Sat, 20 Jan 2024 19:15:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"destinations\": [\n            {\n                \"_id\": \"65ac19bee26edd082429e9b5\",\n                \"name\": \"Historical City Tour\",\n                \"description\": \"Explore the rich history of this ancient city\",\n                \"city\": \"Timelessburg\",\n                \"country\": \"Historiana\",\n                \"rating\": 3.8,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"e6a5a9ce-ed43-4444-ac4f-2e12e61b20d6"},{"name":"Retrieving Travel Destinations by location name","id":"7d6b8e6e-1844-47b7-adbe-cfb8513271dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations/location/Timelessburg","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations/location/:location</code></p>\n</li>\n<li><p>Description : Retrieve travel destinations based on the specified location.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","location","Timelessburg"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"09ae0a2e-9d7f-4bea-8d3c-38b09f1f49e0","name":"Retrieving Travel Destinations by location name","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations/location/Timelessburg"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"233"},{"key":"ETag","value":"W/\"e9-k/wpM0HiEdLH/JKXkpZ9Za7U6Mo\""},{"key":"Date","value":"Sat, 20 Jan 2024 19:21:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"destinations\": [\n            {\n                \"_id\": \"65ac19bee26edd082429e9b5\",\n                \"name\": \"Historical City Tour\",\n                \"description\": \"Explore the rich history of this ancient city\",\n                \"city\": \"Timelessburg\",\n                \"country\": \"Historiana\",\n                \"rating\": 3.8,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"7d6b8e6e-1844-47b7-adbe-cfb8513271dd"},{"name":"Retrieving Travel Destinations in descending order by rating","id":"39b76763-7113-409b-bb9a-9c4f1743b1cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations/rating","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations/rating</code></p>\n</li>\n<li><p>Description : Retrieve travel destinations sorted by rating in descending order.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","rating"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"cc4821ab-964a-44c4-a693-1fd371073107","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations/rating"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"681"},{"key":"ETag","value":"W/\"2a9-E5cuvLfv1yBfC7LseGLb+t1YC9k\""},{"key":"Date","value":"Sun, 21 Jan 2024 06:43:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"destinations\": [\n            {\n                \"_id\": \"65ac17fb092c3c23e4c3de7d\",\n                \"name\": \"Mountain Retreat Lodge\",\n                \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n                \"city\": \"Serene Valley\",\n                \"country\": \"Hilltopia\",\n                \"rating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"65ac184c092c3c23e4c3de80\",\n                \"name\": \"Mountain Retreat Lodge\",\n                \"description\": \"Escape to the tranquility of the mountains in this cozy lodge\",\n                \"city\": \"Serene Valley\",\n                \"country\": \"Hilltopia\",\n                \"rating\": 4.2,\n                \"reviews\": [],\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"65ac19bee26edd082429e9b5\",\n                \"name\": \"Historical City Tour\",\n                \"description\": \"Explore the rich history of this ancient city\",\n                \"city\": \"Timelessburg\",\n                \"country\": \"Historiana\",\n                \"rating\": 3.8,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"39b76763-7113-409b-bb9a-9c4f1743b1cd"},{"name":"Update a travel destination by id","id":"0df846ae-d3cd-4123-98bb-e3ca7a991e2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\":6\n}","options":{"raw":{"language":"json"}}},"url":"https://travel-api-sand.vercel.app/api/v1/destinations/65ac19bee26edd082429e9b5","description":"<ul>\n<li><p>Endpoint : <code>POST /api/v1/destinations/:destinationId</code></p>\n</li>\n<li><p>Description : Update a travel destination by ID.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","65ac19bee26edd082429e9b5"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"769a1819-307e-42f1-bf98-8116632ea996","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"rating\":6\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/destinations/65ac19bee26edd082429e9b5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"ETag","value":"W/\"111-zapQciZI8PQ53L9fZHVfBWyLrco\""},{"key":"Date","value":"Sun, 21 Jan 2024 07:12:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"destination updated successfully\",\n    \"data\": {\n        \"destination\": {\n            \"_id\": \"65ac19bee26edd082429e9b5\",\n            \"name\": \"Historical City Tour\",\n            \"description\": \"Explore the rich history of this ancient city\",\n            \"city\": \"Timelessburg\",\n            \"country\": \"Historiana\",\n            \"rating\": 6,\n            \"reviews\": [],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"0df846ae-d3cd-4123-98bb-e3ca7a991e2c"},{"name":"Retrieving travel destinations with rating greater than or equal to the min rating","id":"394b48f3-4176-4230-b952-9a1759c526d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations/filter/5","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations/filter/:minRating</code></p>\n</li>\n<li><p>Description : retrieving destinations with ratings greater than or equal to the minimum rating.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","filter","5"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"7195e6f0-4ac6-4042-8fd5-5137239833b6","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations/filter/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"231"},{"key":"ETag","value":"W/\"e7-XdQL8WWeYg6oDm8WEV5yZHXxR5o\""},{"key":"Date","value":"Sun, 21 Jan 2024 07:35:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"destinations\": [\n            {\n                \"_id\": \"65ac19bee26edd082429e9b5\",\n                \"name\": \"Historical City Tour\",\n                \"description\": \"Explore the rich history of this ancient city\",\n                \"city\": \"Timelessburg\",\n                \"country\": \"Historiana\",\n                \"rating\": 6,\n                \"reviews\": [],\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"394b48f3-4176-4230-b952-9a1759c526d3"},{"name":"Allow users to add review to the travel destination","id":"05acf64a-a03f-4704-83b4-284b9b646091","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"65ace47e141fd4b9fd1dfda7\",\n  \"text\": \"I was amazing trip i will go again.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://travel-api-sand.vercel.app/api/v1/destinations/65ac19bee26edd082429e9b5/reviews","description":"<ul>\n<li><p>Endpoint : <code>POST /api/v1/destinations/:destinationId/reviews</code></p>\n</li>\n<li><p>Description : Add a review to a travel destination by destination ID.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","65ac19bee26edd082429e9b5","reviews"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"32c13de0-6d21-46d0-b60d-8bbcd9915cdc","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"userId\": \"65ace47e141fd4b9fd1dfda7\",\n  \"text\": \"I was amazing trip i will go again.\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/destinations/65ac19bee26edd082429e9b5/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"381"},{"key":"ETag","value":"W/\"17d-RTm25TlNBhGhwElpusYuw+kyf/E\""},{"key":"Date","value":"Sun, 21 Jan 2024 09:32:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Review added successfully\",\n    \"data\": {\n        \"destiantion\": {\n            \"_id\": \"65ac19bee26edd082429e9b5\",\n            \"name\": \"Historical City Tour\",\n            \"description\": \"Explore the rich history of this ancient city\",\n            \"city\": \"Timelessburg\",\n            \"country\": \"Historiana\",\n            \"rating\": 6,\n            \"reviews\": [\n                {\n                    \"userId\": \"65ace47e141fd4b9fd1dfda7\",\n                    \"text\": \"I was amazing trip i will go again.\",\n                    \"_id\": \"65ace4cb141fd4b9fd1dfdaa\"\n                }\n            ],\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"05acf64a-a03f-4704-83b4-284b9b646091"},{"name":"Retrieving all reviews for a destination","id":"e82dab6b-53e9-4afd-bb23-291a0093df08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://travel-api-sand.vercel.app/api/v1/destinations/65ac19bee26edd082429e9b5/reviews","description":"<ul>\n<li><p>Endpoint : <code>GET /api/v1/destinations/:destinationId/reviews</code></p>\n</li>\n<li><p>Description : Retrieve reviews for a travel destination with user details.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","destinations","65ac19bee26edd082429e9b5","reviews"],"host":["travel-api-sand","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"0439fa4b-996b-4f48-9318-a0c5778fcdf6","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/destinations/65ac19bee26edd082429e9b5/reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"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":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"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"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"ETag","value":"W/\"d7-qTt1Cmzvd9mSAZi5p8iMrNhjTGk\""},{"key":"Date","value":"Sun, 21 Jan 2024 09:35:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"retrieve reviews successfully\",\n    \"data\": {\n        \"reviews\": [\n            {\n                \"userId\": {\n                    \"_id\": \"65ace47e141fd4b9fd1dfda7\",\n                    \"username\": \"gkumar-pandey\"\n                },\n                \"text\": \"I was amazing trip i will go again.\",\n                \"_id\": \"65ace5481c005518254af968\"\n            }\n        ]\n    }\n}"}],"_postman_id":"e82dab6b-53e9-4afd-bb23-291a0093df08"}],"id":"d9f90950-ea63-4e58-a208-d4880fb650e3","description":"<p>Travel Destination Management allows you to efficiently create, update, retrieve, and manage travel destinations, offering seamless integration of destination-related features into your application.</p>\n","_postman_id":"d9f90950-ea63-4e58-a208-d4880fb650e3"}]}