{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7","id":224189586,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MTg5NTg2","html_url":"https://github.com/Hesbon5600/Store-Manager-V1/pull/7","diff_url":"https://github.com/Hesbon5600/Store-Manager-V1/pull/7.diff","patch_url":"https://github.com/Hesbon5600/Store-Manager-V1/pull/7.patch","issue_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/7","number":7,"state":"closed","locked":false,"title":"#161310107 post sale api  endpoint","user":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"body":"**What does this PR do?**\r\nThis PR creates the endpoint for creating a user account\r\n\r\n**Description of Task to be completed**\r\nThe main tasks to be completed are:\r\nCreation of an endpoint to signup a user\r\n\r\n**How should this be manually tested?**\r\n**What does this PR do?**\r\nThis PR creates the endpoint for user login\r\n\r\n**Description of Task to be completed**\r\n_The main tasks to be completed are:_\r\nCreation of an endpoint to signup a user\r\n\r\n**How should this be manually tested?**\r\n1. Cretate  a virual enviroment with the command  \r\n`$ virtualenv -p python3 venv`  \r\n\r\n1. Activate the venv with the command     \r\n`$ source venv/bin/activate`\r\n\r\n1. Install git  \r\n1. clone this repo  \r\n`$ git@github.com:Hesbon5600/Store-Manager-V1.git\"` \r\n  \r\n1. cd into the folder Store-Manager-V1\r\n1. export required enviroments  \r\n\t`$ export SECRET_KEY=\"thisisasecretkey\"`\r\n  `$ export FLASK_APP=\"run.py\"`\r\n1. install requirements      \r\n`$ pip install -r requirements.txt` \r\n1. now we are ready to run. \r\n\t1. for tests run  \r\n\t`$ pytest`   \r\n\t1. for the application run  \r\n\t`$ flask run`  \r\n\r\nIf you ran the application you can test the  api end points using postman as follows \r\n\r\n|Endpoint|functionality|contraints(requirements)|\r\n|-------|-------------|----------|\r\n|post /api/v1//sales | create a new sale| product id, pass token|\r\n\r\n\r\n\r\nWhat are the relevant pivotal tracker stories?\r\n#161310107 \r\n\r\n**Screenshots (if appropriate)**\r\n![screenshot 230](https://user-images.githubusercontent.com/32098817/47207134-23dadf80-d393-11e8-86ed-947e1d1b3057.png)\r\n\r\n\r\n","created_at":"2018-10-19T07:06:06Z","updated_at":"2018-10-23T07:59:25Z","closed_at":"2018-10-23T07:59:25Z","merged_at":"2018-10-23T07:59:25Z","merge_commit_sha":"b9de3400cffe681161c665e19cad0409a77ff6a3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/7/comments","statuses_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/statuses/9b29ef391347b85575f0ee44cbafb916aef4a6bd","head":{"label":"Hesbon5600:ft-post-sale-api-161310107","ref":"ft-post-sale-api-161310107","sha":"9b29ef391347b85575f0ee44cbafb916aef4a6bd","user":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"repo":{"id":153648557,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2NDg1NTc=","name":"Store-Manager-V1","full_name":"Hesbon5600/Store-Manager-V1","private":false,"owner":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Hesbon5600/Store-Manager-V1","description":null,"fork":false,"url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1","forks_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/forks","keys_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/teams","hooks_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/hooks","issue_events_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/events{/number}","events_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/events","assignees_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/assignees{/user}","branches_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/branches{/branch}","tags_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/tags","blobs_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/statuses/{sha}","languages_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/languages","stargazers_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/stargazers","contributors_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/contributors","subscribers_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/subscribers","subscription_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/subscription","commits_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/contents/{+path}","compare_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/merges","archive_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/downloads","issues_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues{/number}","pulls_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls{/number}","milestones_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/milestones{/number}","notifications_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/labels{/name}","releases_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/releases{/id}","deployments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/deployments","created_at":"2018-10-18T15:43:13Z","updated_at":"2018-10-19T09:28:07Z","pushed_at":"2018-10-23T07:59:25Z","git_url":"git://github.com/Hesbon5600/Store-Manager-V1.git","ssh_url":"git@github.com:Hesbon5600/Store-Manager-V1.git","clone_url":"https://github.com/Hesbon5600/Store-Manager-V1.git","svn_url":"https://github.com/Hesbon5600/Store-Manager-V1","homepage":null,"size":92,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Hesbon5600:develop","ref":"develop","sha":"bbb96cf8cd1c529d8bc3a7627b2782284ced533c","user":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"repo":{"id":153648557,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2NDg1NTc=","name":"Store-Manager-V1","full_name":"Hesbon5600/Store-Manager-V1","private":false,"owner":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Hesbon5600/Store-Manager-V1","description":null,"fork":false,"url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1","forks_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/forks","keys_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/teams","hooks_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/hooks","issue_events_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/events{/number}","events_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/events","assignees_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/assignees{/user}","branches_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/branches{/branch}","tags_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/tags","blobs_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/statuses/{sha}","languages_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/languages","stargazers_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/stargazers","contributors_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/contributors","subscribers_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/subscribers","subscription_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/subscription","commits_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/contents/{+path}","compare_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/merges","archive_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/downloads","issues_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues{/number}","pulls_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls{/number}","milestones_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/milestones{/number}","notifications_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/labels{/name}","releases_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/releases{/id}","deployments_url":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/deployments","created_at":"2018-10-18T15:43:13Z","updated_at":"2018-10-19T09:28:07Z","pushed_at":"2018-10-23T07:59:25Z","git_url":"git://github.com/Hesbon5600/Store-Manager-V1.git","ssh_url":"git@github.com:Hesbon5600/Store-Manager-V1.git","clone_url":"https://github.com/Hesbon5600/Store-Manager-V1.git","svn_url":"https://github.com/Hesbon5600/Store-Manager-V1","homepage":null,"size":92,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7"},"html":{"href":"https://github.com/Hesbon5600/Store-Manager-V1/pull/7"},"issue":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/7"},"comments":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Hesbon5600/Store-Manager-V1/statuses/9b29ef391347b85575f0ee44cbafb916aef4a6bd"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Hesbon5600","id":32098817,"node_id":"MDQ6VXNlcjMyMDk4ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/32098817?v=4","gravatar_id":"","url":"https://api.github.com/users/Hesbon5600","html_url":"https://github.com/Hesbon5600","followers_url":"https://api.github.com/users/Hesbon5600/followers","following_url":"https://api.github.com/users/Hesbon5600/following{/other_user}","gists_url":"https://api.github.com/users/Hesbon5600/gists{/gist_id}","starred_url":"https://api.github.com/users/Hesbon5600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hesbon5600/subscriptions","organizations_url":"https://api.github.com/users/Hesbon5600/orgs","repos_url":"https://api.github.com/users/Hesbon5600/repos","events_url":"https://api.github.com/users/Hesbon5600/events{/privacy}","received_events_url":"https://api.github.com/users/Hesbon5600/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":16,"additions":655,"deletions":0,"changed_files":15}}
{"actor":{"display_login":"Hesbon5600"}}