{"info":{"_postman_id":"8068b36a-f902-4dc3-b2d4-71de74aadb6e","name":"Blog-Server","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<ol>\n<li>Blog Server Rest API development</li>\n<li>GitHub Repo <a href=\"https://github.com/DevStack06/Blog-Server\">Link</a></li>\n</ol>\n<h1 id=\"overview\">Overview</h1>\n<p>All the API which I developed during youtube series video will be published over here Youtube Channel <a href=\"https://www.youtube.com/channel/UCE9YNto5Fc8u7DdOTuCm8rw?view_as=subscriber\">Link</a></p>\n<h1 id=\"note\">Note</h1>\n<ol>\n<li>Documentation is in the development mode :)</li>\n<li>And Also help me to grow this channel please subscribe :)</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Note","slug":"note"}],"owner":"10970931","collectionId":"8068b36a-f902-4dc3-b2d4-71de74aadb6e","publishedId":"T17GgTfe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-06T13:24:59.000Z"},"item":[{"name":"users","item":[{"name":"Register a new User with Blog App","id":"45b8444d-224d-4414-a047-d55955750482","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack06\",\n  \"password\": \"12345\",\n  \"email\":\"devstackin@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/register","description":"<p>Use the dropdown to see the example</p>\n<ol>\n<li>Duplicate Username error</li>\n<li>Successfully username registration</li>\n</ol>\n","urlObject":{"protocol":"https","path":["user","register"],"host":["sheltered-waters-80365","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"0309ec57-8838-47c0-a195-8b6ad232c337","name":"Successfull Registerartion","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack06\",\n  \"password\": \"12345\",\n  \"email\":\"devstackin@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"Etag","value":"W/\"26-NWk1ZUlhmUa5VqEcx6ahRSWU7M0\""},{"key":"Date","value":"Mon, 06 Jul 2020 12:49:31 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"User Successfully Registered\"\n}"},{"id":"0b6e63f1-406b-4efb-8801-bbbd67e375c8","name":"Duplicate Username Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack108\",\n  \"password\": \"12345\",\n  \"email\":\"devstackin@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/register"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"252"},{"key":"Etag","value":"W/\"fc-GDx+vO85ygZwL5CLb1ih8Tl4N9Y\""},{"key":"Date","value":"Mon, 06 Jul 2020 12:46:12 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": {\n        \"driver\": true,\n        \"name\": \"MongoError\",\n        \"index\": 0,\n        \"code\": 11000,\n        \"keyPattern\": {\n            \"username\": 1\n        },\n        \"keyValue\": {\n            \"username\": \"devStack108\"\n        },\n        \"errmsg\": \"E11000 duplicate key error collection: BlogDB.users index: username_1 dup key: { username: \\\"devStack108\\\" }\"\n    }\n}"}],"_postman_id":"45b8444d-224d-4414-a047-d55955750482"},{"name":"Login a User with Blog App","id":"1f5cc181-4377-4159-9fc6-ff4e627e9f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack06\",\n  \"password\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/login","description":"<p>Login a user with blog app and get a token back as a response</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7be3ef4d-7ae2-4fb1-b2df-6c763dc1c2e1","name":"Succesfull Login Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack06\",\n  \"password\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"188"},{"key":"Etag","value":"W/\"bc-3bbV3tHTBoOwreA8TCQBFf7cgck\""},{"key":"Date","value":"Mon, 06 Jul 2020 13:12:46 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTQwNDExNjYsImV4cCI6MTU5NDEyNzU2Nn0.pYR4IzMeOPh4WvfCzhgzIYY8hNzhiXoLs30JEMsoE3k\",\n    \"msg\": \"success\"\n}"},{"id":"7f5850ae-ac46-4161-a745-bd3f417098e9","name":"Incorrect Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack06\",\n  \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/login"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"23"},{"key":"Etag","value":"W/\"17-NbKOHzveK03+ViU/L+QgCriTDio\""},{"key":"Date","value":"Wed, 08 Jul 2020 06:44:51 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"\"password is incorrect\""},{"id":"ac223fe6-622e-410d-9fba-0bff90906d0e","name":"Incorrect Username","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"username\": \"devStack07\",\n  \"password\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"https://sheltered-waters-80365.herokuapp.com/user/login"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"20"},{"key":"Etag","value":"W/\"14-nWFZGkoGsmeqNxkH45XDMEBLy/Y\""},{"key":"Date","value":"Wed, 08 Jul 2020 06:47:12 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"\"Username incorrect\""}],"_postman_id":"1f5cc181-4377-4159-9fc6-ff4e627e9f79"},{"name":"Check Username Uniqueness","id":"5c56e627-7d5b-4a3e-960a-c47a5defc3cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sheltered-waters-80365.herokuapp.com/user/checkusername/devStack","description":"<p>Check the username is exist in database or not</p>\n","urlObject":{"protocol":"https","path":["user","checkusername","devStack"],"host":["sheltered-waters-80365","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"52caa58a-ac6a-47f0-ab9d-75f5d87cf62e","name":"If Username is exist in database","originalRequest":{"method":"GET","header":[],"url":"https://sheltered-waters-80365.herokuapp.com/user/checkusername/devStack103"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"Etag","value":"W/\"f-z/O9WX3pukwNLINqM0mIX+83nso\""},{"key":"Date","value":"Mon, 06 Jul 2020 13:17:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": true\n}"},{"id":"5d2bb25b-f36e-4bb3-a0bd-150ea60454bf","name":"If username will not found","originalRequest":{"method":"GET","header":[],"url":"https://sheltered-waters-80365.herokuapp.com/user/checkusername/devStack"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Etag","value":"W/\"10-+hmC2UWrozeJoMXwLr6ZGC6BxCY\""},{"key":"Date","value":"Mon, 06 Jul 2020 13:18:13 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": false\n}"}],"_postman_id":"5c56e627-7d5b-4a3e-960a-c47a5defc3cd"}],"id":"7b92fbfe-05a4-4e42-ac19-79ed81418174","description":"<p>The API documentation related to user like -:</p>\n<ol>\n<li>SignIn/SignUp a user with blog app. </li>\n<li>Checking the User uniqueness</li>\n</ol>\n<p>will go here\n                                                            </p>\n","_postman_id":"7b92fbfe-05a4-4e42-ac19-79ed81418174"},{"name":"Profile","item":[{"name":"Post Profile data","id":"a88e3387-691f-4057-9b37-7bd419396b7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTM5NDEsImV4cCI6MTU5NjI4MDM0MX0.7e_teGV-fNinYM3cQ2rwUTB9P-2pU-Vq_BmPXjG4Is8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Dev Stack\",\r\n    \"profession\": \"Full Stack Developer\",\r\n    \"DOB\": \"01/01/1900\",\r\n    \"titleline\":\"Full Stack || MERN Stack Developer\",\r\n    \"about\": \"Subscribe to Dev Stack Youtube Channle :)\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/profile/add","urlObject":{"protocol":"http","port":"5000","path":["profile","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a8ddde24-8555-47c7-8f7e-e9115527a800","name":"Post Profile data (Successfully stored)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTM5NDEsImV4cCI6MTU5NjI4MDM0MX0.7e_teGV-fNinYM3cQ2rwUTB9P-2pU-Vq_BmPXjG4Is8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Dev Stack\",\r\n    \"profession\": \"Full Stack Developer\",\r\n    \"DOB\": \"01/01/1900\",\r\n    \"titleline\":\"Full Stack || MERN Stack Developer\",\r\n    \"about\": \"Subscribe to Dev Stack Youtube Channle :)\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/profile/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-5JyMbbNbvmCKX19DoUzDU4DFucs\""},{"key":"Date","value":"Fri, 31 Jul 2020 11:15:48 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"profile successfully stored\"\n}"}],"_postman_id":"a88e3387-691f-4057-9b37-7bd419396b7b"},{"name":"Image Url Update","id":"efce06d4-9439-4147-868a-95cb56e2151b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTQ0NzIsImV4cCI6MTU5NjI4MDg3Mn0.i6HeixsmR68LHRk9eLcBJRP91agGaNsYKZi3-rXMr_A","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"img","type":"file","src":"/E:/Youtube-Work/profile_pic/devStack06.jpg"}]},"url":"http://localhost:5000/profile/add/image","description":"<p>TO update the Image URl </p>\n","urlObject":{"protocol":"http","port":"5000","path":["profile","add","image"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6c3cd86b-083d-4907-b63b-5f9b8408c234","name":"Image Url Update (Successfully Image Update)","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTQ0NzIsImV4cCI6MTU5NjI4MDg3Mn0.i6HeixsmR68LHRk9eLcBJRP91agGaNsYKZi3-rXMr_A","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"img","type":"file","src":"/E:/Youtube-Work/profile_pic/devStack06.jpg"}]},"url":"http://localhost:5000/profile//add/image"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"ETag","value":"W/\"147-e6USJsMm6fYI9cHfhgD1otpy56g\""},{"key":"Date","value":"Fri, 31 Jul 2020 11:21:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"image added successfully updated\",\n    \"data\": {\n        \"img\": \"uploads\\\\devStack06.jpg\",\n        \"_id\": \"5f23fd64d3a1c9527cfded46\",\n        \"username\": \"devStack06\",\n        \"name\": \"Dev Stack\",\n        \"profession\": \"Full Stack Developer\",\n        \"DOB\": \"01/01/1900\",\n        \"titleline\": \"Full Stack || MERN Stack Developer\",\n        \"about\": \"Subscribe to Dev Stack Youtube Channle :)\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"efce06d4-9439-4147-868a-95cb56e2151b"},{"name":"Check Profile Data","id":"3b5ea5f0-a1d2-48a4-958a-c266eac31225","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTQ4ODAsImV4cCI6MTU5NjI4MTI4MH0.Nub5FMp-FrhgQ2bsiOGrDL85Mbeev5Tx9hd2zG1dBh4","type":"text"}],"url":"http://localhost:5000/profile/checkProfile","urlObject":{"protocol":"http","port":"5000","path":["profile","checkProfile"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"58c16bcb-1815-44e3-a8ce-32dfdf3f4b64","name":"Check Profile Data (If Tokrn Invald)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTQ4ODAsImV4cCI6MTU5NjI4MTI4MH0.Nub5FMp-FrhgQ2bsiOGrDL85Mbeev5Tx9hd2zG1dBh4","type":"text"}],"url":"http://localhost:5000/profile/checkProfile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-EoDZi14l8HVueVpzaiO8953WidQ\""},{"key":"Date","value":"Sat, 10 Oct 2020 04:57:35 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"msg\": \"token is invalid\"\n}"},{"id":"97cfe9ca-64c5-44ff-93b7-f4002a242d5b","name":"Check Profile Data (Profile Data Exist)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTYxOTQ4ODAsImV4cCI6MTU5NjI4MTI4MH0.Nub5FMp-FrhgQ2bsiOGrDL85Mbeev5Tx9hd2zG1dBh4","type":"text"}],"url":"http://localhost:5000/profile/checkProfile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-NQVRlQfKHCoInEbhALgECMonhCE\""},{"key":"Date","value":"Fri, 31 Jul 2020 11:28:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true\n}"}],"_postman_id":"3b5ea5f0-a1d2-48a4-958a-c266eac31225"},{"name":"Get Image","id":"413260c3-482a-44ff-be60-a27da8e0e423","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"413260c3-482a-44ff-be60-a27da8e0e423"},{"name":"getData","id":"bab21dd1-5c50-4082-94a9-78662ecc58ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/profile/getData","urlObject":{"protocol":"http","port":"5000","path":["profile","getData"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ba04cb3f-f218-43a6-a0a0-dcca6d4df42a","name":"getData","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/profile/getData"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"ETag","value":"W/\"10b-Y3CNepsWMxFbdvmcLBsSu2cFbSU\""},{"key":"Date","value":"Sat, 10 Oct 2020 04:57:11 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"img\": \"uploads\\\\devStack06.jpg\",\n        \"_id\": \"5f2edd763487b1497c90acce\",\n        \"username\": \"devStack06\",\n        \"name\": \"Dev Check\",\n        \"profession\": \"hello\",\n        \"DOB\": \"01/01/1900\",\n        \"titleline\": \"Full Stack || MERN Stack Developer\",\n        \"about\": \"Subscribe to Dev Stack Youtube Channle :)\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"bab21dd1-5c50-4082-94a9-78662ecc58ce"},{"name":"update","id":"7a03ceb7-532a-4600-87c1-b8cf9fec68b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTY5MDQzMDB9.VEr3xhG0-J7ubWfFta9oIREIYk5G-k9rW3laJQS8yyQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Dev Check\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/profile/update","urlObject":{"protocol":"http","port":"5000","path":["profile","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a03ceb7-532a-4600-87c1-b8cf9fec68b7"}],"id":"131efc07-033c-486a-9dc9-2db30eb74881","_postman_id":"131efc07-033c-486a-9dc9-2db30eb74881","description":""},{"name":"BlogPost","item":[{"name":"Post Blog Data","id":"4ff3986b-101e-4890-a365-c5398dc52c1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"hey its blog\",\r\n    \"body\":\"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/blogpost/Add","urlObject":{"protocol":"http","port":"5000","path":["blogpost","Add"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"95a01038-e818-43a0-a671-82c714faafad","name":"Post Blog Data (Example)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"hey its blog\",\r\n    \"body\":\"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/blogpost/Add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"174"},{"key":"ETag","value":"W/\"ae-ZvrqGEnIIwEauoURkh/L9r9MC38\""},{"key":"Date","value":"Mon, 05 Oct 2020 15:25:09 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"coverImage\": \"\",\n        \"_id\": \"5f7b3ad5dce5e66bbcdf032d\",\n        \"username\": \"devStack06\",\n        \"title\": \"hey its blog\",\n        \"body\": \"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"4ff3986b-101e-4890-a365-c5398dc52c1d"},{"name":"CoverImage","id":"5bcdfaaa-92e3-4960-85b3-df9db0f2db35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"img","type":"file","src":"/C:/Users/balra/OneDrive/Pictures/banner.jpg"}]},"url":"http://localhost:5000/blogpost/add/coverImage/12345","urlObject":{"protocol":"http","port":"5000","path":["blogpost","add","coverImage","12345"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bcdfaaa-92e3-4960-85b3-df9db0f2db35"},{"name":"get own data","id":"7869fe6c-7582-4f6e-be74-41e63cff1f8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogpost/getOwnBlog","urlObject":{"protocol":"http","port":"5000","path":["blogpost","getOwnBlog"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3c089aaf-f792-4ed4-b58c-678406f728fb","name":"get own data","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogpost/getOwnBlog"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"508"},{"key":"ETag","value":"W/\"1fc-3JW6301SzIJ7dcJzG8sIlXhUXbw\""},{"key":"Date","value":"Sat, 10 Oct 2020 04:54:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"coverImage\": \"\",\n            \"_id\": \"5f4b3df00881561f74e671f2\",\n            \"username\": \"devStack06\",\n            \"title\": \"hey its blog\",\n            \"body\": \"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\",\n            \"__v\": 0\n        },\n        {\n            \"coverImage\": \"\",\n            \"_id\": \"5f4b3ed0fed09f0318d0c14f\",\n            \"username\": \"devStack06\",\n            \"title\": \"hey its blog\",\n            \"body\": \"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\",\n            \"__v\": 0\n        },\n        {\n            \"coverImage\": \"\",\n            \"_id\": \"5f7b3ad5dce5e66bbcdf032d\",\n            \"username\": \"devStack06\",\n            \"title\": \"hey its blog\",\n            \"body\": \"hgfh hgfhfgh jhjhgjh gfddf gfdfdf gjjhj fdfd gfdgf\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"7869fe6c-7582-4f6e-be74-41e63cff1f8e"},{"name":"delete blog","id":"fc067c58-b621-4e5f-b02a-b322ff7b5dc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogPost/delete/5f9fd4bcdd9efa001677d382","urlObject":{"protocol":"http","port":"5000","path":["blogPost","delete","5f9fd4bcdd9efa001677d382"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"81c0f67c-7169-445f-9766-ae43b031b8bd","name":"delete blog (Not Deleted)","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogPost/delete/5f9fd4bcdd9efa001677d382"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"18"},{"key":"ETag","value":"W/\"12-g9uw1CeqRz/S0wBZcpjw8vCNdys\""},{"key":"Date","value":"Mon, 09 Nov 2020 06:54:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Blog not deleted\""}],"_postman_id":"fc067c58-b621-4e5f-b02a-b322ff7b5dc4"},{"name":"get data other blog","id":"b3f7e7c0-613a-4bcd-9599-58bf875a09ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogpost/getOtherBlog","urlObject":{"protocol":"http","port":"5000","path":["blogpost","getOtherBlog"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3387222a-307b-42e9-9fea-c58016bc6db8","name":"exmple response","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTg3NjY1Mzd9.4oIAPe_9N6oE9Tnr3bJSHV6CtBeS_1IMWretp8i1tx0","type":"text"}],"url":"http://localhost:5000/blogpost/getOtherBlog"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"719"},{"key":"ETag","value":"W/\"2cf-SSNC5QqkAwkyfQHux/Xp80L8EzE\""},{"key":"Date","value":"Mon, 09 Nov 2020 06:53:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"coverImage\": \"uploads/5f9fd4bcdd9efa001677d382.jpg\",\n            \"like\": 0,\n            \"share\": 0,\n            \"comment\": 0,\n            \"_id\": \"5f9fd4bcdd9efa001677d382\",\n            \"username\": \"oladosu\",\n            \"title\": \"first post, I know dynonis gonna remove it soon \",\n            \"body\": \"This is the first pis \",\n            \"__v\": 0\n        },\n        {\n            \"coverImage\": \"uploads/5f9fd502dd9efa001677d383.jpg\",\n            \"like\": 0,\n            \"share\": 0,\n            \"comment\": 0,\n            \"_id\": \"5f9fd502dd9efa001677d383\",\n            \"username\": \"oladosu\",\n            \"title\": \"second post, let's see how it goes... this is a test \",\n            \"body\": \"Tg is is a \",\n            \"__v\": 0\n        },\n        {\n            \"coverImage\": \"uploads/5f9fd548dd9efa001677d384.jpg\",\n            \"like\": 0,\n            \"share\": 0,\n            \"comment\": 0,\n            \"_id\": \"5f9fd548dd9efa001677d384\",\n            \"username\": \"oladosu\",\n            \"title\": \"jump or jump... no going back. a better time. \",\n            \"body\": \"This is a better time lye\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"b3f7e7c0-613a-4bcd-9599-58bf875a09ab"}],"id":"a29dd36e-e08d-4fd9-a25f-4233ec5fcb70","_postman_id":"a29dd36e-e08d-4fd9-a25f-4233ec5fcb70","description":""}]}