{"info":{"_postman_id":"33d766ca-6964-440c-933c-b77d062babbb","name":"Untrip","description":"<html><head></head><body><h1 id=\"untrip-api-documentation\">Untrip API Documentation</h1>\n<h2 id=\"🌍-base-urls\">🌍 Base URLs:</h2>\n<ul>\n<li><p><strong>Hotels API:</strong> <code>http://localhost:3000/api/hotels</code></p>\n</li>\n<li><p><strong>User Authentication API:</strong> <code>http://localhost:5000/api/auth</code></p>\n</li>\n<li><p><strong>Car Rentals API:</strong> <code>http://localhost:3000/car/api/car-rentals</code></p>\n</li>\n</ul>\n<hr>\n<h2 id=\"🏨-hotels-api\">🏨 Hotels API</h2>\n<h3 id=\"🔹-get-all-hotels\">🔹 Get All Hotels</h3>\n<p><strong>Endpoint:</strong><br><code>GET /api/hotels</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:3000/api/hotels\n\n</code></pre>\n<hr>\n<h3 id=\"🔹-get-hotel-by-id\">🔹 Get Hotel by ID</h3>\n<p><strong>Endpoint:</strong><br><code>GET /api/hotels/:id</code><br><strong>Example URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:3000/api/hotels/679d335a957916c6d25dd54c\n\n</code></pre>\n<hr>\n<h2 id=\"👤-user-authentication-api\">👤 User Authentication API</h2>\n<h3 id=\"🔹-register-user\">🔹 Register User</h3>\n<p><strong>Endpoint:</strong><br><code>POST /api/auth/register</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:5000/api/auth/register\n\n</code></pre>\n<p><strong>Body (JSON):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Yaasr\",\n  \"email\": \"codinggita@gmail.com\",\n  \"password\": \"787898Ya\"\n}\n\n</code></pre>\n<hr>\n<h3 id=\"🔹-login-user\">🔹 Login User</h3>\n<p><strong>Endpoint:</strong><br><code>POST /api/auth/login</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:5000/api/auth/login\n\n</code></pre>\n<p><strong>Body (JSON):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"email\": \"codinggita@gmail.com\",\n  \"password\": \"787898Ya\"\n}\n\n</code></pre>\n<hr>\n<h3 id=\"🔹-forgot-password\">🔹 Forgot Password</h3>\n<p><strong>Endpoint:</strong><br><code>POST /api/auth/forgot-password</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:5000/api/auth/forgot-password\n\n</code></pre>\n<p><strong>Body (JSON):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"email\": \"sypher916@gmail.com\"\n}\n\n</code></pre>\n<hr>\n<h3 id=\"🔹-verify-otp\">🔹 Verify OTP</h3>\n<p><strong>Endpoint:</strong><br><code>POST /api/auth/verify-otp</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:5000/api/auth/verify-otp\n\n</code></pre>\n<p><strong>Body (JSON):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>jsonCopyEdit{\n  \"email\": \"sypher916@gmail.com\",\n  \"otp\": \"558655\"\n}\n\n</code></pre><hr>\n<h3 id=\"🔹-reset-password\">🔹 Reset Password</h3>\n<p><strong>Endpoint:</strong><br><code>POST /api/auth/reset-password</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:5000/api/auth/reset-password\n\n</code></pre>\n<p><strong>Body (JSON):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"email\": \"sypher916@gmail.com\",\n  \"otp\": \"558655\",\n  \"password\": \"787898yasar\"\n}\n\n</code></pre>\n<hr>\n<h2 id=\"🚗-car-rentals-api\">🚗 Car Rentals API</h2>\n<h3 id=\"🔹-get-car-by-id\">🔹 Get Car by ID</h3>\n<p><strong>Endpoint:</strong><br><code>GET /car/api/car-rental/:id</code><br><strong>Example URLs:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:3000/car/api/car-rental/67a4504b3ce122148d6c4050\nhttp://localhost:3000/car/api/car-rental/67a59668ea1fe3ae17c28704\n\n</code></pre>\n<hr>\n<h3 id=\"🔹-get-all-cars\">🔹 Get All Cars</h3>\n<p><strong>Endpoint:</strong><br><code>GET /car/api/car-rentals</code><br><strong>URL:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http://localhost:3000/car/api/car-rentals\n\n</code></pre>\n<hr>\n<h3 id=\"📌-how-to-use-this-api\">📌 How to Use This API</h3>\n<ol>\n<li><p>Import this documentation into <strong>Postman</strong>.</p>\n</li>\n<li><p>Use the provided <strong>endpoints</strong> to test hotel listings, user authentication, and car rentals.</p>\n</li>\n<li><p>Modify <strong>localhost</strong> to the deployed backend URL when running in production.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Untrip API Documentation","slug":"untrip-api-documentation"}],"owner":"39189780","collectionId":"33d766ca-6964-440c-933c-b77d062babbb","publishedId":"2sAYXFgc6j","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-17T05:30:50.000Z"},"item":[{"name":"Hotel","item":[{"name":"hotel-data","id":"3501d31e-b89d-4312-b26c-e922e2794f31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"yasar\",\r\n  \"email\": \"yasar@gmail.com\",\r\n  \"password\": \"787898yasar\"\r\n \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/hotels","urlObject":{"protocol":"http","port":"3000","path":["api","hotels"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3501d31e-b89d-4312-b26c-e922e2794f31"},{"name":"hotel-data-by-id","id":"ed8f474d-764d-4a57-9351-c3794b6e1fb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/hotels/679d335a957916c6d25dd54c","urlObject":{"protocol":"http","port":"3000","path":["api","hotels","679d335a957916c6d25dd54c"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed8f474d-764d-4a57-9351-c3794b6e1fb9"},{"name":"hotel-data-search","id":"81396170-3367-455a-8d35-73e168720050","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/search-hotels?destination=Mumbai","urlObject":{"protocol":"http","port":"3000","path":["api","search-hotels"],"host":["localhost"],"query":[{"disabled":true,"key":"checkinDate","value":"2025-02-10"},{"disabled":true,"key":"checkoutDate","value":"2025-02-15"},{"key":"destination","value":"Mumbai"}],"variable":[]}},"response":[],"_postman_id":"81396170-3367-455a-8d35-73e168720050"},{"name":"Fetch-Raw-Data","id":"4073a6f0-b9ce-4ef2-b3e4-57e443c76534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://untrip-1.onrender.com/api/hotels/raw?_id=679d355d3a4b4a7fcf0096e2","urlObject":{"protocol":"https","path":["api","hotels","raw"],"host":["untrip-1","onrender","com"],"query":[{"key":"_id","value":"679d355d3a4b4a7fcf0096e2"}],"variable":[]}},"response":[],"_postman_id":"4073a6f0-b9ce-4ef2-b3e4-57e443c76534"}],"id":"44eeb3c1-9caf-42e4-8b15-301bfa7da9e8","_postman_id":"44eeb3c1-9caf-42e4-8b15-301bfa7da9e8","description":""},{"name":"User","item":[{"name":"register","id":"b84133f1-b10b-4ff2-bc12-26e81fbcbe92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yaasr\",\r\n    \"email\": \"codinggita@gmail.com\",\r\n    \"password\": \"787898Ya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register","urlObject":{"protocol":"http","port":"5000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b84133f1-b10b-4ff2-bc12-26e81fbcbe92"},{"name":"login","id":"8e36c19a-44cd-46a2-b1bd-0d01d45652cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"codinggita@gmail.com\",\r\n    \"password\": \"787898Ya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","urlObject":{"protocol":"http","port":"5000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e36c19a-44cd-46a2-b1bd-0d01d45652cc"},{"name":"New Request","id":"00c0b7e0-2a2a-48ca-8550-19075e4404a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"sypher916@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/forgot-password","urlObject":{"protocol":"http","port":"5000","path":["api","auth","forgot-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"00c0b7e0-2a2a-48ca-8550-19075e4404a4"},{"name":"New Request","id":"5af49794-1fbb-4c31-b572-9a8a6ea727bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"sypher916@gmail.com\",\r\n    \"otp\":\"558655\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/verify-otp","urlObject":{"protocol":"http","port":"5000","path":["api","auth","verify-otp"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5af49794-1fbb-4c31-b572-9a8a6ea727bb"},{"name":"New Request","id":"61c4d020-8a6d-4bc5-8e36-78b499ddbf85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"sypher916@gmail.com\",\r\n    \"otp\":\"558655\",\r\n    \"password\":\"787898yasar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/reset-password","urlObject":{"protocol":"http","port":"5000","path":["api","auth","reset-password"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"61c4d020-8a6d-4bc5-8e36-78b499ddbf85"},{"name":"New Request","id":"42287e36-07a1-417f-bf9c-712debf4dc97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"42287e36-07a1-417f-bf9c-712debf4dc97"}],"id":"4e370bb7-16cd-4ec4-83c1-51ad481f8243","_postman_id":"4e370bb7-16cd-4ec4-83c1-51ad481f8243","description":""},{"name":"Car","item":[{"name":"New Request","id":"d2934b60-42bc-4765-a763-9d1402519781","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/car/api/car-rental/67a4504b3ce122148d6c4050","urlObject":{"protocol":"http","port":"3000","path":["car","api","car-rental","67a4504b3ce122148d6c4050"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2934b60-42bc-4765-a763-9d1402519781"},{"name":"New Request","id":"fe487cf3-2235-4deb-8b15-fe9213cf338e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/car/api/car-rental/67a59668ea1fe3ae17c28704","urlObject":{"protocol":"http","port":"3000","path":["car","api","car-rental","67a59668ea1fe3ae17c28704"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe487cf3-2235-4deb-8b15-fe9213cf338e"},{"name":"New Request","id":"ec63d1db-aff1-472e-8b43-005f3cf2b4cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/car/api/car-rentals","urlObject":{"protocol":"http","port":"3000","path":["car","api","car-rentals"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec63d1db-aff1-472e-8b43-005f3cf2b4cd"},{"name":"New Request","id":"6c48768c-541f-498c-8704-cff365c35be6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"6c48768c-541f-498c-8704-cff365c35be6"},{"name":"New Request","id":"4eef1d52-9a15-406f-b7c2-36704d47d5a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"4eef1d52-9a15-406f-b7c2-36704d47d5a5"}],"id":"3c890559-ad96-45fd-8fef-e9c8efca1edf","_postman_id":"3c890559-ad96-45fd-8fef-e9c8efca1edf","description":""},{"name":"Flight","item":[{"name":"New Request","id":"6c9685f1-922f-4e5b-9828-6b4d08ab4391","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://untrip-1.onrender.com/flight/api/search-flight?departure=Mumbai&arrival=New Delhi&departureDate=2025-02-06","urlObject":{"protocol":"https","path":["flight","api","search-flight"],"host":["untrip-1","onrender","com"],"query":[{"key":"departure","value":"Mumbai"},{"key":"arrival","value":"New Delhi"},{"key":"departureDate","value":"2025-02-06"},{"disabled":true,"key":"min_price","value":"500"},{"disabled":true,"key":"max_price","value":"800"}],"variable":[]}},"response":[],"_postman_id":"6c9685f1-922f-4e5b-9828-6b4d08ab4391"}],"id":"1237585c-80bc-47d3-ab8c-ef6a78833c01","_postman_id":"1237585c-80bc-47d3-ab8c-ef6a78833c01","description":""}]}