{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/16","id":210376765,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMzc2NzY1","html_url":"https://github.com/myricoi/StackOverflow_Lite/pull/16","diff_url":"https://github.com/myricoi/StackOverflow_Lite/pull/16.diff","patch_url":"https://github.com/myricoi/StackOverflow_Lite/pull/16.patch","issue_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/16","number":16,"state":"open","locked":false,"title":"Feature/create api","user":{"login":"myricoi","id":28462171,"node_id":"MDQ6VXNlcjI4NDYyMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/28462171?v=4","gravatar_id":"","url":"https://api.github.com/users/myricoi","html_url":"https://github.com/myricoi","followers_url":"https://api.github.com/users/myricoi/followers","following_url":"https://api.github.com/users/myricoi/following{/other_user}","gists_url":"https://api.github.com/users/myricoi/gists{/gist_id}","starred_url":"https://api.github.com/users/myricoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myricoi/subscriptions","organizations_url":"https://api.github.com/users/myricoi/orgs","repos_url":"https://api.github.com/users/myricoi/repos","events_url":"https://api.github.com/users/myricoi/events{/privacy}","received_events_url":"https://api.github.com/users/myricoi/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nmarks the completion of api endpoints for challenge 2\r\n**how to run tests manually**\r\n\r\ngit clone https://github.com/myricoi/StackOverflow_Lite myproject\r\n\r\ncd myproject\r\n\r\npython3 -m venv venv /python -m venv venv (linix/windows respectively)\r\n\r\n. venv/bin/activate or venv\\scripts\\activate (linux or windows respectively)\r\n\r\npip install -r requirements.txt\r\n\r\npip install pytest\r\n\r\nthen you can run the server -> python run.py and use the url localhost:5000/api/v1 to test the following endpoints on postman:\r\n- GET /questions: fetch all questions\r\n-POST /questions post a question\r\n-GET /questions/<questionid> :fetch aspecific question\r\n-GET /questions/questionid/answers : fetch all answers on a given question\r\n-POST /questions/questionid/answers : post an answer to a given question\r\n-GET  /questions/questionid/answers/answerId/comments : fetch all comments on an answer of a question\r\n-POST  /questions/questionid/answers/answerId/comments : post a comment on an answer of a question\r\n\r\nto run the tests ->pytest","created_at":"2018-08-23T08:58:13Z","updated_at":"2018-08-23T08:58:13Z","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/myricoi/StackOverflow_Lite/pulls/16/commits","review_comments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/16/comments","review_comment_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/16/comments","statuses_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/statuses/df134404ce0ba6297e9ab0ef17da59bc53d5774b","head":{"label":"myricoi:feature/create-api","ref":"feature/create-api","sha":"df134404ce0ba6297e9ab0ef17da59bc53d5774b","user":{"login":"myricoi","id":28462171,"node_id":"MDQ6VXNlcjI4NDYyMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/28462171?v=4","gravatar_id":"","url":"https://api.github.com/users/myricoi","html_url":"https://github.com/myricoi","followers_url":"https://api.github.com/users/myricoi/followers","following_url":"https://api.github.com/users/myricoi/following{/other_user}","gists_url":"https://api.github.com/users/myricoi/gists{/gist_id}","starred_url":"https://api.github.com/users/myricoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myricoi/subscriptions","organizations_url":"https://api.github.com/users/myricoi/orgs","repos_url":"https://api.github.com/users/myricoi/repos","events_url":"https://api.github.com/users/myricoi/events{/privacy}","received_events_url":"https://api.github.com/users/myricoi/received_events","type":"User","site_admin":false},"repo":{"id":143949472,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5NDk0NzI=","name":"StackOverflow_Lite","full_name":"myricoi/StackOverflow_Lite","owner":{"login":"myricoi","id":28462171,"node_id":"MDQ6VXNlcjI4NDYyMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/28462171?v=4","gravatar_id":"","url":"https://api.github.com/users/myricoi","html_url":"https://github.com/myricoi","followers_url":"https://api.github.com/users/myricoi/followers","following_url":"https://api.github.com/users/myricoi/following{/other_user}","gists_url":"https://api.github.com/users/myricoi/gists{/gist_id}","starred_url":"https://api.github.com/users/myricoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myricoi/subscriptions","organizations_url":"https://api.github.com/users/myricoi/orgs","repos_url":"https://api.github.com/users/myricoi/repos","events_url":"https://api.github.com/users/myricoi/events{/privacy}","received_events_url":"https://api.github.com/users/myricoi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myricoi/StackOverflow_Lite","description":"A repository for the StackOverflow_Lite web application","fork":false,"url":"https://api.github.com/repos/myricoi/StackOverflow_Lite","forks_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/forks","keys_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/teams","hooks_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/hooks","issue_events_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/events{/number}","events_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/events","assignees_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/assignees{/user}","branches_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/branches{/branch}","tags_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/tags","blobs_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/statuses/{sha}","languages_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/languages","stargazers_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/stargazers","contributors_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/contributors","subscribers_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/subscribers","subscription_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/subscription","commits_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/contents/{+path}","compare_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/merges","archive_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/downloads","issues_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues{/number}","pulls_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls{/number}","milestones_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/milestones{/number}","notifications_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/labels{/name}","releases_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/releases{/id}","deployments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/deployments","created_at":"2018-08-08T02:17:08Z","updated_at":"2018-08-20T01:17:18Z","pushed_at":"2018-08-23T02:33:10Z","git_url":"git://github.com/myricoi/StackOverflow_Lite.git","ssh_url":"git@github.com:myricoi/StackOverflow_Lite.git","clone_url":"https://github.com/myricoi/StackOverflow_Lite.git","svn_url":"https://github.com/myricoi/StackOverflow_Lite","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"feature/develop-159593458"}},"base":{"label":"myricoi:feature/develop-159593458","ref":"feature/develop-159593458","sha":"335c54e0b786eff27830de107920d06cae011d55","user":{"login":"myricoi","id":28462171,"node_id":"MDQ6VXNlcjI4NDYyMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/28462171?v=4","gravatar_id":"","url":"https://api.github.com/users/myricoi","html_url":"https://github.com/myricoi","followers_url":"https://api.github.com/users/myricoi/followers","following_url":"https://api.github.com/users/myricoi/following{/other_user}","gists_url":"https://api.github.com/users/myricoi/gists{/gist_id}","starred_url":"https://api.github.com/users/myricoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myricoi/subscriptions","organizations_url":"https://api.github.com/users/myricoi/orgs","repos_url":"https://api.github.com/users/myricoi/repos","events_url":"https://api.github.com/users/myricoi/events{/privacy}","received_events_url":"https://api.github.com/users/myricoi/received_events","type":"User","site_admin":false},"repo":{"id":143949472,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5NDk0NzI=","name":"StackOverflow_Lite","full_name":"myricoi/StackOverflow_Lite","owner":{"login":"myricoi","id":28462171,"node_id":"MDQ6VXNlcjI4NDYyMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/28462171?v=4","gravatar_id":"","url":"https://api.github.com/users/myricoi","html_url":"https://github.com/myricoi","followers_url":"https://api.github.com/users/myricoi/followers","following_url":"https://api.github.com/users/myricoi/following{/other_user}","gists_url":"https://api.github.com/users/myricoi/gists{/gist_id}","starred_url":"https://api.github.com/users/myricoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myricoi/subscriptions","organizations_url":"https://api.github.com/users/myricoi/orgs","repos_url":"https://api.github.com/users/myricoi/repos","events_url":"https://api.github.com/users/myricoi/events{/privacy}","received_events_url":"https://api.github.com/users/myricoi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/myricoi/StackOverflow_Lite","description":"A repository for the StackOverflow_Lite web application","fork":false,"url":"https://api.github.com/repos/myricoi/StackOverflow_Lite","forks_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/forks","keys_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/teams","hooks_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/hooks","issue_events_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/events{/number}","events_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/events","assignees_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/assignees{/user}","branches_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/branches{/branch}","tags_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/tags","blobs_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/statuses/{sha}","languages_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/languages","stargazers_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/stargazers","contributors_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/contributors","subscribers_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/subscribers","subscription_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/subscription","commits_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/contents/{+path}","compare_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/merges","archive_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/downloads","issues_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues{/number}","pulls_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls{/number}","milestones_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/milestones{/number}","notifications_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/labels{/name}","releases_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/releases{/id}","deployments_url":"https://api.github.com/repos/myricoi/StackOverflow_Lite/deployments","created_at":"2018-08-08T02:17:08Z","updated_at":"2018-08-20T01:17:18Z","pushed_at":"2018-08-23T02:33:10Z","git_url":"git://github.com/myricoi/StackOverflow_Lite.git","ssh_url":"git@github.com:myricoi/StackOverflow_Lite.git","clone_url":"https://github.com/myricoi/StackOverflow_Lite.git","svn_url":"https://github.com/myricoi/StackOverflow_Lite","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"feature/develop-159593458"}},"_links":{"self":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/16"},"html":{"href":"https://github.com/myricoi/StackOverflow_Lite/pull/16"},"issue":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/16"},"comments":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/myricoi/StackOverflow_Lite/statuses/df134404ce0ba6297e9ab0ef17da59bc53d5774b"}},"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":57,"additions":462,"deletions":679,"changed_files":19}}
{"actor":{"display_login":"myricoi"}}