{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19","id":199271600,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MjcxNjAw","html_url":"https://github.com/jojitoon/ride-my-way-api/pull/19","diff_url":"https://github.com/jojitoon/ride-my-way-api/pull/19.diff","patch_url":"https://github.com/jojitoon/ride-my-way-api/pull/19.patch","issue_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/19","number":19,"state":"open","locked":false,"title":"feat(request) accept or reject request","user":{"login":"jojitoon","id":22550577,"node_id":"MDQ6VXNlcjIyNTUwNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/22550577?v=4","gravatar_id":"","url":"https://api.github.com/users/jojitoon","html_url":"https://github.com/jojitoon","followers_url":"https://api.github.com/users/jojitoon/followers","following_url":"https://api.github.com/users/jojitoon/following{/other_user}","gists_url":"https://api.github.com/users/jojitoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jojitoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojitoon/subscriptions","organizations_url":"https://api.github.com/users/jojitoon/orgs","repos_url":"https://api.github.com/users/jojitoon/repos","events_url":"https://api.github.com/users/jojitoon/events{/privacy}","received_events_url":"https://api.github.com/users/jojitoon/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nwhen a user supplies his token, and a body of parameter access whether true or false will accept or reject a ride request \r\n#### Description of Task to be completed?\r\nthe following endpoint is made available\r\n` POST /api/v1/rides/:rideId/requests/:requestId`\r\n\r\n \r\n#### How should this be manually tested?\r\nclone repository then run `npm run create-db`\r\n* use postman to test endpoints . for the first endpoint : supply details\r\n ```\r\n{\r\n\t\"accept\": true\r\n}\r\n```\r\nto get \r\n```\r\n{\r\n    \"status\": \"success\",\r\n    \"data\": {\r\n        \"message\": \"you have accepted this request\"\r\n    }\r\n}\r\n```\r\n### Story \r\n#158799728","created_at":"2018-07-04T14:50:00Z","updated_at":"2018-07-04T14:50:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19/commits","review_comments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19/comments","review_comment_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/19/comments","statuses_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/statuses/216efa9b82806f7b8641b58c6fe57a4c327a785e","head":{"label":"jojitoon:ft/#158799728/accept-and-reject-requests","ref":"ft/#158799728/accept-and-reject-requests","sha":"216efa9b82806f7b8641b58c6fe57a4c327a785e","user":{"login":"jojitoon","id":22550577,"node_id":"MDQ6VXNlcjIyNTUwNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/22550577?v=4","gravatar_id":"","url":"https://api.github.com/users/jojitoon","html_url":"https://github.com/jojitoon","followers_url":"https://api.github.com/users/jojitoon/followers","following_url":"https://api.github.com/users/jojitoon/following{/other_user}","gists_url":"https://api.github.com/users/jojitoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jojitoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojitoon/subscriptions","organizations_url":"https://api.github.com/users/jojitoon/orgs","repos_url":"https://api.github.com/users/jojitoon/repos","events_url":"https://api.github.com/users/jojitoon/events{/privacy}","received_events_url":"https://api.github.com/users/jojitoon/received_events","type":"User","site_admin":false},"repo":{"id":138163230,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxNjMyMzA=","name":"ride-my-way-api","full_name":"jojitoon/ride-my-way-api","owner":{"login":"jojitoon","id":22550577,"node_id":"MDQ6VXNlcjIyNTUwNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/22550577?v=4","gravatar_id":"","url":"https://api.github.com/users/jojitoon","html_url":"https://github.com/jojitoon","followers_url":"https://api.github.com/users/jojitoon/followers","following_url":"https://api.github.com/users/jojitoon/following{/other_user}","gists_url":"https://api.github.com/users/jojitoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jojitoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojitoon/subscriptions","organizations_url":"https://api.github.com/users/jojitoon/orgs","repos_url":"https://api.github.com/users/jojitoon/repos","events_url":"https://api.github.com/users/jojitoon/events{/privacy}","received_events_url":"https://api.github.com/users/jojitoon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jojitoon/ride-my-way-api","description":"api for ride my way frontend","fork":false,"url":"https://api.github.com/repos/jojitoon/ride-my-way-api","forks_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/forks","keys_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/teams","hooks_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/hooks","issue_events_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/events{/number}","events_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/events","assignees_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/assignees{/user}","branches_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/branches{/branch}","tags_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/tags","blobs_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/statuses/{sha}","languages_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/languages","stargazers_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/stargazers","contributors_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/contributors","subscribers_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/subscribers","subscription_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/subscription","commits_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/contents/{+path}","compare_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/merges","archive_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/downloads","issues_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues{/number}","pulls_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls{/number}","milestones_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/milestones{/number}","notifications_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/labels{/name}","releases_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/releases{/id}","deployments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/deployments","created_at":"2018-06-21T11:46:45Z","updated_at":"2018-06-22T01:08:43Z","pushed_at":"2018-07-04T14:30:42Z","git_url":"git://github.com/jojitoon/ride-my-way-api.git","ssh_url":"git@github.com:jojitoon/ride-my-way-api.git","clone_url":"https://github.com/jojitoon/ride-my-way-api.git","svn_url":"https://github.com/jojitoon/ride-my-way-api","homepage":null,"size":10305,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jojitoon:develop","ref":"develop","sha":"62e52ae8176c40e86cf38b2ed28ac72ac315f183","user":{"login":"jojitoon","id":22550577,"node_id":"MDQ6VXNlcjIyNTUwNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/22550577?v=4","gravatar_id":"","url":"https://api.github.com/users/jojitoon","html_url":"https://github.com/jojitoon","followers_url":"https://api.github.com/users/jojitoon/followers","following_url":"https://api.github.com/users/jojitoon/following{/other_user}","gists_url":"https://api.github.com/users/jojitoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jojitoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojitoon/subscriptions","organizations_url":"https://api.github.com/users/jojitoon/orgs","repos_url":"https://api.github.com/users/jojitoon/repos","events_url":"https://api.github.com/users/jojitoon/events{/privacy}","received_events_url":"https://api.github.com/users/jojitoon/received_events","type":"User","site_admin":false},"repo":{"id":138163230,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxNjMyMzA=","name":"ride-my-way-api","full_name":"jojitoon/ride-my-way-api","owner":{"login":"jojitoon","id":22550577,"node_id":"MDQ6VXNlcjIyNTUwNTc3","avatar_url":"https://avatars2.githubusercontent.com/u/22550577?v=4","gravatar_id":"","url":"https://api.github.com/users/jojitoon","html_url":"https://github.com/jojitoon","followers_url":"https://api.github.com/users/jojitoon/followers","following_url":"https://api.github.com/users/jojitoon/following{/other_user}","gists_url":"https://api.github.com/users/jojitoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jojitoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jojitoon/subscriptions","organizations_url":"https://api.github.com/users/jojitoon/orgs","repos_url":"https://api.github.com/users/jojitoon/repos","events_url":"https://api.github.com/users/jojitoon/events{/privacy}","received_events_url":"https://api.github.com/users/jojitoon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jojitoon/ride-my-way-api","description":"api for ride my way frontend","fork":false,"url":"https://api.github.com/repos/jojitoon/ride-my-way-api","forks_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/forks","keys_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/teams","hooks_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/hooks","issue_events_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/events{/number}","events_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/events","assignees_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/assignees{/user}","branches_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/branches{/branch}","tags_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/tags","blobs_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/statuses/{sha}","languages_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/languages","stargazers_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/stargazers","contributors_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/contributors","subscribers_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/subscribers","subscription_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/subscription","commits_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/contents/{+path}","compare_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/merges","archive_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/downloads","issues_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues{/number}","pulls_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls{/number}","milestones_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/milestones{/number}","notifications_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/labels{/name}","releases_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/releases{/id}","deployments_url":"https://api.github.com/repos/jojitoon/ride-my-way-api/deployments","created_at":"2018-06-21T11:46:45Z","updated_at":"2018-06-22T01:08:43Z","pushed_at":"2018-07-04T14:30:42Z","git_url":"git://github.com/jojitoon/ride-my-way-api.git","ssh_url":"git@github.com:jojitoon/ride-my-way-api.git","clone_url":"https://github.com/jojitoon/ride-my-way-api.git","svn_url":"https://github.com/jojitoon/ride-my-way-api","homepage":null,"size":10305,"stargazers_count":0,"watchers_count":0,"language":null,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19"},"html":{"href":"https://github.com/jojitoon/ride-my-way-api/pull/19"},"issue":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/19"},"comments":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/jojitoon/ride-my-way-api/statuses/216efa9b82806f7b8641b58c6fe57a4c327a785e"}},"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":1,"additions":129,"deletions":16,"changed_files":11}}
{"actor":{"display_login":"jojitoon"}}