{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/imma254/API-endpoints/pulls/2","id":209926001,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5OTI2MDAx","html_url":"https://github.com/imma254/API-endpoints/pull/2","diff_url":"https://github.com/imma254/API-endpoints/pull/2.diff","patch_url":"https://github.com/imma254/API-endpoints/pull/2.patch","issue_url":"https://api.github.com/repos/imma254/API-endpoints/issues/2","number":2,"state":"closed","locked":false,"title":"Created API endpoints test codes","user":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"body":"## PR Objective\r\nCreation of test codes for StackOverflow-Lite's API endpoints *(challenge2)*\r\n\r\n## Description of Task to be completed? **\r\nCreation of Test codes for the website's endpoints \r\n\r\n## API Endpoints Overview\r\n\r\nTest\t             \t\t\t\tAPI-endpoint\t\t\t\t\tHTTP-Verbs\r\nUser can post a questiont\t\t\t/api/v1/questions\t\t\t\tPOST\r\nUser can view all questions\t\t\t/api/v1/questions\t\t\t\tGET\r\nUser can view a single question\t\t/api/v1/questions/question_id\tGET\r\nUser can edit a question\t\t\t/api/v1/questions/question_id\tPUT\r\n\r\n## How should this manually be tested? **\r\n- Navigate to the API-endpoints repository.\r\n- Clone or download the repository\r\n`$ git clone https://github.com/imma254/API-endpoints`\r\n\r\n- Virtual Environment Setup and activation\r\n`$ virtualenv env`\r\n`$ . env/Scripts/activate`\r\n- Install Flask\r\n`$ pip install Flask`\r\n\r\n- Install requirements.txt file\r\n`$ pip freeze > requirements.txt`\r\n`$ pip install -r requirements.txt`\r\n\r\n- Run the app\r\n`$ python app.py`\r\n\r\n- Test the app\r\n`$ python test_app.py`\r\n\r\n## Any background context you want to provide?\r\n- Data structures\r\n- TDD\r\n- Flask\r\n- API\r\n\r\n## Relevant Pivotal Tracker Stories\r\n- #159935165","created_at":"2018-08-21T19:07:39Z","updated_at":"2018-08-21T19:09:42Z","closed_at":"2018-08-21T19:09:42Z","merged_at":"2018-08-21T19:09:41Z","merge_commit_sha":"7a5c2b6650c6fab8bf5c9365cc2d6c3453a21b33","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/imma254/API-endpoints/pulls/2/commits","review_comments_url":"https://api.github.com/repos/imma254/API-endpoints/pulls/2/comments","review_comment_url":"https://api.github.com/repos/imma254/API-endpoints/pulls/comments{/number}","comments_url":"https://api.github.com/repos/imma254/API-endpoints/issues/2/comments","statuses_url":"https://api.github.com/repos/imma254/API-endpoints/statuses/fd723bd0bc46c8261348023bbf7859c1b83bc7c9","head":{"label":"imma254:159935165-test-code-stackoverflow","ref":"159935165-test-code-stackoverflow","sha":"fd723bd0bc46c8261348023bbf7859c1b83bc7c9","user":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"repo":{"id":145568257,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NjgyNTc=","name":"API-endpoints","full_name":"imma254/API-endpoints","owner":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imma254/API-endpoints","description":"This repository contains StackOverflow-Lite's Flask API endpoints ","fork":false,"url":"https://api.github.com/repos/imma254/API-endpoints","forks_url":"https://api.github.com/repos/imma254/API-endpoints/forks","keys_url":"https://api.github.com/repos/imma254/API-endpoints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imma254/API-endpoints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imma254/API-endpoints/teams","hooks_url":"https://api.github.com/repos/imma254/API-endpoints/hooks","issue_events_url":"https://api.github.com/repos/imma254/API-endpoints/issues/events{/number}","events_url":"https://api.github.com/repos/imma254/API-endpoints/events","assignees_url":"https://api.github.com/repos/imma254/API-endpoints/assignees{/user}","branches_url":"https://api.github.com/repos/imma254/API-endpoints/branches{/branch}","tags_url":"https://api.github.com/repos/imma254/API-endpoints/tags","blobs_url":"https://api.github.com/repos/imma254/API-endpoints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imma254/API-endpoints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imma254/API-endpoints/git/refs{/sha}","trees_url":"https://api.github.com/repos/imma254/API-endpoints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imma254/API-endpoints/statuses/{sha}","languages_url":"https://api.github.com/repos/imma254/API-endpoints/languages","stargazers_url":"https://api.github.com/repos/imma254/API-endpoints/stargazers","contributors_url":"https://api.github.com/repos/imma254/API-endpoints/contributors","subscribers_url":"https://api.github.com/repos/imma254/API-endpoints/subscribers","subscription_url":"https://api.github.com/repos/imma254/API-endpoints/subscription","commits_url":"https://api.github.com/repos/imma254/API-endpoints/commits{/sha}","git_commits_url":"https://api.github.com/repos/imma254/API-endpoints/git/commits{/sha}","comments_url":"https://api.github.com/repos/imma254/API-endpoints/comments{/number}","issue_comment_url":"https://api.github.com/repos/imma254/API-endpoints/issues/comments{/number}","contents_url":"https://api.github.com/repos/imma254/API-endpoints/contents/{+path}","compare_url":"https://api.github.com/repos/imma254/API-endpoints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imma254/API-endpoints/merges","archive_url":"https://api.github.com/repos/imma254/API-endpoints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imma254/API-endpoints/downloads","issues_url":"https://api.github.com/repos/imma254/API-endpoints/issues{/number}","pulls_url":"https://api.github.com/repos/imma254/API-endpoints/pulls{/number}","milestones_url":"https://api.github.com/repos/imma254/API-endpoints/milestones{/number}","notifications_url":"https://api.github.com/repos/imma254/API-endpoints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imma254/API-endpoints/labels{/name}","releases_url":"https://api.github.com/repos/imma254/API-endpoints/releases{/id}","deployments_url":"https://api.github.com/repos/imma254/API-endpoints/deployments","created_at":"2018-08-21T13:32:17Z","updated_at":"2018-08-21T16:17:47Z","pushed_at":"2018-08-21T19:09:41Z","git_url":"git://github.com/imma254/API-endpoints.git","ssh_url":"git@github.com:imma254/API-endpoints.git","clone_url":"https://github.com/imma254/API-endpoints.git","svn_url":"https://github.com/imma254/API-endpoints","homepage":null,"size":13116,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"imma254:master","ref":"master","sha":"4d3d2648b91490b6883f6d1958785a8c5535731f","user":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"repo":{"id":145568257,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NjgyNTc=","name":"API-endpoints","full_name":"imma254/API-endpoints","owner":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imma254/API-endpoints","description":"This repository contains StackOverflow-Lite's Flask API endpoints ","fork":false,"url":"https://api.github.com/repos/imma254/API-endpoints","forks_url":"https://api.github.com/repos/imma254/API-endpoints/forks","keys_url":"https://api.github.com/repos/imma254/API-endpoints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imma254/API-endpoints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imma254/API-endpoints/teams","hooks_url":"https://api.github.com/repos/imma254/API-endpoints/hooks","issue_events_url":"https://api.github.com/repos/imma254/API-endpoints/issues/events{/number}","events_url":"https://api.github.com/repos/imma254/API-endpoints/events","assignees_url":"https://api.github.com/repos/imma254/API-endpoints/assignees{/user}","branches_url":"https://api.github.com/repos/imma254/API-endpoints/branches{/branch}","tags_url":"https://api.github.com/repos/imma254/API-endpoints/tags","blobs_url":"https://api.github.com/repos/imma254/API-endpoints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imma254/API-endpoints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imma254/API-endpoints/git/refs{/sha}","trees_url":"https://api.github.com/repos/imma254/API-endpoints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imma254/API-endpoints/statuses/{sha}","languages_url":"https://api.github.com/repos/imma254/API-endpoints/languages","stargazers_url":"https://api.github.com/repos/imma254/API-endpoints/stargazers","contributors_url":"https://api.github.com/repos/imma254/API-endpoints/contributors","subscribers_url":"https://api.github.com/repos/imma254/API-endpoints/subscribers","subscription_url":"https://api.github.com/repos/imma254/API-endpoints/subscription","commits_url":"https://api.github.com/repos/imma254/API-endpoints/commits{/sha}","git_commits_url":"https://api.github.com/repos/imma254/API-endpoints/git/commits{/sha}","comments_url":"https://api.github.com/repos/imma254/API-endpoints/comments{/number}","issue_comment_url":"https://api.github.com/repos/imma254/API-endpoints/issues/comments{/number}","contents_url":"https://api.github.com/repos/imma254/API-endpoints/contents/{+path}","compare_url":"https://api.github.com/repos/imma254/API-endpoints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imma254/API-endpoints/merges","archive_url":"https://api.github.com/repos/imma254/API-endpoints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imma254/API-endpoints/downloads","issues_url":"https://api.github.com/repos/imma254/API-endpoints/issues{/number}","pulls_url":"https://api.github.com/repos/imma254/API-endpoints/pulls{/number}","milestones_url":"https://api.github.com/repos/imma254/API-endpoints/milestones{/number}","notifications_url":"https://api.github.com/repos/imma254/API-endpoints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imma254/API-endpoints/labels{/name}","releases_url":"https://api.github.com/repos/imma254/API-endpoints/releases{/id}","deployments_url":"https://api.github.com/repos/imma254/API-endpoints/deployments","created_at":"2018-08-21T13:32:17Z","updated_at":"2018-08-21T16:17:47Z","pushed_at":"2018-08-21T19:09:41Z","git_url":"git://github.com/imma254/API-endpoints.git","ssh_url":"git@github.com:imma254/API-endpoints.git","clone_url":"https://github.com/imma254/API-endpoints.git","svn_url":"https://github.com/imma254/API-endpoints","homepage":null,"size":13116,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imma254/API-endpoints/pulls/2"},"html":{"href":"https://github.com/imma254/API-endpoints/pull/2"},"issue":{"href":"https://api.github.com/repos/imma254/API-endpoints/issues/2"},"comments":{"href":"https://api.github.com/repos/imma254/API-endpoints/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/imma254/API-endpoints/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/imma254/API-endpoints/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/imma254/API-endpoints/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/imma254/API-endpoints/statuses/fd723bd0bc46c8261348023bbf7859c1b83bc7c9"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"imma254","id":42188577,"node_id":"MDQ6VXNlcjQyMTg4NTc3","avatar_url":"https://avatars2.githubusercontent.com/u/42188577?v=4","gravatar_id":"","url":"https://api.github.com/users/imma254","html_url":"https://github.com/imma254","followers_url":"https://api.github.com/users/imma254/followers","following_url":"https://api.github.com/users/imma254/following{/other_user}","gists_url":"https://api.github.com/users/imma254/gists{/gist_id}","starred_url":"https://api.github.com/users/imma254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imma254/subscriptions","organizations_url":"https://api.github.com/users/imma254/orgs","repos_url":"https://api.github.com/users/imma254/repos","events_url":"https://api.github.com/users/imma254/events{/privacy}","received_events_url":"https://api.github.com/users/imma254/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":240931,"deletions":0,"changed_files":1618}}
{"actor":{"display_login":"imma254"}}