{"info":{"_postman_id":"3be84b0a-9563-4cc5-8120-2d6eec306510","name":"Quadro API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>API for Quadro - DSC Summer Project</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Used JWT for authentication</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>200 - Success\n400 - Backend Authentication error\n500 - server error\n404 - not found</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"6334076","collectionId":"3be84b0a-9563-4cc5-8120-2d6eec306510","publishedId":"S1a1bUuq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-06-23T12:04:45.000Z"},"item":[{"name":"auth","item":[{"name":"Signup","id":"22c53056-0bd0-4a37-8ec2-63a28e05c895","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      name: \"Nikhil Singh\",\n      email: \"nikhilsingh498@gmail.com\",\n      dob: \"14/07/2000\",\n      gender: \"Male\",\n      password: \"somePassword\",\n      experience: 4,\n      domain: \"Web technology\",\n    }"},"url":"https://dscquadro.herokuapp.com/auth/signup","description":"<p>Signup</p>\n","urlObject":{"protocol":"https","path":["auth","signup"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9ec0b487-39d3-4d51-a084-f8643fb16e88","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      name: \"Nikhil Singh\",\n      email: \"nikhilsingh498@gmail.com\",\n      dob: \"14/07/2000\",\n      gender: \"Male\",\n      password: \"somePassword\",\n      experience: 4,\n      domain: \"Web technology\",\n    }"},"url":"/auth/signup"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n          status: 200,\n          message: 'You were successfully signed up',\n        }"}],"_postman_id":"22c53056-0bd0-4a37-8ec2-63a28e05c895"},{"name":"Login","id":"d20c83cd-5b75-4ca6-b280-7c7a06623426","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    email: \"nikhilsingh498@gmali.com\", \n    password: \"some-password\"\n}"},"url":"https://dscquadro.herokuapp.com/auth/login","description":"<p>Login</p>\n","urlObject":{"protocol":"https","path":["auth","login"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"9f053ffe-b40f-4635-aafb-16b4f7ffaec9","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    email: \"nikhilsingh498@gmali.com\", \n    password: \"some-password\"\n}"},"url":"/auth/login"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                    status : 200,\n                    token : token,\n                    message : \"Success, the password matched successfully\"\n                }"}],"_postman_id":"d20c83cd-5b75-4ca6-b280-7c7a06623426"},{"name":"Reset Password","id":"e2936cbc-d2af-4904-a6b4-eb0b70005b2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ email : \"nikhilsingh498@gmail.com\"}"},"url":"https://dscquadro.herokuapp.com/auth/resetpassword","description":"<p>Reset Password</p>\n","urlObject":{"protocol":"https","path":["auth","resetpassword"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"5e006d51-fc80-4420-a759-7135ed818a4f","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ email : \"nikhilsingh498@gmail.com\"}"},"url":"/auth/resetpassword"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                            status : 200,\n                            message : \"New password has been sent to your registered email-id\"\n                        }"}],"_postman_id":"e2936cbc-d2af-4904-a6b4-eb0b70005b2b"}],"id":"6e4a27e7-bf42-416e-bc94-7691a51c336a","_postman_id":"6e4a27e7-bf42-416e-bc94-7691a51c336a","description":""},{"name":"profile edit ","item":[{"name":"Update description","id":"2e789b9c-00be-494e-8fb9-cedb4e92c22a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ description : \"This is the updated description\"}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/description","description":"<p>Update description</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","description"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a3e5e091-ba6b-4e50-9b3d-970726d71d0e","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ description : \"This is the updated description\"}"},"url":"/secure/profile/edit/description"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Successfully updated the profile - description\"\n            }"}],"_postman_id":"2e789b9c-00be-494e-8fb9-cedb4e92c22a"},{"name":"Update experience","id":"250a31b8-0fbc-4335-af98-c7887d4bdceb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ experience : 5}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/experience","description":"<p>Update experience</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","experience"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"c78261d8-d93b-4074-8c96-3bac217b7686","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ experience : 5}"},"url":"/secure/profile/edit/experience"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Successfully updated the profile - experience\"\n            }"}],"_postman_id":"250a31b8-0fbc-4335-af98-c7887d4bdceb"},{"name":"Update domain","id":"424a9cfb-ade2-4bf0-8a73-5584628328d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\" : \"test@test.com\",\n\t\"rating\" : 5\n}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/rating","description":"<p>Update domain</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","rating"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e978f5a2-c754-43a1-940f-5d265194e92b","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ domain : \"Updated domain\"}"},"url":"/secure/profile/edit/domain"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Successfully updated the profile - domain\"\n            }"}],"_postman_id":"424a9cfb-ade2-4bf0-8a73-5584628328d7"},{"name":"Update password","id":"6ee4e1e5-1cbc-4359-91fb-5de165ee2b31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ password : \"Updated Password\"}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/password","description":"<p>Update password</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","password"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"921447c1-6798-4cc0-993a-adc0f4c0fe45","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ password : \"Updated Password\"}"},"url":"/secure/profile/edit/password"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Successfully updated the profile - password\"\n            }"}],"_postman_id":"6ee4e1e5-1cbc-4359-91fb-5de165ee2b31"},{"name":"Update name","id":"04df6ce0-7d0e-4f2f-8383-49522fa64301","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ name : \"hello\"}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/name","description":"<p>Update name</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","name"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"d21ee7c9-7f1f-4bf1-a37d-fafe81a70e0a","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ name : \"hello\"}"},"url":"/secure/profile/edit/name"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Successfully updated the profile - name\"\n            }"}],"_postman_id":"04df6ce0-7d0e-4f2f-8383-49522fa64301"},{"name":"Update rating","id":"3e0bb323-efd3-4f15-be76-e4d4cb78274a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\" : \"nikhilsingh498@gmail.com\",\n\t\"rating\" : 5\n}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/rating","description":"<p>For posting rating</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","rating"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e0bb323-efd3-4f15-be76-e4d4cb78274a"},{"name":"Update avatar","id":"990a96cf-ee6e-4a88-8ffa-f40a01ce15a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/avatar","description":"<p>Pass file data to update the profile image, in return get the updated image url </p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","avatar"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"990a96cf-ee6e-4a88-8ffa-f40a01ce15a4"},{"name":"Update availability","id":"0ef4badf-6ae4-4efa-a12f-589d9bfdbf53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"available\" : false\n}"},"url":"https://dscquadro.herokuapp.com/secure/profile/edit/availability","description":"<p>To toggle availability</p>\n","urlObject":{"protocol":"https","path":["secure","profile","edit","availability"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ef4badf-6ae4-4efa-a12f-589d9bfdbf53"}],"id":"a21976f6-ab60-43b7-912d-0a193361423e","_postman_id":"a21976f6-ab60-43b7-912d-0a193361423e","description":""},{"name":"open","item":[{"name":"Home","id":"fa1dfe7a-0771-43c3-8fe6-e4ceaabb4e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"None"},"url":"https://dscquadro.herokuapp.com/","description":"<p>Home page </p>\n","urlObject":{"protocol":"https","path":[""],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"28f33cce-197f-430b-8f5c-cd75147c38b2","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"None"},"url":"/"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n        status: 200,\n        message: 'This is the home page'\n    }"}],"_postman_id":"fa1dfe7a-0771-43c3-8fe6-e4ceaabb4e79"},{"name":"About","id":"1ce22a60-db69-4127-8804-0f38da9b9794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"None"},"url":"https://dscquadro.herokuapp.com/about","description":"<p>About page</p>\n","urlObject":{"protocol":"https","path":["about"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2f271ebc-d2b7-404a-80b3-b6ba0412f1f2","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"None"},"url":"/about"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n        status : 200,\n        message : \"This is the about route\"\n    }"}],"_postman_id":"1ce22a60-db69-4127-8804-0f38da9b9794"},{"name":"Domains","id":"77f282e7-5852-46c9-b8c9-00c483a142e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://dscquadro.herokuapp.com/domains","description":"<p>To get list of domains</p>\n","urlObject":{"protocol":"https","path":["domains"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77f282e7-5852-46c9-b8c9-00c483a142e9"}],"id":"6bfa4d3c-f692-4590-b98e-153067945999","_postman_id":"6bfa4d3c-f692-4590-b98e-153067945999","description":""},{"name":"filter and other protected routes","item":[{"name":"Filter","id":"2765e8a9-bf0b-47d7-aeec-7522c0475cc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"https://dscquadro.herokuapp.com/secure/filterdata?sort=-_id&limit=10&query={}","description":"<p>For filtering data</p>\n<ul>\n<li>sorts : by default as keeping the latest entry at top</li>\n<li>limit : the data sent in JSON payload on single request (if required entire data remove the param)</li>\n<li>query : pass mongodb query in JSON format</li>\n</ul>\n","urlObject":{"protocol":"https","path":["secure","filterdata"],"host":["dscquadro","herokuapp","com"],"query":[{"key":"sort","value":"-_id"},{"key":"limit","value":"10"},{"key":"query","value":"{}"}],"variable":[]}},"response":[],"_postman_id":"2765e8a9-bf0b-47d7-aeec-7522c0475cc1"},{"name":"Image upload","id":"0c81a9ea-2ec6-4d74-9b53-dee85727d075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ image: file_data }"},"url":"https://dscquadro.herokuapp.com/secure/imageUpload","description":"<p>Image uplaod</p>\n","urlObject":{"protocol":"https","path":["secure","imageUpload"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a5cec3ed-7dc4-4f82-8857-20c004a4b805","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ image: file_data }"},"url":"/secure/imageUpload"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n                status : 200,\n                message : \"Profile pic was successfully updated\",\n                image_url : request.file.url,\n            }"}],"_postman_id":"0c81a9ea-2ec6-4d74-9b53-dee85727d075"},{"name":"Connect request","id":"7ce64ec0-dfef-4023-aba3-a6053647d193","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E"}],"body":{"mode":"raw","raw":"{\n\t\"email\" : \"nikhilsingh498@gmail.com\"\n}"},"url":"https://dscquadro.herokuapp.com/secure/connect","description":"<p>To connect with different user, pass the email id of another user in the body (sends email as well)</p>\n","urlObject":{"protocol":"https","path":["secure","connect"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ce64ec0-dfef-4023-aba3-a6053647d193"},{"name":"Get received requests","id":"c4c4eeb1-b96e-4b4b-8010-b06c62f483b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E"}],"url":"https://dscquadro.herokuapp.com/secure/getrecreq","description":"<p>To get the list of received work request</p>\n","urlObject":{"protocol":"https","path":["secure","getrecreq"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c4c4eeb1-b96e-4b4b-8010-b06c62f483b3"},{"name":"Get sent requests","id":"79e74317-4d42-4be2-9c98-531dfef63828","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJpYXQiOjE1NjEyNDgyMTl9.72ssLjjKFhNEX397D0IVlZDem33joyg51FSP9LKR42E","type":"text"}],"url":"https://dscquadro.herokuapp.com/secure/getsentreq","description":"<p>To get the list of sent requests</p>\n","urlObject":{"protocol":"https","path":["secure","getsentreq"],"host":["dscquadro","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"79e74317-4d42-4be2-9c98-531dfef63828"}],"id":"16f46382-781e-4745-8eae-ed2d4e97b849","_postman_id":"16f46382-781e-4745-8eae-ed2d4e97b849","description":""}]}