{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/Philipotieno/STL-API/pulls/1","id":240671803,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNjcxODAz","html_url":"https://github.com/Philipotieno/STL-API/pull/1","diff_url":"https://github.com/Philipotieno/STL-API/pull/1.diff","patch_url":"https://github.com/Philipotieno/STL-API/pull/1.patch","issue_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/1","number":1,"state":"open","locked":false,"title":"#[162680095] user registration ","user":{"login":"Philipotieno","id":29012135,"node_id":"MDQ6VXNlcjI5MDEyMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/29012135?v=4","gravatar_id":"","url":"https://api.github.com/users/Philipotieno","html_url":"https://github.com/Philipotieno","followers_url":"https://api.github.com/users/Philipotieno/followers","following_url":"https://api.github.com/users/Philipotieno/following{/other_user}","gists_url":"https://api.github.com/users/Philipotieno/gists{/gist_id}","starred_url":"https://api.github.com/users/Philipotieno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philipotieno/subscriptions","organizations_url":"https://api.github.com/users/Philipotieno/orgs","repos_url":"https://api.github.com/users/Philipotieno/repos","events_url":"https://api.github.com/users/Philipotieno/events{/privacy}","received_events_url":"https://api.github.com/users/Philipotieno/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n\r\n- Have Endpoints for user registration\r\n\r\n#### Description of Task to be completed?\r\n- Create an end point that allows the user to create an account by adding their first name, last name, email address, username and password\r\n\r\n\r\n#### How should this be manually tested?\r\n\r\n1. Create a virtual environment:\r\n`$ virtualenv -p python3 venv`\r\n2. Activate the virtual environment with this command\r\n`$ source venv/bin/activate`\r\n3. Install flask\r\n`$ pip install flask`\r\n4.  Clone the repo\r\n`https://github.com/Philipotieno/STL-API`\r\n 5. - Have the following endpoints working\r\n- POST /api/v1/user/register\r\n#### Screenshots\r\n![user reg](https://user-images.githubusercontent.com/29012135/50382034-ee11ea00-06a6-11e9-8c96-077dc569fa26.png)\r\n\r\n","created_at":"2018-12-23T08:43:48Z","updated_at":"2018-12-23T08:43:48Z","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/Philipotieno/STL-API/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Philipotieno/STL-API/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Philipotieno/STL-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/1/comments","statuses_url":"https://api.github.com/repos/Philipotieno/STL-API/statuses/b5eeb909e64c675d20ff665eaadb79b74027620d","head":{"label":"Philipotieno:ft-user-registration-162680095","ref":"ft-user-registration-162680095","sha":"b5eeb909e64c675d20ff665eaadb79b74027620d","user":{"login":"Philipotieno","id":29012135,"node_id":"MDQ6VXNlcjI5MDEyMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/29012135?v=4","gravatar_id":"","url":"https://api.github.com/users/Philipotieno","html_url":"https://github.com/Philipotieno","followers_url":"https://api.github.com/users/Philipotieno/followers","following_url":"https://api.github.com/users/Philipotieno/following{/other_user}","gists_url":"https://api.github.com/users/Philipotieno/gists{/gist_id}","starred_url":"https://api.github.com/users/Philipotieno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philipotieno/subscriptions","organizations_url":"https://api.github.com/users/Philipotieno/orgs","repos_url":"https://api.github.com/users/Philipotieno/repos","events_url":"https://api.github.com/users/Philipotieno/events{/privacy}","received_events_url":"https://api.github.com/users/Philipotieno/received_events","type":"User","site_admin":false},"repo":{"id":162691636,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI2OTE2MzY=","name":"STL-API","full_name":"Philipotieno/STL-API","private":false,"owner":{"login":"Philipotieno","id":29012135,"node_id":"MDQ6VXNlcjI5MDEyMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/29012135?v=4","gravatar_id":"","url":"https://api.github.com/users/Philipotieno","html_url":"https://github.com/Philipotieno","followers_url":"https://api.github.com/users/Philipotieno/followers","following_url":"https://api.github.com/users/Philipotieno/following{/other_user}","gists_url":"https://api.github.com/users/Philipotieno/gists{/gist_id}","starred_url":"https://api.github.com/users/Philipotieno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philipotieno/subscriptions","organizations_url":"https://api.github.com/users/Philipotieno/orgs","repos_url":"https://api.github.com/users/Philipotieno/repos","events_url":"https://api.github.com/users/Philipotieno/events{/privacy}","received_events_url":"https://api.github.com/users/Philipotieno/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Philipotieno/STL-API","description":"StackOverflow-lite is a platform where people can ask questions and provide answers","fork":false,"url":"https://api.github.com/repos/Philipotieno/STL-API","forks_url":"https://api.github.com/repos/Philipotieno/STL-API/forks","keys_url":"https://api.github.com/repos/Philipotieno/STL-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Philipotieno/STL-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Philipotieno/STL-API/teams","hooks_url":"https://api.github.com/repos/Philipotieno/STL-API/hooks","issue_events_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/events{/number}","events_url":"https://api.github.com/repos/Philipotieno/STL-API/events","assignees_url":"https://api.github.com/repos/Philipotieno/STL-API/assignees{/user}","branches_url":"https://api.github.com/repos/Philipotieno/STL-API/branches{/branch}","tags_url":"https://api.github.com/repos/Philipotieno/STL-API/tags","blobs_url":"https://api.github.com/repos/Philipotieno/STL-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Philipotieno/STL-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Philipotieno/STL-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Philipotieno/STL-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Philipotieno/STL-API/statuses/{sha}","languages_url":"https://api.github.com/repos/Philipotieno/STL-API/languages","stargazers_url":"https://api.github.com/repos/Philipotieno/STL-API/stargazers","contributors_url":"https://api.github.com/repos/Philipotieno/STL-API/contributors","subscribers_url":"https://api.github.com/repos/Philipotieno/STL-API/subscribers","subscription_url":"https://api.github.com/repos/Philipotieno/STL-API/subscription","commits_url":"https://api.github.com/repos/Philipotieno/STL-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Philipotieno/STL-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Philipotieno/STL-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Philipotieno/STL-API/contents/{+path}","compare_url":"https://api.github.com/repos/Philipotieno/STL-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Philipotieno/STL-API/merges","archive_url":"https://api.github.com/repos/Philipotieno/STL-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Philipotieno/STL-API/downloads","issues_url":"https://api.github.com/repos/Philipotieno/STL-API/issues{/number}","pulls_url":"https://api.github.com/repos/Philipotieno/STL-API/pulls{/number}","milestones_url":"https://api.github.com/repos/Philipotieno/STL-API/milestones{/number}","notifications_url":"https://api.github.com/repos/Philipotieno/STL-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Philipotieno/STL-API/labels{/name}","releases_url":"https://api.github.com/repos/Philipotieno/STL-API/releases{/id}","deployments_url":"https://api.github.com/repos/Philipotieno/STL-API/deployments","created_at":"2018-12-21T09:04:05Z","updated_at":"2018-12-21T09:13:26Z","pushed_at":"2018-12-23T08:21:09Z","git_url":"git://github.com/Philipotieno/STL-API.git","ssh_url":"git@github.com:Philipotieno/STL-API.git","clone_url":"https://github.com/Philipotieno/STL-API.git","svn_url":"https://github.com/Philipotieno/STL-API","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Philipotieno:develop","ref":"develop","sha":"5874e4473eaa36f9521340fd350539004480008e","user":{"login":"Philipotieno","id":29012135,"node_id":"MDQ6VXNlcjI5MDEyMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/29012135?v=4","gravatar_id":"","url":"https://api.github.com/users/Philipotieno","html_url":"https://github.com/Philipotieno","followers_url":"https://api.github.com/users/Philipotieno/followers","following_url":"https://api.github.com/users/Philipotieno/following{/other_user}","gists_url":"https://api.github.com/users/Philipotieno/gists{/gist_id}","starred_url":"https://api.github.com/users/Philipotieno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philipotieno/subscriptions","organizations_url":"https://api.github.com/users/Philipotieno/orgs","repos_url":"https://api.github.com/users/Philipotieno/repos","events_url":"https://api.github.com/users/Philipotieno/events{/privacy}","received_events_url":"https://api.github.com/users/Philipotieno/received_events","type":"User","site_admin":false},"repo":{"id":162691636,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI2OTE2MzY=","name":"STL-API","full_name":"Philipotieno/STL-API","private":false,"owner":{"login":"Philipotieno","id":29012135,"node_id":"MDQ6VXNlcjI5MDEyMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/29012135?v=4","gravatar_id":"","url":"https://api.github.com/users/Philipotieno","html_url":"https://github.com/Philipotieno","followers_url":"https://api.github.com/users/Philipotieno/followers","following_url":"https://api.github.com/users/Philipotieno/following{/other_user}","gists_url":"https://api.github.com/users/Philipotieno/gists{/gist_id}","starred_url":"https://api.github.com/users/Philipotieno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Philipotieno/subscriptions","organizations_url":"https://api.github.com/users/Philipotieno/orgs","repos_url":"https://api.github.com/users/Philipotieno/repos","events_url":"https://api.github.com/users/Philipotieno/events{/privacy}","received_events_url":"https://api.github.com/users/Philipotieno/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Philipotieno/STL-API","description":"StackOverflow-lite is a platform where people can ask questions and provide answers","fork":false,"url":"https://api.github.com/repos/Philipotieno/STL-API","forks_url":"https://api.github.com/repos/Philipotieno/STL-API/forks","keys_url":"https://api.github.com/repos/Philipotieno/STL-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Philipotieno/STL-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Philipotieno/STL-API/teams","hooks_url":"https://api.github.com/repos/Philipotieno/STL-API/hooks","issue_events_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/events{/number}","events_url":"https://api.github.com/repos/Philipotieno/STL-API/events","assignees_url":"https://api.github.com/repos/Philipotieno/STL-API/assignees{/user}","branches_url":"https://api.github.com/repos/Philipotieno/STL-API/branches{/branch}","tags_url":"https://api.github.com/repos/Philipotieno/STL-API/tags","blobs_url":"https://api.github.com/repos/Philipotieno/STL-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Philipotieno/STL-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Philipotieno/STL-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/Philipotieno/STL-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Philipotieno/STL-API/statuses/{sha}","languages_url":"https://api.github.com/repos/Philipotieno/STL-API/languages","stargazers_url":"https://api.github.com/repos/Philipotieno/STL-API/stargazers","contributors_url":"https://api.github.com/repos/Philipotieno/STL-API/contributors","subscribers_url":"https://api.github.com/repos/Philipotieno/STL-API/subscribers","subscription_url":"https://api.github.com/repos/Philipotieno/STL-API/subscription","commits_url":"https://api.github.com/repos/Philipotieno/STL-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/Philipotieno/STL-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/Philipotieno/STL-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/Philipotieno/STL-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/Philipotieno/STL-API/contents/{+path}","compare_url":"https://api.github.com/repos/Philipotieno/STL-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Philipotieno/STL-API/merges","archive_url":"https://api.github.com/repos/Philipotieno/STL-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Philipotieno/STL-API/downloads","issues_url":"https://api.github.com/repos/Philipotieno/STL-API/issues{/number}","pulls_url":"https://api.github.com/repos/Philipotieno/STL-API/pulls{/number}","milestones_url":"https://api.github.com/repos/Philipotieno/STL-API/milestones{/number}","notifications_url":"https://api.github.com/repos/Philipotieno/STL-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Philipotieno/STL-API/labels{/name}","releases_url":"https://api.github.com/repos/Philipotieno/STL-API/releases{/id}","deployments_url":"https://api.github.com/repos/Philipotieno/STL-API/deployments","created_at":"2018-12-21T09:04:05Z","updated_at":"2018-12-21T09:13:26Z","pushed_at":"2018-12-23T08:21:09Z","git_url":"git://github.com/Philipotieno/STL-API.git","ssh_url":"git@github.com:Philipotieno/STL-API.git","clone_url":"https://github.com/Philipotieno/STL-API.git","svn_url":"https://github.com/Philipotieno/STL-API","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"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/Philipotieno/STL-API/pulls/1"},"html":{"href":"https://github.com/Philipotieno/STL-API/pull/1"},"issue":{"href":"https://api.github.com/repos/Philipotieno/STL-API/issues/1"},"comments":{"href":"https://api.github.com/repos/Philipotieno/STL-API/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Philipotieno/STL-API/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Philipotieno/STL-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Philipotieno/STL-API/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Philipotieno/STL-API/statuses/b5eeb909e64c675d20ff665eaadb79b74027620d"}},"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":16,"additions":100,"deletions":0,"changed_files":8}}
{"actor":{"display_login":"Philipotieno"}}