{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39","id":150097626,"html_url":"https://github.com/Dheavyman/More-Recipes/pull/39","diff_url":"https://github.com/Dheavyman/More-Recipes/pull/39.diff","patch_url":"https://github.com/Dheavyman/More-Recipes/pull/39.patch","issue_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/39","number":39,"state":"open","locked":false,"title":"#152473134 create api route to allow user upvote recipes","user":{"login":"Dheavyman","id":28486643,"avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nHave API route that allows a user to upvote a recipe\r\n#### Description of Task to be completed?\r\nAn authenticated user should be able to upvote a recipe and cannot downvote the recipe at the same time while still keeping his upvote valid\r\n#### How should this be manually tested?\r\n- Clone the repo and cd into it\r\n- Install the dependencies with the command `npm install`\r\n- Start the server with the command `npm run start`\r\n- Test the following api route with postman: `POST:/api/v1/recipes/:recipeId/upvotes`\r\n#### What are the relevant pivotal tracker stories?\r\n#152473134","created_at":"2017-11-01T17:30:30Z","updated_at":"2017-11-01T17:30:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39/commits","review_comments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39/comments","review_comment_url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/39/comments","statuses_url":"https://api.github.com/repos/Dheavyman/More-Recipes/statuses/f32a3a0fefc92a06ab831a889540aa98c9254486","head":{"label":"Dheavyman:ft-upvote-recipe-database-152473134","ref":"ft-upvote-recipe-database-152473134","sha":"f32a3a0fefc92a06ab831a889540aa98c9254486","user":{"login":"Dheavyman","id":28486643,"avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"repo":{"id":107396786,"name":"More-Recipes","full_name":"Dheavyman/More-Recipes","owner":{"login":"Dheavyman","id":28486643,"avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dheavyman/More-Recipes","description":"More-Recipes provides a platform for users to share the awesome and exciting  recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/Dheavyman/More-Recipes","forks_url":"https://api.github.com/repos/Dheavyman/More-Recipes/forks","keys_url":"https://api.github.com/repos/Dheavyman/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dheavyman/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dheavyman/More-Recipes/teams","hooks_url":"https://api.github.com/repos/Dheavyman/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/Dheavyman/More-Recipes/events","assignees_url":"https://api.github.com/repos/Dheavyman/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/Dheavyman/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/Dheavyman/More-Recipes/tags","blobs_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dheavyman/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/Dheavyman/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/Dheavyman/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/Dheavyman/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/Dheavyman/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/Dheavyman/More-Recipes/subscription","commits_url":"https://api.github.com/repos/Dheavyman/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dheavyman/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/Dheavyman/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dheavyman/More-Recipes/merges","archive_url":"https://api.github.com/repos/Dheavyman/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dheavyman/More-Recipes/downloads","issues_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/Dheavyman/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/Dheavyman/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dheavyman/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/Dheavyman/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/deployments","created_at":"2017-10-18T11:08:39Z","updated_at":"2017-10-25T15:20:52Z","pushed_at":"2017-11-01T16:51:07Z","git_url":"git://github.com/Dheavyman/More-Recipes.git","ssh_url":"git@github.com:Dheavyman/More-Recipes.git","clone_url":"https://github.com/Dheavyman/More-Recipes.git","svn_url":"https://github.com/Dheavyman/More-Recipes","homepage":null,"size":866,"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,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Dheavyman:develop","ref":"develop","sha":"35baea5a8a233f26bf5b5c9e2edbb9b231652d01","user":{"login":"Dheavyman","id":28486643,"avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"repo":{"id":107396786,"name":"More-Recipes","full_name":"Dheavyman/More-Recipes","owner":{"login":"Dheavyman","id":28486643,"avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dheavyman/More-Recipes","description":"More-Recipes provides a platform for users to share the awesome and exciting  recipe ideas they have invented or learnt.","fork":false,"url":"https://api.github.com/repos/Dheavyman/More-Recipes","forks_url":"https://api.github.com/repos/Dheavyman/More-Recipes/forks","keys_url":"https://api.github.com/repos/Dheavyman/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dheavyman/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dheavyman/More-Recipes/teams","hooks_url":"https://api.github.com/repos/Dheavyman/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/Dheavyman/More-Recipes/events","assignees_url":"https://api.github.com/repos/Dheavyman/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/Dheavyman/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/Dheavyman/More-Recipes/tags","blobs_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dheavyman/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/Dheavyman/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/Dheavyman/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/Dheavyman/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/Dheavyman/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/Dheavyman/More-Recipes/subscription","commits_url":"https://api.github.com/repos/Dheavyman/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dheavyman/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dheavyman/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/Dheavyman/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dheavyman/More-Recipes/merges","archive_url":"https://api.github.com/repos/Dheavyman/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dheavyman/More-Recipes/downloads","issues_url":"https://api.github.com/repos/Dheavyman/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/Dheavyman/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/Dheavyman/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dheavyman/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/Dheavyman/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/Dheavyman/More-Recipes/deployments","created_at":"2017-10-18T11:08:39Z","updated_at":"2017-10-25T15:20:52Z","pushed_at":"2017-11-01T16:51:07Z","git_url":"git://github.com/Dheavyman/More-Recipes.git","ssh_url":"git@github.com:Dheavyman/More-Recipes.git","clone_url":"https://github.com/Dheavyman/More-Recipes.git","svn_url":"https://github.com/Dheavyman/More-Recipes","homepage":null,"size":866,"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,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39"},"html":{"href":"https://github.com/Dheavyman/More-Recipes/pull/39"},"issue":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/39"},"comments":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/Dheavyman/More-Recipes/statuses/f32a3a0fefc92a06ab831a889540aa98c9254486"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":120,"deletions":29,"changed_files":4}}
{"actor":{"display_login":"Dheavyman"}}