{"action":"created","comment":{"url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/comments/233639019","pull_request_review_id":175066942,"id":233639019,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzYzOTAxOQ==","diff_hunk":"@@ -0,0 +1,43 @@\n+const express = require('express');\n+const router = express.Router();\n+const Detail = require('../../db/Detail.js');\n+\n+//get detail info for all houses\n+router.get('/homes/all', (req, res) => {\n+  Detail.find({})\n+    .then(data => res.send(data))\n+    .catch(error => res.sendStatus(500));\n+});\n+\n+//get detail info for one house\n+router.get('/homes/:home', (req, res) => {\n+  Detail.findOne({ _index: req.params.home })\n+    .then(data => res.send(data))\n+    .catch(error => res.sendStatus(500));\n+}); \n+\n+//post detail info for one house\n+router.post('/homes/:home', (req, res) => {\n+  let body = req.body.data;\n+  Detail.insert({ body })\n+    .then(result => res.send(result))","path":"server/routes/detail.js","position":23,"original_position":23,"commit_id":"6b2583ab0aeccabc1ec9949b3ef8aea850b6f65c","original_commit_id":"6b2583ab0aeccabc1ec9949b3ef8aea850b6f65c","user":{"login":"lfelberg","id":11411396,"node_id":"MDQ6VXNlcjExNDExMzk2","avatar_url":"https://avatars1.githubusercontent.com/u/11411396?v=4","gravatar_id":"","url":"https://api.github.com/users/lfelberg","html_url":"https://github.com/lfelberg","followers_url":"https://api.github.com/users/lfelberg/followers","following_url":"https://api.github.com/users/lfelberg/following{/other_user}","gists_url":"https://api.github.com/users/lfelberg/gists{/gist_id}","starred_url":"https://api.github.com/users/lfelberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfelberg/subscriptions","organizations_url":"https://api.github.com/users/lfelberg/orgs","repos_url":"https://api.github.com/users/lfelberg/repos","events_url":"https://api.github.com/users/lfelberg/events{/privacy}","received_events_url":"https://api.github.com/users/lfelberg/received_events","type":"User","site_admin":false},"body":"Also a nitpick, but you switched from using data in the past 2 methods to result here.","created_at":"2018-11-14T22:06:37Z","updated_at":"2018-11-14T22:17:04Z","html_url":"https://github.com/ZillowDB/detailed-part/pull/1#discussion_r233639019","pull_request_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/comments/233639019"},"html":{"href":"https://github.com/ZillowDB/detailed-part/pull/1#discussion_r233639019"},"pull_request":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1","id":230959978,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwOTU5OTc4","html_url":"https://github.com/ZillowDB/detailed-part/pull/1","diff_url":"https://github.com/ZillowDB/detailed-part/pull/1.diff","patch_url":"https://github.com/ZillowDB/detailed-part/pull/1.patch","issue_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/1","number":1,"state":"open","locked":false,"title":"Implements CRUD API routes for detail and userRequest","user":{"login":"CharlieAxelrod","id":41997444,"node_id":"MDQ6VXNlcjQxOTk3NDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/41997444?v=4","gravatar_id":"","url":"https://api.github.com/users/CharlieAxelrod","html_url":"https://github.com/CharlieAxelrod","followers_url":"https://api.github.com/users/CharlieAxelrod/followers","following_url":"https://api.github.com/users/CharlieAxelrod/following{/other_user}","gists_url":"https://api.github.com/users/CharlieAxelrod/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlieAxelrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlieAxelrod/subscriptions","organizations_url":"https://api.github.com/users/CharlieAxelrod/orgs","repos_url":"https://api.github.com/users/CharlieAxelrod/repos","events_url":"https://api.github.com/users/CharlieAxelrod/events{/privacy}","received_events_url":"https://api.github.com/users/CharlieAxelrod/received_events","type":"User","site_admin":false},"body":"This branch includes the new and updated API routes for both components. It's worth noting that while I completed the API routes for userRequest, I will be working exclusively on the detail component from here onwards.","created_at":"2018-11-14T19:49:41Z","updated_at":"2018-11-14T22:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d60c85aec01891f7075c12412de7e927775e598e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/1/comments","statuses_url":"https://api.github.com/repos/ZillowDB/detailed-part/statuses/6b2583ab0aeccabc1ec9949b3ef8aea850b6f65c","head":{"label":"ZillowDB:crudAPI","ref":"crudAPI","sha":"6b2583ab0aeccabc1ec9949b3ef8aea850b6f65c","user":{"login":"ZillowDB","id":45020143,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwMTQz","avatar_url":"https://avatars1.githubusercontent.com/u/45020143?v=4","gravatar_id":"","url":"https://api.github.com/users/ZillowDB","html_url":"https://github.com/ZillowDB","followers_url":"https://api.github.com/users/ZillowDB/followers","following_url":"https://api.github.com/users/ZillowDB/following{/other_user}","gists_url":"https://api.github.com/users/ZillowDB/gists{/gist_id}","starred_url":"https://api.github.com/users/ZillowDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZillowDB/subscriptions","organizations_url":"https://api.github.com/users/ZillowDB/orgs","repos_url":"https://api.github.com/users/ZillowDB/repos","events_url":"https://api.github.com/users/ZillowDB/events{/privacy}","received_events_url":"https://api.github.com/users/ZillowDB/received_events","type":"Organization","site_admin":false},"repo":{"id":157462601,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0NjI2MDE=","name":"detailed-part","full_name":"ZillowDB/detailed-part","private":false,"owner":{"login":"ZillowDB","id":45020143,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwMTQz","avatar_url":"https://avatars1.githubusercontent.com/u/45020143?v=4","gravatar_id":"","url":"https://api.github.com/users/ZillowDB","html_url":"https://github.com/ZillowDB","followers_url":"https://api.github.com/users/ZillowDB/followers","following_url":"https://api.github.com/users/ZillowDB/following{/other_user}","gists_url":"https://api.github.com/users/ZillowDB/gists{/gist_id}","starred_url":"https://api.github.com/users/ZillowDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZillowDB/subscriptions","organizations_url":"https://api.github.com/users/ZillowDB/orgs","repos_url":"https://api.github.com/users/ZillowDB/repos","events_url":"https://api.github.com/users/ZillowDB/events{/privacy}","received_events_url":"https://api.github.com/users/ZillowDB/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ZillowDB/detailed-part","description":"detail contents for each items","fork":true,"url":"https://api.github.com/repos/ZillowDB/detailed-part","forks_url":"https://api.github.com/repos/ZillowDB/detailed-part/forks","keys_url":"https://api.github.com/repos/ZillowDB/detailed-part/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZillowDB/detailed-part/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZillowDB/detailed-part/teams","hooks_url":"https://api.github.com/repos/ZillowDB/detailed-part/hooks","issue_events_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/events{/number}","events_url":"https://api.github.com/repos/ZillowDB/detailed-part/events","assignees_url":"https://api.github.com/repos/ZillowDB/detailed-part/assignees{/user}","branches_url":"https://api.github.com/repos/ZillowDB/detailed-part/branches{/branch}","tags_url":"https://api.github.com/repos/ZillowDB/detailed-part/tags","blobs_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZillowDB/detailed-part/statuses/{sha}","languages_url":"https://api.github.com/repos/ZillowDB/detailed-part/languages","stargazers_url":"https://api.github.com/repos/ZillowDB/detailed-part/stargazers","contributors_url":"https://api.github.com/repos/ZillowDB/detailed-part/contributors","subscribers_url":"https://api.github.com/repos/ZillowDB/detailed-part/subscribers","subscription_url":"https://api.github.com/repos/ZillowDB/detailed-part/subscription","commits_url":"https://api.github.com/repos/ZillowDB/detailed-part/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZillowDB/detailed-part/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZillowDB/detailed-part/contents/{+path}","compare_url":"https://api.github.com/repos/ZillowDB/detailed-part/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZillowDB/detailed-part/merges","archive_url":"https://api.github.com/repos/ZillowDB/detailed-part/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZillowDB/detailed-part/downloads","issues_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues{/number}","pulls_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls{/number}","milestones_url":"https://api.github.com/repos/ZillowDB/detailed-part/milestones{/number}","notifications_url":"https://api.github.com/repos/ZillowDB/detailed-part/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZillowDB/detailed-part/labels{/name}","releases_url":"https://api.github.com/repos/ZillowDB/detailed-part/releases{/id}","deployments_url":"https://api.github.com/repos/ZillowDB/detailed-part/deployments","created_at":"2018-11-13T23:47:51Z","updated_at":"2018-11-13T23:47:53Z","pushed_at":"2018-11-14T19:49:42Z","git_url":"git://github.com/ZillowDB/detailed-part.git","ssh_url":"git@github.com:ZillowDB/detailed-part.git","clone_url":"https://github.com/ZillowDB/detailed-part.git","svn_url":"https://github.com/ZillowDB/detailed-part","homepage":null,"size":1896,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"master"}},"base":{"label":"ZillowDB:master","ref":"master","sha":"11ee3ff228bc2f0b61c874b4f207fb1d4f7fe2ea","user":{"login":"ZillowDB","id":45020143,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwMTQz","avatar_url":"https://avatars1.githubusercontent.com/u/45020143?v=4","gravatar_id":"","url":"https://api.github.com/users/ZillowDB","html_url":"https://github.com/ZillowDB","followers_url":"https://api.github.com/users/ZillowDB/followers","following_url":"https://api.github.com/users/ZillowDB/following{/other_user}","gists_url":"https://api.github.com/users/ZillowDB/gists{/gist_id}","starred_url":"https://api.github.com/users/ZillowDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZillowDB/subscriptions","organizations_url":"https://api.github.com/users/ZillowDB/orgs","repos_url":"https://api.github.com/users/ZillowDB/repos","events_url":"https://api.github.com/users/ZillowDB/events{/privacy}","received_events_url":"https://api.github.com/users/ZillowDB/received_events","type":"Organization","site_admin":false},"repo":{"id":157462601,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0NjI2MDE=","name":"detailed-part","full_name":"ZillowDB/detailed-part","private":false,"owner":{"login":"ZillowDB","id":45020143,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MDIwMTQz","avatar_url":"https://avatars1.githubusercontent.com/u/45020143?v=4","gravatar_id":"","url":"https://api.github.com/users/ZillowDB","html_url":"https://github.com/ZillowDB","followers_url":"https://api.github.com/users/ZillowDB/followers","following_url":"https://api.github.com/users/ZillowDB/following{/other_user}","gists_url":"https://api.github.com/users/ZillowDB/gists{/gist_id}","starred_url":"https://api.github.com/users/ZillowDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZillowDB/subscriptions","organizations_url":"https://api.github.com/users/ZillowDB/orgs","repos_url":"https://api.github.com/users/ZillowDB/repos","events_url":"https://api.github.com/users/ZillowDB/events{/privacy}","received_events_url":"https://api.github.com/users/ZillowDB/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ZillowDB/detailed-part","description":"detail contents for each items","fork":true,"url":"https://api.github.com/repos/ZillowDB/detailed-part","forks_url":"https://api.github.com/repos/ZillowDB/detailed-part/forks","keys_url":"https://api.github.com/repos/ZillowDB/detailed-part/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZillowDB/detailed-part/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZillowDB/detailed-part/teams","hooks_url":"https://api.github.com/repos/ZillowDB/detailed-part/hooks","issue_events_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/events{/number}","events_url":"https://api.github.com/repos/ZillowDB/detailed-part/events","assignees_url":"https://api.github.com/repos/ZillowDB/detailed-part/assignees{/user}","branches_url":"https://api.github.com/repos/ZillowDB/detailed-part/branches{/branch}","tags_url":"https://api.github.com/repos/ZillowDB/detailed-part/tags","blobs_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZillowDB/detailed-part/statuses/{sha}","languages_url":"https://api.github.com/repos/ZillowDB/detailed-part/languages","stargazers_url":"https://api.github.com/repos/ZillowDB/detailed-part/stargazers","contributors_url":"https://api.github.com/repos/ZillowDB/detailed-part/contributors","subscribers_url":"https://api.github.com/repos/ZillowDB/detailed-part/subscribers","subscription_url":"https://api.github.com/repos/ZillowDB/detailed-part/subscription","commits_url":"https://api.github.com/repos/ZillowDB/detailed-part/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZillowDB/detailed-part/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZillowDB/detailed-part/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZillowDB/detailed-part/contents/{+path}","compare_url":"https://api.github.com/repos/ZillowDB/detailed-part/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZillowDB/detailed-part/merges","archive_url":"https://api.github.com/repos/ZillowDB/detailed-part/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZillowDB/detailed-part/downloads","issues_url":"https://api.github.com/repos/ZillowDB/detailed-part/issues{/number}","pulls_url":"https://api.github.com/repos/ZillowDB/detailed-part/pulls{/number}","milestones_url":"https://api.github.com/repos/ZillowDB/detailed-part/milestones{/number}","notifications_url":"https://api.github.com/repos/ZillowDB/detailed-part/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZillowDB/detailed-part/labels{/name}","releases_url":"https://api.github.com/repos/ZillowDB/detailed-part/releases{/id}","deployments_url":"https://api.github.com/repos/ZillowDB/detailed-part/deployments","created_at":"2018-11-13T23:47:51Z","updated_at":"2018-11-13T23:47:53Z","pushed_at":"2018-11-14T19:49:42Z","git_url":"git://github.com/ZillowDB/detailed-part.git","ssh_url":"git@github.com:ZillowDB/detailed-part.git","clone_url":"https://github.com/ZillowDB/detailed-part.git","svn_url":"https://github.com/ZillowDB/detailed-part","homepage":null,"size":1896,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1"},"html":{"href":"https://github.com/ZillowDB/detailed-part/pull/1"},"issue":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/issues/1"},"comments":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ZillowDB/detailed-part/statuses/6b2583ab0aeccabc1ec9949b3ef8aea850b6f65c"}},"author_association":"NONE"}}
{"actor":{"display_login":"lfelberg"}}