{"action":"created","comment":{"url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/comments/229593016","pull_request_review_id":170126881,"id":229593016,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTU5MzAxNg==","diff_hunk":"@@ -78,8 +84,11 @@ def post(self):\n         password = data.get('password')\n \n         if not user_object.verify_user(email,password):\n-            return {'message':'wrong email or password'}\n+            return jsonify(dict(message = \"wrong email or password\"))","path":"app/api/v2/views/users_endpoint.py","position":71,"original_position":71,"commit_id":"5fc2247e70513bf24f770c23a6a9b140115339dc","original_commit_id":"5fc2247e70513bf24f770c23a6a9b140115339dc","user":{"login":"kmunene","id":16057093,"node_id":"MDQ6VXNlcjE2MDU3MDkz","avatar_url":"https://avatars2.githubusercontent.com/u/16057093?v=4","gravatar_id":"","url":"https://api.github.com/users/kmunene","html_url":"https://github.com/kmunene","followers_url":"https://api.github.com/users/kmunene/followers","following_url":"https://api.github.com/users/kmunene/following{/other_user}","gists_url":"https://api.github.com/users/kmunene/gists{/gist_id}","starred_url":"https://api.github.com/users/kmunene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmunene/subscriptions","organizations_url":"https://api.github.com/users/kmunene/orgs","repos_url":"https://api.github.com/users/kmunene/repos","events_url":"https://api.github.com/users/kmunene/events{/privacy}","received_events_url":"https://api.github.com/users/kmunene/received_events","type":"User","site_admin":false},"body":"Use a dictionary eg. {\"message\": \"wrong email or password\"}","created_at":"2018-10-31T08:00:33Z","updated_at":"2018-10-31T08:00:33Z","html_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6#discussion_r229593016","pull_request_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/comments/229593016"},"html":{"href":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6#discussion_r229593016"},"pull_request":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6","id":227177616,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MTc3NjE2","html_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6","diff_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6.diff","patch_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6.patch","issue_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/6","number":6,"state":"open","locked":false,"title":"#161568013 add jwt to endpoints","user":{"login":"MbugwaSami","id":28189816,"node_id":"MDQ6VXNlcjI4MTg5ODE2","avatar_url":"https://avatars1.githubusercontent.com/u/28189816?v=4","gravatar_id":"","url":"https://api.github.com/users/MbugwaSami","html_url":"https://github.com/MbugwaSami","followers_url":"https://api.github.com/users/MbugwaSami/followers","following_url":"https://api.github.com/users/MbugwaSami/following{/other_user}","gists_url":"https://api.github.com/users/MbugwaSami/gists{/gist_id}","starred_url":"https://api.github.com/users/MbugwaSami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MbugwaSami/subscriptions","organizations_url":"https://api.github.com/users/MbugwaSami/orgs","repos_url":"https://api.github.com/users/MbugwaSami/repos","events_url":"https://api.github.com/users/MbugwaSami/events{/privacy}","received_events_url":"https://api.github.com/users/MbugwaSami/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\n_This PR adds chores to current running endpoints _\r\n\r\n**Description of Task to be completed:**\r\n_Add JWT tokens to user endpoints_\r\n_Add JWT tokens to products endpoints_\r\n\r\n**How to manually test**\r\n- git clone https://github.com/MbugwaSami/ADC3-Store-Manager-Api.git\r\n- cd ADC3-Store-Manager-Api\r\n- pip install virtualenv\r\n- source venv/scripts/activate\r\n- git checkout  ch-setup-application-#161469685\r\n- python run.py to run the app\r\n\r\n**Relevant PT story**\r\n#161568013","created_at":"2018-10-31T06:53:47Z","updated_at":"2018-10-31T08:00:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c78e0392d869a1ce426d29610deeb94749664ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6/commits","review_comments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6/comments","review_comment_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/6/comments","statuses_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/statuses/5fc2247e70513bf24f770c23a6a9b140115339dc","head":{"label":"MbugwaSami:ch-add-jwt-to-endpoints-161568013","ref":"ch-add-jwt-to-endpoints-161568013","sha":"5fc2247e70513bf24f770c23a6a9b140115339dc","user":{"login":"MbugwaSami","id":28189816,"node_id":"MDQ6VXNlcjI4MTg5ODE2","avatar_url":"https://avatars1.githubusercontent.com/u/28189816?v=4","gravatar_id":"","url":"https://api.github.com/users/MbugwaSami","html_url":"https://github.com/MbugwaSami","followers_url":"https://api.github.com/users/MbugwaSami/followers","following_url":"https://api.github.com/users/MbugwaSami/following{/other_user}","gists_url":"https://api.github.com/users/MbugwaSami/gists{/gist_id}","starred_url":"https://api.github.com/users/MbugwaSami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MbugwaSami/subscriptions","organizations_url":"https://api.github.com/users/MbugwaSami/orgs","repos_url":"https://api.github.com/users/MbugwaSami/repos","events_url":"https://api.github.com/users/MbugwaSami/events{/privacy}","received_events_url":"https://api.github.com/users/MbugwaSami/received_events","type":"User","site_admin":false},"repo":{"id":154600724,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ2MDA3MjQ=","name":"ADC3-Store-Manager-Api","full_name":"MbugwaSami/ADC3-Store-Manager-Api","private":false,"owner":{"login":"MbugwaSami","id":28189816,"node_id":"MDQ6VXNlcjI4MTg5ODE2","avatar_url":"https://avatars1.githubusercontent.com/u/28189816?v=4","gravatar_id":"","url":"https://api.github.com/users/MbugwaSami","html_url":"https://github.com/MbugwaSami","followers_url":"https://api.github.com/users/MbugwaSami/followers","following_url":"https://api.github.com/users/MbugwaSami/following{/other_user}","gists_url":"https://api.github.com/users/MbugwaSami/gists{/gist_id}","starred_url":"https://api.github.com/users/MbugwaSami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MbugwaSami/subscriptions","organizations_url":"https://api.github.com/users/MbugwaSami/orgs","repos_url":"https://api.github.com/users/MbugwaSami/repos","events_url":"https://api.github.com/users/MbugwaSami/events{/privacy}","received_events_url":"https://api.github.com/users/MbugwaSami/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api","description":null,"fork":false,"url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api","forks_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/forks","keys_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/teams","hooks_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/hooks","issue_events_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/events{/number}","events_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/events","assignees_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/assignees{/user}","branches_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/branches{/branch}","tags_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/tags","blobs_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/refs{/sha}","trees_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/statuses/{sha}","languages_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/languages","stargazers_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/stargazers","contributors_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/contributors","subscribers_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/subscribers","subscription_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/subscription","commits_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/commits{/sha}","git_commits_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/commits{/sha}","comments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/comments{/number}","issue_comment_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/comments{/number}","contents_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/contents/{+path}","compare_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/merges","archive_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/downloads","issues_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues{/number}","pulls_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls{/number}","milestones_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/milestones{/number}","notifications_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/labels{/name}","releases_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/releases{/id}","deployments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/deployments","created_at":"2018-10-25T02:52:15Z","updated_at":"2018-10-29T18:00:15Z","pushed_at":"2018-10-31T06:57:11Z","git_url":"git://github.com/MbugwaSami/ADC3-Store-Manager-Api.git","ssh_url":"git@github.com:MbugwaSami/ADC3-Store-Manager-Api.git","clone_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api.git","svn_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api","homepage":null,"size":52,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"MbugwaSami:develop","ref":"develop","sha":"37f9178679a736cab6c5b44d3f14070a4e5574b2","user":{"login":"MbugwaSami","id":28189816,"node_id":"MDQ6VXNlcjI4MTg5ODE2","avatar_url":"https://avatars1.githubusercontent.com/u/28189816?v=4","gravatar_id":"","url":"https://api.github.com/users/MbugwaSami","html_url":"https://github.com/MbugwaSami","followers_url":"https://api.github.com/users/MbugwaSami/followers","following_url":"https://api.github.com/users/MbugwaSami/following{/other_user}","gists_url":"https://api.github.com/users/MbugwaSami/gists{/gist_id}","starred_url":"https://api.github.com/users/MbugwaSami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MbugwaSami/subscriptions","organizations_url":"https://api.github.com/users/MbugwaSami/orgs","repos_url":"https://api.github.com/users/MbugwaSami/repos","events_url":"https://api.github.com/users/MbugwaSami/events{/privacy}","received_events_url":"https://api.github.com/users/MbugwaSami/received_events","type":"User","site_admin":false},"repo":{"id":154600724,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ2MDA3MjQ=","name":"ADC3-Store-Manager-Api","full_name":"MbugwaSami/ADC3-Store-Manager-Api","private":false,"owner":{"login":"MbugwaSami","id":28189816,"node_id":"MDQ6VXNlcjI4MTg5ODE2","avatar_url":"https://avatars1.githubusercontent.com/u/28189816?v=4","gravatar_id":"","url":"https://api.github.com/users/MbugwaSami","html_url":"https://github.com/MbugwaSami","followers_url":"https://api.github.com/users/MbugwaSami/followers","following_url":"https://api.github.com/users/MbugwaSami/following{/other_user}","gists_url":"https://api.github.com/users/MbugwaSami/gists{/gist_id}","starred_url":"https://api.github.com/users/MbugwaSami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MbugwaSami/subscriptions","organizations_url":"https://api.github.com/users/MbugwaSami/orgs","repos_url":"https://api.github.com/users/MbugwaSami/repos","events_url":"https://api.github.com/users/MbugwaSami/events{/privacy}","received_events_url":"https://api.github.com/users/MbugwaSami/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api","description":null,"fork":false,"url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api","forks_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/forks","keys_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/teams","hooks_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/hooks","issue_events_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/events{/number}","events_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/events","assignees_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/assignees{/user}","branches_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/branches{/branch}","tags_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/tags","blobs_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/refs{/sha}","trees_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/statuses/{sha}","languages_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/languages","stargazers_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/stargazers","contributors_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/contributors","subscribers_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/subscribers","subscription_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/subscription","commits_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/commits{/sha}","git_commits_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/git/commits{/sha}","comments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/comments{/number}","issue_comment_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/comments{/number}","contents_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/contents/{+path}","compare_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/merges","archive_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/downloads","issues_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues{/number}","pulls_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls{/number}","milestones_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/milestones{/number}","notifications_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/labels{/name}","releases_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/releases{/id}","deployments_url":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/deployments","created_at":"2018-10-25T02:52:15Z","updated_at":"2018-10-29T18:00:15Z","pushed_at":"2018-10-31T06:57:11Z","git_url":"git://github.com/MbugwaSami/ADC3-Store-Manager-Api.git","ssh_url":"git@github.com:MbugwaSami/ADC3-Store-Manager-Api.git","clone_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api.git","svn_url":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api","homepage":null,"size":52,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6"},"html":{"href":"https://github.com/MbugwaSami/ADC3-Store-Manager-Api/pull/6"},"issue":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/6"},"comments":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/MbugwaSami/ADC3-Store-Manager-Api/statuses/5fc2247e70513bf24f770c23a6a9b140115339dc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kmunene"}}