{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35","id":189943991,"html_url":"https://github.com/chukwuemekachm/Maintenance-Tracker/pull/35","diff_url":"https://github.com/chukwuemekachm/Maintenance-Tracker/pull/35.diff","patch_url":"https://github.com/chukwuemekachm/Maintenance-Tracker/pull/35.patch","issue_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/35","number":35,"state":"closed","locked":false,"title":"#157720611 Completes user login endpoint","user":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Completes User login endpoint\r\n#### Description of Task to be completed?\r\n- Write tests for endpoint\r\n- Create POST route to api/v1/auth/login\r\n- Test using Postman\r\n#### How should this be manually tested?\r\n- Clone the repo\r\n- Startup command line\r\n- cd to project directory\r\n- run ``` npm install ```\r\n- run ``` npm run migrate ```\r\n- run ``` npm run start:dev ```\r\n- Test using Postman\r\n#### Any background context you want to provide?\r\n- Add a ``` .env ``` file to the project root\r\n- Add an env_variable ``` DATABASE_URL ``` to the ``` .env ``` and set it to be the URL of the Database you would like to use\r\n#### What are the relevant pivotal tracker stories?\r\n- #157720611\r\n#### Screenshots (if appropriate)\r\n\r\n![screenshot 163](https://user-images.githubusercontent.com/33798252/40421934-7a9fe21c-5e85-11e8-8197-6b52664eb41d.png)\r\n![screenshot 164](https://user-images.githubusercontent.com/33798252/40421954-925bacb0-5e85-11e8-9bbd-a2d0f93a3730.png)\r\n\r\n#### Questions:\r\n- None","created_at":"2018-05-23T11:34:49Z","updated_at":"2018-05-23T11:40:57Z","closed_at":"2018-05-23T11:40:57Z","merged_at":"2018-05-23T11:40:57Z","merge_commit_sha":"b5ac703504173db429524b331ec6d3f8d8295494","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35/commits","review_comments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35/comments","review_comment_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/35/comments","statuses_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/statuses/2b9d3f2623e04e4f963985501bc9cbc66e0927dd","head":{"label":"chukwuemekachm:ft-user-login-endpoint-157720611","ref":"ft-user-login-endpoint-157720611","sha":"2b9d3f2623e04e4f963985501bc9cbc66e0927dd","user":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"repo":{"id":133387421,"name":"Maintenance-Tracker","full_name":"chukwuemekachm/Maintenance-Tracker","owner":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chukwuemekachm/Maintenance-Tracker","description":"Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.","fork":false,"url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker","forks_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/forks","keys_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/teams","hooks_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/hooks","issue_events_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/events{/number}","events_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/events","assignees_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/assignees{/user}","branches_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/branches{/branch}","tags_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/tags","blobs_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/languages","stargazers_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/stargazers","contributors_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/contributors","subscribers_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/subscribers","subscription_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/subscription","commits_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/contents/{+path}","compare_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/merges","archive_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/downloads","issues_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues{/number}","pulls_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/labels{/name}","releases_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/releases{/id}","deployments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/deployments","created_at":"2018-05-14T16:02:01Z","updated_at":"2018-05-22T21:29:28Z","pushed_at":"2018-05-23T11:40:56Z","git_url":"git://github.com/chukwuemekachm/Maintenance-Tracker.git","ssh_url":"git@github.com:chukwuemekachm/Maintenance-Tracker.git","clone_url":"https://github.com/chukwuemekachm/Maintenance-Tracker.git","svn_url":"https://github.com/chukwuemekachm/Maintenance-Tracker","homepage":null,"size":9852,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"chukwuemekachm:develop","ref":"develop","sha":"a9e1da5a6905002f2985f70c784e0529db69f270","user":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"repo":{"id":133387421,"name":"Maintenance-Tracker","full_name":"chukwuemekachm/Maintenance-Tracker","owner":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chukwuemekachm/Maintenance-Tracker","description":"Maintenance Tracker App is an application that provides users with the ability to reach out to operations or repairs department regarding repair or maintenance requests and monitor the status of their request.","fork":false,"url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker","forks_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/forks","keys_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/teams","hooks_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/hooks","issue_events_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/events{/number}","events_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/events","assignees_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/assignees{/user}","branches_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/branches{/branch}","tags_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/tags","blobs_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/languages","stargazers_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/stargazers","contributors_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/contributors","subscribers_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/subscribers","subscription_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/subscription","commits_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/contents/{+path}","compare_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/merges","archive_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/downloads","issues_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues{/number}","pulls_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/labels{/name}","releases_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/releases{/id}","deployments_url":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/deployments","created_at":"2018-05-14T16:02:01Z","updated_at":"2018-05-22T21:29:28Z","pushed_at":"2018-05-23T11:40:56Z","git_url":"git://github.com/chukwuemekachm/Maintenance-Tracker.git","ssh_url":"git@github.com:chukwuemekachm/Maintenance-Tracker.git","clone_url":"https://github.com/chukwuemekachm/Maintenance-Tracker.git","svn_url":"https://github.com/chukwuemekachm/Maintenance-Tracker","homepage":null,"size":9852,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35"},"html":{"href":"https://github.com/chukwuemekachm/Maintenance-Tracker/pull/35"},"issue":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/35"},"comments":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/chukwuemekachm/Maintenance-Tracker/statuses/2b9d3f2623e04e4f963985501bc9cbc66e0927dd"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"chukwuemekachm","id":33798252,"avatar_url":"https://avatars0.githubusercontent.com/u/33798252?v=4","gravatar_id":"","url":"https://api.github.com/users/chukwuemekachm","html_url":"https://github.com/chukwuemekachm","followers_url":"https://api.github.com/users/chukwuemekachm/followers","following_url":"https://api.github.com/users/chukwuemekachm/following{/other_user}","gists_url":"https://api.github.com/users/chukwuemekachm/gists{/gist_id}","starred_url":"https://api.github.com/users/chukwuemekachm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chukwuemekachm/subscriptions","organizations_url":"https://api.github.com/users/chukwuemekachm/orgs","repos_url":"https://api.github.com/users/chukwuemekachm/repos","events_url":"https://api.github.com/users/chukwuemekachm/events{/privacy}","received_events_url":"https://api.github.com/users/chukwuemekachm/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":279,"deletions":5,"changed_files":5}}
{"actor":{"display_login":"chukwuemekachm"}}