{"info":{"_postman_id":"46aa57ce-6b52-417c-81bf-ecbfd4e6c12f","name":"issue-tracker","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11288390","collectionId":"46aa57ce-6b52-417c-81bf-ecbfd4e6c12f","publishedId":"TVzUCbiU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-13T23:03:02.000Z"},"item":[{"name":"localhost:3001/api/auth/","id":"f05cf1a6-4dbb-4f68-bf18-220bb8e1b284","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"user23@company.com\",\n    \"password\": \"user123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/auth/","description":"<p>Returns authorization token of the registered user.</p>\n","urlObject":{"port":"3001","path":["api","auth",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eb1c813e-3a44-437d-9393-a4207857b000","name":"localhost:3001/api/auth/","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"admin@company.com\",\n    \"password\": \"admin123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/auth/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"204"},{"key":"ETag","value":"W/\"cc-6ZTj+OjzfYlHsvP/SwA63zMqDQc\""},{"key":"Date","value":"Wed, 13 Jan 2021 23:02:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDU3ODkyOH0.nrKXo3f6ZwB6n99hpTvrmYKC1x4HBXihQNy_l_lDWfs"}],"_postman_id":"f05cf1a6-4dbb-4f68-bf18-220bb8e1b284"},{"name":"localhost:3001/api/users/registeruser","id":"a6f6f069-b430-4577-b6f0-fa5bc58471e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidXNlcjIzIiwiZW1haWwiOiJ1c2VyMjNAY29tcGFueS5jb20iLCJjb21wYW55X2lkIjoxLCJpc19hZG1pbiI6ZmFsc2UsImlhdCI6MTYxMDczMzY1OH0.TK_NydMVOdQKW1z7YG9O8wFLCoW4IeJQLodWwOYs96M","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"user23sd\",\n    \"email\" : \"user2dd3@company.com\",\n    \"company_id\": 1,\n    \"is_admin\": false,\n    \"password\": \"user123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/member/registermember","description":"<p>Only admin can add the member to the team. After the member been added to the company an email will be send to member.</p>\n","urlObject":{"port":"3001","path":["api","member","registermember"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3dd1a9c0-4ee7-4d85-9051-72047e9f1d0a","name":"localhost:3001/api/users/registeruser","originalRequest":{"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"user1\",\n    \"email\" : \"user1@company.com\",\n    \"company_id\": 1,\n    \"is_admin\": false,\n    \"password\": \"user123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/users/registeruser"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-sgOuAVCbjx1+BF18XPpM6NVwVlM\""},{"key":"Date","value":"Wed, 13 Jan 2021 23:03:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"User Added Successfully. And Email sent to user with credentials"}],"_postman_id":"a6f6f069-b430-4577-b6f0-fa5bc58471e1"},{"name":"localhost:3001/api/project/","id":"5eff3144-ae06-468c-b793-2dc0bfbd5202","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"project_name\": \"Project1\",\n    \"status_id\": 1,\n    \"member_id\":4,\n    \"role_id\":1\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/project/","description":"<p>Only admin can create Projects</p>\n","urlObject":{"port":"3001","path":["api","project",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5eff3144-ae06-468c-b793-2dc0bfbd5202"},{"name":"localhost:3001/api/admin/deletemember","id":"1a5b42e5-7f41-456e-b2da-5c89c8626db7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","type":"text","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"user1@company.com\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/admin/deletemember","description":"<p>Admin can delete member of the company</p>\n","urlObject":{"port":"3001","path":["api","admin","deletemember"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a5b42e5-7f41-456e-b2da-5c89c8626db7"},{"name":"localhost:3001/api/member/resetpassword","id":"7f500579-d345-494b-b3e6-0718867c0be3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"user1@company.com\",\n    \"password\":\"asdf123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/member/resetpassword","urlObject":{"port":"3001","path":["api","member","resetpassword"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7f500579-d345-494b-b3e6-0718867c0be3"},{"name":"localhost:3001/api/project/assignrole","id":"81f78227-e91f-480e-841c-4a02f668b6ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"project_id\": 3,\n    \"member_id\": 4,\n    \"role_id\":1\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/member/assignrole","description":"<p>Assign roles to member</p>\n","urlObject":{"port":"3001","path":["api","member","assignrole"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"81f78227-e91f-480e-841c-4a02f668b6ce"},{"name":"localhost:3001/api/company/","id":"ef70c3f6-4b4c-4138-a930-ae8cadbb1322","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"company_id\":5,\n    \"company_name\":\"company5\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/api/company/","urlObject":{"port":"3001","path":["api","company",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef70c3f6-4b4c-4138-a930-ae8cadbb1322"},{"name":"localhost:3001/api/member/allmembers","id":"48bce9ba-d09a-485e-8431-469645e26ecf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3001/api/member/allmembers?x-auth-token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA","urlObject":{"port":"3001","path":["api","member","allmembers"],"host":["localhost"],"query":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGNvbXBhbnkuY29tIiwiY29tcGFueV9pZCI6MSwiaXNfYWRtaW4iOnRydWUsImlhdCI6MTYxMDM5MDc1OH0.z7a3wLXkX9SlAylDO3Ib7tHobxZ3JBuQLg6B7yY1mIA"}],"variable":[]}},"response":[],"_postman_id":"48bce9ba-d09a-485e-8431-469645e26ecf"}]}