{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/comments/73406284","id":73406284,"diff_hunk":"@@ -78,7 +81,35 @@ Then, make each route respond with a one-word string containing the RESTful acti\n var express = require(\"express\");\n var app = express();\n \n-// Your code starts here...\n+// index\n+app.get(\"/api/doctors\", function(req, res){\n+  Doctor.find({}).then(function(doctors){\n+    res.json(doctors)\n+  });\n+});\n+\n+// show\n+app.get(\"/api/doctors/:name\", function(req, res){\n+  Doctor.findOne({name: req.params.name}).then(function(doctor){\n+    res.json(doctor)\n+  });\n+});\n+\n+\n+// delete\n+app.delete(\"/api/doctors/:name\", function(req, res){\n+  Doctor.findOneAndRemove({name: req.params.name}).then(function(){\n+    res.json({ success: true })\n+  });\n+});\n+\n+\n+// update\n+app.put(\"/api/doctors/:name\", function(req, res){\n+  Doctor.findOneAndUpdate({name: req.params.name}, req.body.doctor, {new: true}).then(function(doctor){\n+    res.json(doctor)\n+  });\n+});","path":"README.md","position":81,"original_position":81,"commit_id":"b222bf31f449981ac471baf985336e164abf9583","original_commit_id":"b222bf31f449981ac471baf985336e164abf9583","user":{"login":"amaseda","id":3519147,"avatar_url":"https://avatars.githubusercontent.com/u/3519147?v=3","gravatar_id":"","url":"https://api.github.com/users/amaseda","html_url":"https://github.com/amaseda","followers_url":"https://api.github.com/users/amaseda/followers","following_url":"https://api.github.com/users/amaseda/following{/other_user}","gists_url":"https://api.github.com/users/amaseda/gists{/gist_id}","starred_url":"https://api.github.com/users/amaseda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaseda/subscriptions","organizations_url":"https://api.github.com/users/amaseda/orgs","repos_url":"https://api.github.com/users/amaseda/repos","events_url":"https://api.github.com/users/amaseda/events{/privacy}","received_events_url":"https://api.github.com/users/amaseda/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2016-08-03T19:41:35Z","updated_at":"2016-08-03T19:41:35Z","html_url":"https://github.com/ga-wdi-quizzes/week-10/pull/41#discussion_r73406284","pull_request_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/comments/73406284"},"html":{"href":"https://github.com/ga-wdi-quizzes/week-10/pull/41#discussion_r73406284"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41","id":79563519,"html_url":"https://github.com/ga-wdi-quizzes/week-10/pull/41","diff_url":"https://github.com/ga-wdi-quizzes/week-10/pull/41.diff","patch_url":"https://github.com/ga-wdi-quizzes/week-10/pull/41.patch","issue_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/41","number":41,"state":"open","locked":false,"title":"Week 10 Quiz - James G","user":{"login":"wombatdev","id":17993203,"avatar_url":"https://avatars.githubusercontent.com/u/17993203?v=3","gravatar_id":"","url":"https://api.github.com/users/wombatdev","html_url":"https://github.com/wombatdev","followers_url":"https://api.github.com/users/wombatdev/followers","following_url":"https://api.github.com/users/wombatdev/following{/other_user}","gists_url":"https://api.github.com/users/wombatdev/gists{/gist_id}","starred_url":"https://api.github.com/users/wombatdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wombatdev/subscriptions","organizations_url":"https://api.github.com/users/wombatdev/orgs","repos_url":"https://api.github.com/users/wombatdev/repos","events_url":"https://api.github.com/users/wombatdev/events{/privacy}","received_events_url":"https://api.github.com/users/wombatdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-01T12:55:58Z","updated_at":"2016-08-03T19:41:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cf3224fb94a6c1a6990c93ee6eaf7da43f804b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/41/comments","statuses_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/statuses/b222bf31f449981ac471baf985336e164abf9583","head":{"label":"wombatdev:master","ref":"master","sha":"b222bf31f449981ac471baf985336e164abf9583","user":{"login":"wombatdev","id":17993203,"avatar_url":"https://avatars.githubusercontent.com/u/17993203?v=3","gravatar_id":"","url":"https://api.github.com/users/wombatdev","html_url":"https://github.com/wombatdev","followers_url":"https://api.github.com/users/wombatdev/followers","following_url":"https://api.github.com/users/wombatdev/following{/other_user}","gists_url":"https://api.github.com/users/wombatdev/gists{/gist_id}","starred_url":"https://api.github.com/users/wombatdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wombatdev/subscriptions","organizations_url":"https://api.github.com/users/wombatdev/orgs","repos_url":"https://api.github.com/users/wombatdev/repos","events_url":"https://api.github.com/users/wombatdev/events{/privacy}","received_events_url":"https://api.github.com/users/wombatdev/received_events","type":"User","site_admin":false},"repo":{"id":64665680,"name":"week-10","full_name":"wombatdev/week-10","owner":{"login":"wombatdev","id":17993203,"avatar_url":"https://avatars.githubusercontent.com/u/17993203?v=3","gravatar_id":"","url":"https://api.github.com/users/wombatdev","html_url":"https://github.com/wombatdev","followers_url":"https://api.github.com/users/wombatdev/followers","following_url":"https://api.github.com/users/wombatdev/following{/other_user}","gists_url":"https://api.github.com/users/wombatdev/gists{/gist_id}","starred_url":"https://api.github.com/users/wombatdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wombatdev/subscriptions","organizations_url":"https://api.github.com/users/wombatdev/orgs","repos_url":"https://api.github.com/users/wombatdev/repos","events_url":"https://api.github.com/users/wombatdev/events{/privacy}","received_events_url":"https://api.github.com/users/wombatdev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wombatdev/week-10","description":"[express, mean, mongo, mongoose, mvc, auth, oauth]","fork":true,"url":"https://api.github.com/repos/wombatdev/week-10","forks_url":"https://api.github.com/repos/wombatdev/week-10/forks","keys_url":"https://api.github.com/repos/wombatdev/week-10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wombatdev/week-10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wombatdev/week-10/teams","hooks_url":"https://api.github.com/repos/wombatdev/week-10/hooks","issue_events_url":"https://api.github.com/repos/wombatdev/week-10/issues/events{/number}","events_url":"https://api.github.com/repos/wombatdev/week-10/events","assignees_url":"https://api.github.com/repos/wombatdev/week-10/assignees{/user}","branches_url":"https://api.github.com/repos/wombatdev/week-10/branches{/branch}","tags_url":"https://api.github.com/repos/wombatdev/week-10/tags","blobs_url":"https://api.github.com/repos/wombatdev/week-10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wombatdev/week-10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wombatdev/week-10/git/refs{/sha}","trees_url":"https://api.github.com/repos/wombatdev/week-10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wombatdev/week-10/statuses/{sha}","languages_url":"https://api.github.com/repos/wombatdev/week-10/languages","stargazers_url":"https://api.github.com/repos/wombatdev/week-10/stargazers","contributors_url":"https://api.github.com/repos/wombatdev/week-10/contributors","subscribers_url":"https://api.github.com/repos/wombatdev/week-10/subscribers","subscription_url":"https://api.github.com/repos/wombatdev/week-10/subscription","commits_url":"https://api.github.com/repos/wombatdev/week-10/commits{/sha}","git_commits_url":"https://api.github.com/repos/wombatdev/week-10/git/commits{/sha}","comments_url":"https://api.github.com/repos/wombatdev/week-10/comments{/number}","issue_comment_url":"https://api.github.com/repos/wombatdev/week-10/issues/comments{/number}","contents_url":"https://api.github.com/repos/wombatdev/week-10/contents/{+path}","compare_url":"https://api.github.com/repos/wombatdev/week-10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wombatdev/week-10/merges","archive_url":"https://api.github.com/repos/wombatdev/week-10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wombatdev/week-10/downloads","issues_url":"https://api.github.com/repos/wombatdev/week-10/issues{/number}","pulls_url":"https://api.github.com/repos/wombatdev/week-10/pulls{/number}","milestones_url":"https://api.github.com/repos/wombatdev/week-10/milestones{/number}","notifications_url":"https://api.github.com/repos/wombatdev/week-10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wombatdev/week-10/labels{/name}","releases_url":"https://api.github.com/repos/wombatdev/week-10/releases{/id}","deployments_url":"https://api.github.com/repos/wombatdev/week-10/deployments","created_at":"2016-08-01T12:40:12Z","updated_at":"2016-02-02T19:10:52Z","pushed_at":"2016-08-01T12:55:37Z","git_url":"git://github.com/wombatdev/week-10.git","ssh_url":"git@github.com:wombatdev/week-10.git","clone_url":"https://github.com/wombatdev/week-10.git","svn_url":"https://github.com/wombatdev/week-10","homepage":"","size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-quizzes:master","ref":"master","sha":"823b94fcaa8723b7b7cc90022f319f689e3f5d0c","user":{"login":"ga-wdi-quizzes","id":17028361,"avatar_url":"https://avatars.githubusercontent.com/u/17028361?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-quizzes","html_url":"https://github.com/ga-wdi-quizzes","followers_url":"https://api.github.com/users/ga-wdi-quizzes/followers","following_url":"https://api.github.com/users/ga-wdi-quizzes/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-quizzes/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-quizzes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-quizzes/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-quizzes/orgs","repos_url":"https://api.github.com/users/ga-wdi-quizzes/repos","events_url":"https://api.github.com/users/ga-wdi-quizzes/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-quizzes/received_events","type":"Organization","site_admin":false},"repo":{"id":50944395,"name":"week-10","full_name":"ga-wdi-quizzes/week-10","owner":{"login":"ga-wdi-quizzes","id":17028361,"avatar_url":"https://avatars.githubusercontent.com/u/17028361?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-quizzes","html_url":"https://github.com/ga-wdi-quizzes","followers_url":"https://api.github.com/users/ga-wdi-quizzes/followers","following_url":"https://api.github.com/users/ga-wdi-quizzes/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-quizzes/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-quizzes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-quizzes/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-quizzes/orgs","repos_url":"https://api.github.com/users/ga-wdi-quizzes/repos","events_url":"https://api.github.com/users/ga-wdi-quizzes/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-quizzes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-quizzes/week-10","description":"[express, mean, mongo, mongoose, mvc, auth, oauth]","fork":false,"url":"https://api.github.com/repos/ga-wdi-quizzes/week-10","forks_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/forks","keys_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/teams","hooks_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/events","assignees_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/tags","blobs_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/subscription","commits_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/merges","archive_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/downloads","issues_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-quizzes/week-10/deployments","created_at":"2016-02-02T19:04:08Z","updated_at":"2016-02-02T19:10:52Z","pushed_at":"2016-08-01T19:00:14Z","git_url":"git://github.com/ga-wdi-quizzes/week-10.git","ssh_url":"git@github.com:ga-wdi-quizzes/week-10.git","clone_url":"https://github.com/ga-wdi-quizzes/week-10.git","svn_url":"https://github.com/ga-wdi-quizzes/week-10","homepage":"","size":41,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":12,"forks":39,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41"},"html":{"href":"https://github.com/ga-wdi-quizzes/week-10/pull/41"},"issue":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/41"},"comments":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-quizzes/week-10/statuses/b222bf31f449981ac471baf985336e164abf9583"}}}}
{"actor":{"display_login":"amaseda"}}