{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47","id":177559979,"html_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1/pull/47","diff_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1/pull/47.diff","patch_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1/pull/47.patch","issue_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/47","number":47,"state":"closed","locked":false,"title":"DELETE AND PUT Products","user":{"login":"EduardoDuQuesne","id":28117449,"avatar_url":"https://avatars2.githubusercontent.com/u/28117449?v=4","gravatar_id":"","url":"https://api.github.com/users/EduardoDuQuesne","html_url":"https://github.com/EduardoDuQuesne","followers_url":"https://api.github.com/users/EduardoDuQuesne/followers","following_url":"https://api.github.com/users/EduardoDuQuesne/following{/other_user}","gists_url":"https://api.github.com/users/EduardoDuQuesne/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoDuQuesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoDuQuesne/subscriptions","organizations_url":"https://api.github.com/users/EduardoDuQuesne/orgs","repos_url":"https://api.github.com/users/EduardoDuQuesne/repos","events_url":"https://api.github.com/users/EduardoDuQuesne/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoDuQuesne/received_events","type":"User","site_admin":false},"body":"## DESCRIPTION\r\nAdded function to DELETE and PUT products. \r\n\r\nNecessary functions to meet requirements\r\n\r\n#### Run API\r\n1. Rebuild database if necessary\r\n```javascript\r\n$ node db/build_db.js\r\n```\r\n2. Run app.js\r\n```javascript\r\n$ nodemon app.js\r\n``` \r\n#### PUT Function\r\n1. In postman, place the following link in the URL bar. Replace ':id' with the desired product_id.\r\n```javascript\r\nhttp://localhost:4200/api/v1/products/:id/edit\r\n```\r\n2. Put some or all of dummy data into body and select JSON\r\n```javascript\r\n{\r\n    \"title\": \"Cool funky hat\",\r\n    \"price\": \"15.00\",\r\n    \"description\": \"Be a cool funky guy with this cool funky hat\",\r\n    \"type_id\": 1,\r\n    \"seller_id\": 2\r\n}\r\n```\r\n3. Check if data has been updated.\r\n\r\n#### DELETE Function\r\n* Still need to work on CASCADE DELETE function\r\n1. In postman, place the following link in the URL bar. Replace ':id' with the desired product_id.\r\n```javascript\r\nhttp://localhost:4200/api/v1/products/:id/delete\r\n```\r\n2. Check if product has been removed from the database\r\n\r\n## REFERENCE\r\n[ISSUE - Products](#2 )\r\n[TICKET - CRUD Product Routes](https://github.com/Squirrely-Ducks/bangazon-api-sprint-1/projects/1#card-8318615)","created_at":"2018-03-26T20:33:58Z","updated_at":"2018-03-26T20:36:58Z","closed_at":"2018-03-26T20:36:58Z","merged_at":"2018-03-26T20:36:58Z","merge_commit_sha":"491950632c30d7ca9793237343cc5b8162d1f83a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47/commits","review_comments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47/comments","review_comment_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/47/comments","statuses_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/statuses/2a76799624f9f6962504bdd86c2f3c779e7eaa1e","head":{"label":"Squirrely-Ducks:ed_delete_products","ref":"ed_delete_products","sha":"2a76799624f9f6962504bdd86c2f3c779e7eaa1e","user":{"login":"Squirrely-Ducks","id":37586223,"avatar_url":"https://avatars2.githubusercontent.com/u/37586223?v=4","gravatar_id":"","url":"https://api.github.com/users/Squirrely-Ducks","html_url":"https://github.com/Squirrely-Ducks","followers_url":"https://api.github.com/users/Squirrely-Ducks/followers","following_url":"https://api.github.com/users/Squirrely-Ducks/following{/other_user}","gists_url":"https://api.github.com/users/Squirrely-Ducks/gists{/gist_id}","starred_url":"https://api.github.com/users/Squirrely-Ducks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squirrely-Ducks/subscriptions","organizations_url":"https://api.github.com/users/Squirrely-Ducks/orgs","repos_url":"https://api.github.com/users/Squirrely-Ducks/repos","events_url":"https://api.github.com/users/Squirrely-Ducks/events{/privacy}","received_events_url":"https://api.github.com/users/Squirrely-Ducks/received_events","type":"Organization","site_admin":false},"repo":{"id":126029854,"name":"bangazon-api-sprint-1","full_name":"Squirrely-Ducks/bangazon-api-sprint-1","owner":{"login":"Squirrely-Ducks","id":37586223,"avatar_url":"https://avatars2.githubusercontent.com/u/37586223?v=4","gravatar_id":"","url":"https://api.github.com/users/Squirrely-Ducks","html_url":"https://github.com/Squirrely-Ducks","followers_url":"https://api.github.com/users/Squirrely-Ducks/followers","following_url":"https://api.github.com/users/Squirrely-Ducks/following{/other_user}","gists_url":"https://api.github.com/users/Squirrely-Ducks/gists{/gist_id}","starred_url":"https://api.github.com/users/Squirrely-Ducks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squirrely-Ducks/subscriptions","organizations_url":"https://api.github.com/users/Squirrely-Ducks/orgs","repos_url":"https://api.github.com/users/Squirrely-Ducks/repos","events_url":"https://api.github.com/users/Squirrely-Ducks/events{/privacy}","received_events_url":"https://api.github.com/users/Squirrely-Ducks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1","description":null,"fork":false,"url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1","forks_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/forks","keys_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/teams","hooks_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/hooks","issue_events_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/events{/number}","events_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/events","assignees_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/assignees{/user}","branches_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/branches{/branch}","tags_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/tags","blobs_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/languages","stargazers_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/stargazers","contributors_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/contributors","subscribers_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/subscribers","subscription_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/subscription","commits_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/contents/{+path}","compare_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/merges","archive_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/downloads","issues_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues{/number}","pulls_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/labels{/name}","releases_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/releases{/id}","deployments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/deployments","created_at":"2018-03-20T14:24:59Z","updated_at":"2018-03-26T20:01:08Z","pushed_at":"2018-03-26T20:36:58Z","git_url":"git://github.com/Squirrely-Ducks/bangazon-api-sprint-1.git","ssh_url":"git@github.com:Squirrely-Ducks/bangazon-api-sprint-1.git","clone_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1.git","svn_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1","homepage":null,"size":348,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"Squirrely-Ducks:master","ref":"master","sha":"f43eb6758cea06cebce2e952fb60637464b6ed74","user":{"login":"Squirrely-Ducks","id":37586223,"avatar_url":"https://avatars2.githubusercontent.com/u/37586223?v=4","gravatar_id":"","url":"https://api.github.com/users/Squirrely-Ducks","html_url":"https://github.com/Squirrely-Ducks","followers_url":"https://api.github.com/users/Squirrely-Ducks/followers","following_url":"https://api.github.com/users/Squirrely-Ducks/following{/other_user}","gists_url":"https://api.github.com/users/Squirrely-Ducks/gists{/gist_id}","starred_url":"https://api.github.com/users/Squirrely-Ducks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squirrely-Ducks/subscriptions","organizations_url":"https://api.github.com/users/Squirrely-Ducks/orgs","repos_url":"https://api.github.com/users/Squirrely-Ducks/repos","events_url":"https://api.github.com/users/Squirrely-Ducks/events{/privacy}","received_events_url":"https://api.github.com/users/Squirrely-Ducks/received_events","type":"Organization","site_admin":false},"repo":{"id":126029854,"name":"bangazon-api-sprint-1","full_name":"Squirrely-Ducks/bangazon-api-sprint-1","owner":{"login":"Squirrely-Ducks","id":37586223,"avatar_url":"https://avatars2.githubusercontent.com/u/37586223?v=4","gravatar_id":"","url":"https://api.github.com/users/Squirrely-Ducks","html_url":"https://github.com/Squirrely-Ducks","followers_url":"https://api.github.com/users/Squirrely-Ducks/followers","following_url":"https://api.github.com/users/Squirrely-Ducks/following{/other_user}","gists_url":"https://api.github.com/users/Squirrely-Ducks/gists{/gist_id}","starred_url":"https://api.github.com/users/Squirrely-Ducks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Squirrely-Ducks/subscriptions","organizations_url":"https://api.github.com/users/Squirrely-Ducks/orgs","repos_url":"https://api.github.com/users/Squirrely-Ducks/repos","events_url":"https://api.github.com/users/Squirrely-Ducks/events{/privacy}","received_events_url":"https://api.github.com/users/Squirrely-Ducks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1","description":null,"fork":false,"url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1","forks_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/forks","keys_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/teams","hooks_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/hooks","issue_events_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/events{/number}","events_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/events","assignees_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/assignees{/user}","branches_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/branches{/branch}","tags_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/tags","blobs_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/languages","stargazers_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/stargazers","contributors_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/contributors","subscribers_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/subscribers","subscription_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/subscription","commits_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/contents/{+path}","compare_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/merges","archive_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/downloads","issues_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues{/number}","pulls_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/labels{/name}","releases_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/releases{/id}","deployments_url":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/deployments","created_at":"2018-03-20T14:24:59Z","updated_at":"2018-03-26T20:01:08Z","pushed_at":"2018-03-26T20:36:58Z","git_url":"git://github.com/Squirrely-Ducks/bangazon-api-sprint-1.git","ssh_url":"git@github.com:Squirrely-Ducks/bangazon-api-sprint-1.git","clone_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1.git","svn_url":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1","homepage":null,"size":348,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47"},"html":{"href":"https://github.com/Squirrely-Ducks/bangazon-api-sprint-1/pull/47"},"issue":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/47"},"comments":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/Squirrely-Ducks/bangazon-api-sprint-1/statuses/2a76799624f9f6962504bdd86c2f3c779e7eaa1e"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"EduardoDuQuesne","id":28117449,"avatar_url":"https://avatars2.githubusercontent.com/u/28117449?v=4","gravatar_id":"","url":"https://api.github.com/users/EduardoDuQuesne","html_url":"https://github.com/EduardoDuQuesne","followers_url":"https://api.github.com/users/EduardoDuQuesne/followers","following_url":"https://api.github.com/users/EduardoDuQuesne/following{/other_user}","gists_url":"https://api.github.com/users/EduardoDuQuesne/gists{/gist_id}","starred_url":"https://api.github.com/users/EduardoDuQuesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EduardoDuQuesne/subscriptions","organizations_url":"https://api.github.com/users/EduardoDuQuesne/orgs","repos_url":"https://api.github.com/users/EduardoDuQuesne/repos","events_url":"https://api.github.com/users/EduardoDuQuesne/events{/privacy}","received_events_url":"https://api.github.com/users/EduardoDuQuesne/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":59,"deletions":7,"changed_files":4}}
{"actor":{"display_login":"EduardoDuQuesne"}}