{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments/44380852","id":44380852,"diff_hunk":"@@ -0,0 +1,12 @@\n+class Api::Students::CommentsController < Api::BaseController\n+    # TODO (warren) Check if we should extend ApiBaseController\n+\n+    respond_to :json","path":"app/controllers/api/students/comments_controller.rb","position":4,"original_position":4,"commit_id":"fa34c17349b925f15f99ab40f6fdfc62163229b3","original_commit_id":"fa34c17349b925f15f99ab40f6fdfc62163229b3","user":{"login":"warrenshen","id":8787796,"avatar_url":"https://avatars.githubusercontent.com/u/8787796?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenshen","html_url":"https://github.com/warrenshen","followers_url":"https://api.github.com/users/warrenshen/followers","following_url":"https://api.github.com/users/warrenshen/following{/other_user}","gists_url":"https://api.github.com/users/warrenshen/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenshen/subscriptions","organizations_url":"https://api.github.com/users/warrenshen/orgs","repos_url":"https://api.github.com/users/warrenshen/repos","events_url":"https://api.github.com/users/warrenshen/events{/privacy}","received_events_url":"https://api.github.com/users/warrenshen/received_events","type":"User","site_admin":false},"body":"Don't actually need `respond_to :json` since it'll inherit that from `Api::BaseController`.","created_at":"2015-11-10T08:38:26Z","updated_at":"2015-11-10T08:38:26Z","html_url":"https://github.com/calblueprint/edge-yl/pull/293#discussion_r44380852","pull_request_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments/44380852"},"html":{"href":"https://github.com/calblueprint/edge-yl/pull/293#discussion_r44380852"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293","id":50218668,"html_url":"https://github.com/calblueprint/edge-yl/pull/293","diff_url":"https://github.com/calblueprint/edge-yl/pull/293.diff","patch_url":"https://github.com/calblueprint/edge-yl/pull/293.patch","issue_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/293","number":293,"state":"open","locked":false,"title":"Add Comment Controller Scoped under Student","user":{"login":"maxwolffe","id":3267539,"avatar_url":"https://avatars.githubusercontent.com/u/3267539?v=3","gravatar_id":"","url":"https://api.github.com/users/maxwolffe","html_url":"https://github.com/maxwolffe","followers_url":"https://api.github.com/users/maxwolffe/followers","following_url":"https://api.github.com/users/maxwolffe/following{/other_user}","gists_url":"https://api.github.com/users/maxwolffe/gists{/gist_id}","starred_url":"https://api.github.com/users/maxwolffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxwolffe/subscriptions","organizations_url":"https://api.github.com/users/maxwolffe/orgs","repos_url":"https://api.github.com/users/maxwolffe/repos","events_url":"https://api.github.com/users/maxwolffe/events{/privacy}","received_events_url":"https://api.github.com/users/maxwolffe/received_events","type":"User","site_admin":false},"body":"Fix #292 \r\n\r\nYou can now hit the api at get student comments.\r\n\r\ncurl http://localhost:3000/api/students/1/comments\r\n[{\"id\":1,\"content\":\"Rem non ex consequuntur eligendi necessitatibus et.\",\"student_id\":1,\"user_id\":3,\"created_at\":\"2015-11-10T06:04:57.717Z\",\"updated_at\":\"2015-11-10T06:04:57.717Z\"},{\"id\":2,\"content\":\"Nisi animi autem iste velit eius qui magnam.\",\"student_id\":1,\"user_id\":4,\"created_at\":\"2015-11-10T06:04:57.731Z\",\"updated_at\":\"2015-11-10T06:04:57.731Z\"}]\r\n\r\nMake sure you run `db:drop`, `db:create`, `db:migrate`, `db:seed` after merging this PR. ","created_at":"2015-11-10T06:23:45Z","updated_at":"2015-11-10T08:38:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29f837b010a670e61037b511f2fb5d19e277536f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293/commits","review_comments_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293/comments","review_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/293/comments","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/fa34c17349b925f15f99ab40f6fdfc62163229b3","head":{"label":"calblueprint:max/student_comments_controller","ref":"max/student_comments_controller","sha":"fa34c17349b925f15f99ab40f6fdfc62163229b3","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":43229640,"name":"edge-yl","full_name":"calblueprint/edge-yl","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/edge-yl","description":"","fork":false,"url":"https://api.github.com/repos/calblueprint/edge-yl","forks_url":"https://api.github.com/repos/calblueprint/edge-yl/forks","keys_url":"https://api.github.com/repos/calblueprint/edge-yl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/edge-yl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/edge-yl/teams","hooks_url":"https://api.github.com/repos/calblueprint/edge-yl/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/edge-yl/events","assignees_url":"https://api.github.com/repos/calblueprint/edge-yl/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/edge-yl/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/edge-yl/tags","blobs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/edge-yl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/edge-yl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/edge-yl/languages","stargazers_url":"https://api.github.com/repos/calblueprint/edge-yl/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/edge-yl/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/edge-yl/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/edge-yl/subscription","commits_url":"https://api.github.com/repos/calblueprint/edge-yl/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/edge-yl/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/edge-yl/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/edge-yl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/edge-yl/merges","archive_url":"https://api.github.com/repos/calblueprint/edge-yl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/edge-yl/downloads","issues_url":"https://api.github.com/repos/calblueprint/edge-yl/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/edge-yl/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/edge-yl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/edge-yl/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/edge-yl/releases{/id}","created_at":"2015-09-27T01:23:43Z","updated_at":"2015-11-09T21:12:01Z","pushed_at":"2015-11-10T08:31:38Z","git_url":"git://github.com/calblueprint/edge-yl.git","ssh_url":"git@github.com:calblueprint/edge-yl.git","clone_url":"https://github.com/calblueprint/edge-yl.git","svn_url":"https://github.com/calblueprint/edge-yl","homepage":null,"size":2012,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":5,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"feeec6d36090a5c4aaec3d9ca09729c42af93883","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":43229640,"name":"edge-yl","full_name":"calblueprint/edge-yl","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/edge-yl","description":"","fork":false,"url":"https://api.github.com/repos/calblueprint/edge-yl","forks_url":"https://api.github.com/repos/calblueprint/edge-yl/forks","keys_url":"https://api.github.com/repos/calblueprint/edge-yl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/edge-yl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/edge-yl/teams","hooks_url":"https://api.github.com/repos/calblueprint/edge-yl/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/edge-yl/events","assignees_url":"https://api.github.com/repos/calblueprint/edge-yl/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/edge-yl/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/edge-yl/tags","blobs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/edge-yl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/edge-yl/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/edge-yl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/edge-yl/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/edge-yl/languages","stargazers_url":"https://api.github.com/repos/calblueprint/edge-yl/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/edge-yl/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/edge-yl/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/edge-yl/subscription","commits_url":"https://api.github.com/repos/calblueprint/edge-yl/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/edge-yl/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/edge-yl/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/edge-yl/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/edge-yl/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/edge-yl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/edge-yl/merges","archive_url":"https://api.github.com/repos/calblueprint/edge-yl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/edge-yl/downloads","issues_url":"https://api.github.com/repos/calblueprint/edge-yl/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/edge-yl/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/edge-yl/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/edge-yl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/edge-yl/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/edge-yl/releases{/id}","created_at":"2015-09-27T01:23:43Z","updated_at":"2015-11-09T21:12:01Z","pushed_at":"2015-11-10T08:31:38Z","git_url":"git://github.com/calblueprint/edge-yl.git","ssh_url":"git@github.com:calblueprint/edge-yl.git","clone_url":"https://github.com/calblueprint/edge-yl.git","svn_url":"https://github.com/calblueprint/edge-yl","homepage":null,"size":2012,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293"},"html":{"href":"https://github.com/calblueprint/edge-yl/pull/293"},"issue":{"href":"https://api.github.com/repos/calblueprint/edge-yl/issues/293"},"comments":{"href":"https://api.github.com/repos/calblueprint/edge-yl/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/edge-yl/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/edge-yl/statuses/fa34c17349b925f15f99ab40f6fdfc62163229b3"}}}}