{"info":{"_postman_id":"632f03d2-f20c-48ac-b36f-e8275002636d","name":"Blogz-Backend","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24899630","collectionId":"632f03d2-f20c-48ac-b36f-e8275002636d","publishedId":"2sA3XMj3wX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-11T15:46:12.000Z"},"item":[{"name":"Test/Health","item":[{"name":"TestServer","id":"2cddaa3b-7e32-4b68-b3be-2f8671412926","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/test/heatlh","urlObject":{"path":["api","test","heatlh"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2cddaa3b-7e32-4b68-b3be-2f8671412926"}],"id":"8180a477-2406-4049-a5f6-65183febd988","_postman_id":"8180a477-2406-4049-a5f6-65183febd988","description":""},{"name":"UserAuth","item":[{"name":"RegisterUser","id":"ec6fae54-6daf-4660-abed-3cbaf43c8e4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"johndoe3\",\r\n  \"email\": \"joel2219111@sahrdaya.ac.in\",\r\n  \"password\": \"securePassword123\",\r\n  \"role\": \"user\",\r\n  \"avatarUrl\": \"https://example.com/avatar.jpg\",\r\n  \"githubHandle\": \"johndoegithub\",\r\n  \"linkedinHandle\": \"johndoelinkedin\",\r\n  \"joinedDate\": \"2023-06-03T00:00:00.000Z\",\r\n  \"personalWebsite\": \"https://johndoe.com\",\r\n  \"education\": \"B.Sc in Computer Science\",\r\n  \"workPronoun\": \"He/Him\",\r\n  \"about\": \"Software developer with a passion for open-source projects.\",\r\n  \"badges\": [\"badge1\", \"badge2\"],\r\n  \"skills\": [\"JavaScript\", \"React\", \"Node.js\"],\r\n  \"availableFor\": [\"freelance\", \"full-time\"],\r\n  \"currentlyHacking\": \"Building a personal portfolio website\",\r\n  \"location\": \"San Francisco, CA\",\r\n  \"currentlyLearning\": \"TypeScript\",\r\n  \"brandColor\": \"#ff5733\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/auth/user/register","urlObject":{"path":["api","v2","auth","user","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec6fae54-6daf-4660-abed-3cbaf43c8e4a"},{"name":"DeleteAllUsers","id":"4119d76a-8df0-49a6-91f5-7b018fc15249","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/reset-database","urlObject":{"path":["reset-database"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4119d76a-8df0-49a6-91f5-7b018fc15249"},{"name":"LoginUser","event":[{"listen":"test","script":{"id":"dbba178f-d07c-4839-be49-7b123c2fb0e7","exec":["var template = `\r","<style type=\"text/css\">\r","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}\r","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}\r","    .tftable tr {background-color:#ffffff;}\r","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}\r","    .tftable tr:hover {background-color:#e0ffff;}\r","</style>\r","\r","<table class=\"tftable\" border=\"1\">\r","    <tr>\r","        <th>Message</th>\r","        <th>Error</th>\r","    </tr>\r","    <tr>\r","        <td>{{response.message}}</td>\r","        <td>{{response.error}}</td>\r","    </tr>\r","</table>\r","`;\r","\r","function constructVisualizerPayload() {\r","    return { response: pm.response.json() }\r","}\r","\r","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"8872280d-98e2-442b-a245-d7f632ffdbda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"johndoe3\",\r\n    \"password\":\"securePassword123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/auth/user/login","urlObject":{"path":["api","v2","auth","user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8872280d-98e2-442b-a245-d7f632ffdbda"},{"name":"LoginUser Copy","event":[{"listen":"test","script":{"id":"dbba178f-d07c-4839-be49-7b123c2fb0e7","exec":["var template = `\r","<style type=\"text/css\">\r","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}\r","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}\r","    .tftable tr {background-color:#ffffff;}\r","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}\r","    .tftable tr:hover {background-color:#e0ffff;}\r","</style>\r","\r","<table class=\"tftable\" border=\"1\">\r","    <tr>\r","        <th>Message</th>\r","        <th>Error</th>\r","    </tr>\r","    <tr>\r","        <td>{{response.message}}</td>\r","        <td>{{response.error}}</td>\r","    </tr>\r","</table>\r","`;\r","\r","function constructVisualizerPayload() {\r","    return { response: pm.response.json() }\r","}\r","\r","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"b6a7b470-03de-4696-a989-788a86e821e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"joeljaison394@gmail.com\",\r\n    \"password\":\"sample@321\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/auth/user/login","urlObject":{"path":["api","v2","auth","user","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6a7b470-03de-4696-a989-788a86e821e9"},{"name":"LogoutUser","id":"483620c9-2cbf-47b1-b079-f268701f78c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/v2/auth/user/logout","urlObject":{"path":["api","v2","auth","user","logout"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"483620c9-2cbf-47b1-b079-f268701f78c3"},{"name":"RefreshToken","id":"b9f565ff-d221-47c9-a974-442fbb239b19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/v2/auth/user/refresh-token","urlObject":{"path":["api","v2","auth","user","refresh-token"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9f565ff-d221-47c9-a974-442fbb239b19"},{"name":"RequestEmailVerification","id":"148e5431-9440-4740-8d87-79b996f2161f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"identifier\":\"joel221911@sahrdaya.ac.in\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/auth/user/request-email-verification","urlObject":{"path":["api","v2","auth","user","request-email-verification"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"148e5431-9440-4740-8d87-79b996f2161f"},{"name":"VerifyMail","id":"7b137a80-8a42-4475-9408-6b06b1152df5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\":\"2c2b344a64e0d3a7a4aaff54ae5db10c1e0e24e506781ba7531c99e06fd034f2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/auth/user/verify-email","urlObject":{"path":["api","v2","auth","user","verify-email"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b137a80-8a42-4475-9408-6b06b1152df5"}],"id":"9aefcf60-a388-4275-8c5b-5a7cf72e3887","_postman_id":"9aefcf60-a388-4275-8c5b-5a7cf72e3887","description":""},{"name":"production","item":[{"name":"RegisterUser Copy","id":"05d0e673-0752-4c28-bc3a-c2711c5f6f54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"johndoe1\",\r\n  \"email\": \"johndo1e@example.com\",\r\n  \"password\": \"securePassword123\",\r\n  \"role\": \"user\",\r\n  \"avatarUrl\": \"https://example.com/avatar.jpg\",\r\n  \"githubHandle\": \"johndoegithub\",\r\n  \"linkedinHandle\": \"johndoelinkedin\",\r\n  \"joinedDate\": \"2023-06-03T00:00:00.000Z\",\r\n  \"personalWebsite\": \"https://johndoe.com\",\r\n  \"education\": \"B.Sc in Computer Science\",\r\n  \"workPronoun\": \"He/Him\",\r\n  \"about\": \"Software developer with a passion for open-source projects.\",\r\n  \"badges\": [\"badge1\", \"badge2\"],\r\n  \"skills\": [\"JavaScript\", \"React\", \"Node.js\"],\r\n  \"availableFor\": [\"freelance\", \"full-time\"],\r\n  \"currentlyHacking\": \"Building a personal portfolio website\",\r\n  \"location\": \"San Francisco, CA\",\r\n  \"currentlyLearning\": \"TypeScript\",\r\n  \"brandColor\": \"#ff5733\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://bloggz.azurewebsites.net/api/v2/auth/user/register","urlObject":{"path":["api","v2","auth","user","register"],"host":["https://bloggz.azurewebsites.net"],"query":[],"variable":[]}},"response":[],"_postman_id":"05d0e673-0752-4c28-bc3a-c2711c5f6f54"}],"id":"25b15997-5a7f-423d-b94f-37e6ff6b8074","_postman_id":"25b15997-5a7f-423d-b94f-37e6ff6b8074","description":""},{"name":"UserProfile","item":[{"name":"UpdateProfile","id":"1ab10827-6d2b-4057-aa55-f4d7a5f73c57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"personalWebsite\": \"https://new-personal-website.com\",\r\n  \"currentlyLearning\": \"Advanced React.js\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/user/update","urlObject":{"path":["api","v2","user","update"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ab10827-6d2b-4057-aa55-f4d7a5f73c57"}],"id":"262a5700-f468-43a0-8ed9-525f178da1d9","_postman_id":"262a5700-f468-43a0-8ed9-525f178da1d9","description":""},{"name":"PostRecommendation","item":[{"name":"vectorizePosts","id":"86a63f4d-dd5d-496c-8a81-c424711f0d34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/v2/posts/vectorize","urlObject":{"path":["api","v2","posts","vectorize"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"86a63f4d-dd5d-496c-8a81-c424711f0d34"},{"name":"RecommendPosts","id":"f3d83fd0-ed0c-43ed-9dc0-2f0cf812faf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"words\": [\"Adventure\", \"Cuisine\", \"Explore\", \"Wanderlust\", \"Gastronomy\", \"Beaches\", \"Culture\", \"Local\", \"Hiking\", \"Street Food\"]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v2/posts/recommend","urlObject":{"path":["api","v2","posts","recommend"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3d83fd0-ed0c-43ed-9dc0-2f0cf812faf7"}],"id":"fd2bad15-e249-4312-ab0d-6841a63bfa83","_postman_id":"fd2bad15-e249-4312-ab0d-6841a63bfa83","description":""},{"name":"PostRoutes","item":[{"name":"GetAllPosts","id":"d2d06e9b-29db-4d46-ad7d-a89067d825d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"d2d06e9b-29db-4d46-ad7d-a89067d825d0"},{"name":"GetPostById","id":"03244a30-23f1-4e7b-8403-5bc4aace20b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/v2/post/user/getPost/:postId","urlObject":{"path":["api","v2","post","user","getPost",":postId"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"43","key":"postId"}]}},"response":[],"_postman_id":"03244a30-23f1-4e7b-8403-5bc4aace20b1"},{"name":"SearchPost","id":"58e1e545-f8e3-4c1d-8dbf-824f4a85a5be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"58e1e545-f8e3-4c1d-8dbf-824f4a85a5be"}],"id":"9cb353b1-eb21-4417-aeb8-9bd886200e9e","_postman_id":"9cb353b1-eb21-4417-aeb8-9bd886200e9e","description":""}],"variable":[{"key":"Local5000","value":"http://localhost:5000"},{"key":"azure","value":"https://bloggz.azurewebsites.net"}]}