GitHub PullRequestReviewCommentEvent at 2014-12-13 20:59:22
Repository: schema-repo
Actor: FelixGV
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/comments/21791210","id":21791210,"diff_hunk":"@@ -69,21 +72,39 @@\n    *          The {@link Repository} to wrap.\n    */\n   @Inject\n-  public RESTRepository(Repository repo) {\n+  public RESTRepository(Repository repo, JsonUtil jsonUtil) {\n     this.repo = repo;\n+    this.jsonUtil = jsonUtil;\n   }\n \n   /**\n+   * No @Path annotation means this services the \"/\" endpoint.\n+   *\n    * @return All subjects in the repository, serialized with\n    *         {@link RepositoryUtil#subjectsToString(Iterable)}\n    */\n   @GET\n-  public String allSubjects() {\n+  @Consumes(MediaType.WILDCARD)\n+  public String allSubjectsAsPlainText() {","path":"server/src/main/java/org/schemarepo/server/RESTRepository.java","position":46,"original_position":46,"commit_id":"4bb15507073139ed00ed8c24946c94754ae243fe","original_commit_id":"4bb15507073139ed00ed8c24946c94754ae243fe","user":{"login":"FelixGV","id":1248632,"avatar_url":"https://avatars.githubusercontent.com/u/1248632?v=3","gravatar_id":"","url":"https://api.github.com/users/FelixGV","html_url":"https://github.com/FelixGV","followers_url":"https://api.github.com/users/FelixGV/followers","following_url":"https://api.github.com/users/FelixGV/following{/other_user}","gists_url":"https://api.github.com/users/FelixGV/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixGV/subscriptions","organizations_url":"https://api.github.com/users/FelixGV/orgs","repos_url":"https://api.github.com/users/FelixGV/repos","events_url":"https://api.github.com/users/FelixGV/events{/privacy}","received_events_url":"https://api.github.com/users/FelixGV/received_events","type":"User","site_admin":false},"body":"I thought the ```@Consumes``` annotation was the way of handling Accept headers, since there is no request instance passed in to inspect the properties of the request... If there is a cleaner way of writing the code, I'm all for it, please advise.","created_at":"2014-12-13T20:59:22Z","updated_at":"2014-12-13T20:59:22Z","html_url":"https://github.com/schema-repo/schema-repo/pull/22#discussion_r21791210","pull_request_url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/comments/21791210"},"html":{"href":"https://github.com/schema-repo/schema-repo/pull/22#discussion_r21791210"},"pull_request":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22","id":26015994,"html_url":"https://github.com/schema-repo/schema-repo/pull/22","diff_url":"https://github.com/schema-repo/schema-repo/pull/22.diff","patch_url":"https://github.com/schema-repo/schema-repo/pull/22.patch","issue_url":"https://api.github.com/repos/schema-repo/schema-repo/issues/22","number":22,"state":"open","locked":false,"title":"Fix for Issue #17: allEntries on schemas with new lines (JSON-ified)","user":{"login":"FelixGV","id":1248632,"avatar_url":"https://avatars.githubusercontent.com/u/1248632?v=3","gravatar_id":"","url":"https://api.github.com/users/FelixGV","html_url":"https://github.com/FelixGV","followers_url":"https://api.github.com/users/FelixGV/followers","following_url":"https://api.github.com/users/FelixGV/following{/other_user}","gists_url":"https://api.github.com/users/FelixGV/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixGV/subscriptions","organizations_url":"https://api.github.com/users/FelixGV/orgs","repos_url":"https://api.github.com/users/FelixGV/repos","events_url":"https://api.github.com/users/FelixGV/events{/privacy}","received_events_url":"https://api.github.com/users/FelixGV/received_events","type":"User","site_admin":false},"body":"Integrated google-gson for more reliable serialization over the wire.\r\nAdded tests for JSON.\r\nClient tests now submitted to persistence/multi-line tests.","created_at":"2014-12-13T02:48:38Z","updated_at":"2014-12-13T20:59:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5fb7edc6c9abced4e24d2877ae0b2ad97f8607e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22/commits","review_comments_url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22/comments","review_comment_url":"https://api.github.com/repos/schema-repo/schema-repo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/schema-repo/schema-repo/issues/22/comments","statuses_url":"https://api.github.com/repos/schema-repo/schema-repo/statuses/4bb15507073139ed00ed8c24946c94754ae243fe","head":{"label":"FelixGV:fix_issue_17","ref":"fix_issue_17","sha":"4bb15507073139ed00ed8c24946c94754ae243fe","user":{"login":"FelixGV","id":1248632,"avatar_url":"https://avatars.githubusercontent.com/u/1248632?v=3","gravatar_id":"","url":"https://api.github.com/users/FelixGV","html_url":"https://github.com/FelixGV","followers_url":"https://api.github.com/users/FelixGV/followers","following_url":"https://api.github.com/users/FelixGV/following{/other_user}","gists_url":"https://api.github.com/users/FelixGV/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixGV/subscriptions","organizations_url":"https://api.github.com/users/FelixGV/orgs","repos_url":"https://api.github.com/users/FelixGV/repos","events_url":"https://api.github.com/users/FelixGV/events{/privacy}","received_events_url":"https://api.github.com/users/FelixGV/received_events","type":"User","site_admin":false},"repo":{"id":25598292,"name":"schema-repo","full_name":"FelixGV/schema-repo","owner":{"login":"FelixGV","id":1248632,"avatar_url":"https://avatars.githubusercontent.com/u/1248632?v=3","gravatar_id":"","url":"https://api.github.com/users/FelixGV","html_url":"https://github.com/FelixGV","followers_url":"https://api.github.com/users/FelixGV/followers","following_url":"https://api.github.com/users/FelixGV/following{/other_user}","gists_url":"https://api.github.com/users/FelixGV/gists{/gist_id}","starred_url":"https://api.github.com/users/FelixGV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelixGV/subscriptions","organizations_url":"https://api.github.com/users/FelixGV/orgs","repos_url":"https://api.github.com/users/FelixGV/repos","events_url":"https://api.github.com/users/FelixGV/events{/privacy}","received_events_url":"https://api.github.com/users/FelixGV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FelixGV/schema-repo","description":"","fork":true,"url":"https://api.github.com/repos/FelixGV/schema-repo","forks_url":"https://api.github.com/repos/FelixGV/schema-repo/forks","keys_url":"https://api.github.com/repos/FelixGV/schema-repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FelixGV/schema-repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FelixGV/schema-repo/teams","hooks_url":"https://api.github.com/repos/FelixGV/schema-repo/hooks","issue_events_url":"https://api.github.com/repos/FelixGV/schema-repo/issues/events{/number}","events_url":"https://api.github.com/repos/FelixGV/schema-repo/events","assignees_url":"https://api.github.com/repos/FelixGV/schema-repo/assignees{/user}","branches_url":"https://api.github.com/repos/FelixGV/schema-repo/branches{/branch}","tags_url":"https://api.github.com/repos/FelixGV/schema-repo/tags","blobs_url":"https://api.github.com/repos/FelixGV/schema-repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FelixGV/schema-repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FelixGV/schema-repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/FelixGV/schema-repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FelixGV/schema-repo/statuses/{sha}","languages_url":"https://api.github.com/repos/FelixGV/schema-repo/languages","stargazers_url":"https://api.github.com/repos/FelixGV/schema-repo/stargazers","contributors_url":"https://api.github.com/repos/FelixGV/schema-repo/contributors","subscribers_url":"https://api.github.com/repos/FelixGV/schema-repo/subscribers","subscription_url":"https://api.github.com/repos/FelixGV/schema-repo/subscription","commits_url":"https://api.github.com/repos/FelixGV/schema-repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/FelixGV/schema-repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/FelixGV/schema-repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/FelixGV/schema-repo/issues/comments/{number}","contents_url":"https://api.github.com/repos/FelixGV/schema-repo/contents/{+path}","compare_url":"https://api.github.com/repos/FelixGV/schema-repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FelixGV/schema-repo/merges","archive_url":"https://api.github.com/repos/FelixGV/schema-repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FelixGV/schema-repo/downloads","issues_url":"https://api.github.com/repos/FelixGV/schema-repo/issues{/number}","pulls_url":"https://api.github.com/repos/FelixGV/schema-repo/pulls{/number}","milestones_url":"https://api.github.com/repos/FelixGV/schema-repo/milestones{/number}","notifications_url":"https://api.github.com/repos/FelixGV/schema-repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FelixGV/schema-repo/labels{/name}","releases_url":"https://api.github.com/repos/FelixGV/schema-repo/releases{/id}","created_at":"2014-10-22T18:48:21Z","updated_at":"2014-12-05T19:35:50Z","pushed_at":"2014-12-13T02:41:02Z","git_url":"git://github.com/FelixGV/schema-repo.git","ssh_url":"git@github.com:FelixGV/schema-repo.git","clone_url":"https://github.com/FelixGV/schema-repo.git","svn_url":"https://github.com/FelixGV/schema-repo","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"schema-repo:master","ref":"master","sha":"4932f5494d29d461cab746b4667b728f06cccb5e","user":{"login":"schema-repo","id":9354216,"avatar_url":"https://avatars.githubusercontent.com/u/9354216?v=3","gravatar_id":"","url":"https://api.github.com/users/schema-repo","html_url":"https://github.com/schema-repo","followers_url":"https://api.github.com/users/schema-repo/followers","following_url":"https://api.github.com/users/schema-repo/following{/other_user}","gists_url":"https://api.github.com/users/schema-repo/gists{/gist_id}","starred_url":"https://api.github.com/users/schema-repo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schema-repo/subscriptions","organizations_url":"https://api.github.com/users/schema-repo/orgs","repos_url":"https://api.github.com/users/schema-repo/repos","events_url":"https://api.github.com/users/schema-repo/events{/privacy}","received_events_url":"https://api.github.com/users/schema-repo/received_events","type":"Organization","site_admin":false},"repo":{"id":25590944,"name":"schema-repo","full_name":"schema-repo/schema-repo","owner":{"login":"schema-repo","id":9354216,"avatar_url":"https://avatars.githubusercontent.com/u/9354216?v=3","gravatar_id":"","url":"https://api.github.com/users/schema-repo","html_url":"https://github.com/schema-repo","followers_url":"https://api.github.com/users/schema-repo/followers","following_url":"https://api.github.com/users/schema-repo/following{/other_user}","gists_url":"https://api.github.com/users/schema-repo/gists{/gist_id}","starred_url":"https://api.github.com/users/schema-repo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schema-repo/subscriptions","organizations_url":"https://api.github.com/users/schema-repo/orgs","repos_url":"https://api.github.com/users/schema-repo/repos","events_url":"https://api.github.com/users/schema-repo/events{/privacy}","received_events_url":"https://api.github.com/users/schema-repo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/schema-repo/schema-repo","description":"The Schema Repo is a RESTful web service for storing and serving mappings between schema identifiers and schema definitions.","fork":false,"url":"https://api.github.com/repos/schema-repo/schema-repo","forks_url":"https://api.github.com/repos/schema-repo/schema-repo/forks","keys_url":"https://api.github.com/repos/schema-repo/schema-repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schema-repo/schema-repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schema-repo/schema-repo/teams","hooks_url":"https://api.github.com/repos/schema-repo/schema-repo/hooks","issue_events_url":"https://api.github.com/repos/schema-repo/schema-repo/issues/events{/number}","events_url":"https://api.github.com/repos/schema-repo/schema-repo/events","assignees_url":"https://api.github.com/repos/schema-repo/schema-repo/assignees{/user}","branches_url":"https://api.github.com/repos/schema-repo/schema-repo/branches{/branch}","tags_url":"https://api.github.com/repos/schema-repo/schema-repo/tags","blobs_url":"https://api.github.com/repos/schema-repo/schema-repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schema-repo/schema-repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schema-repo/schema-repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/schema-repo/schema-repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schema-repo/schema-repo/statuses/{sha}","languages_url":"https://api.github.com/repos/schema-repo/schema-repo/languages","stargazers_url":"https://api.github.com/repos/schema-repo/schema-repo/stargazers","contributors_url":"https://api.github.com/repos/schema-repo/schema-repo/contributors","subscribers_url":"https://api.github.com/repos/schema-repo/schema-repo/subscribers","subscription_url":"https://api.github.com/repos/schema-repo/schema-repo/subscription","commits_url":"https://api.github.com/repos/schema-repo/schema-repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/schema-repo/schema-repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/schema-repo/schema-repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/schema-repo/schema-repo/issues/comments/{number}","contents_url":"https://api.github.com/repos/schema-repo/schema-repo/contents/{+path}","compare_url":"https://api.github.com/repos/schema-repo/schema-repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schema-repo/schema-repo/merges","archive_url":"https://api.github.com/repos/schema-repo/schema-repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schema-repo/schema-repo/downloads","issues_url":"https://api.github.com/repos/schema-repo/schema-repo/issues{/number}","pulls_url":"https://api.github.com/repos/schema-repo/schema-repo/pulls{/number}","milestones_url":"https://api.github.com/repos/schema-repo/schema-repo/milestones{/number}","notifications_url":"https://api.github.com/repos/schema-repo/schema-repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schema-repo/schema-repo/labels{/name}","releases_url":"https://api.github.com/repos/schema-repo/schema-repo/releases{/id}","created_at":"2014-10-22T16:06:15Z","updated_at":"2014-12-05T19:36:18Z","pushed_at":"2014-12-05T19:36:18Z","git_url":"git://github.com/schema-repo/schema-repo.git","ssh_url":"git@github.com:schema-repo/schema-repo.git","clone_url":"https://github.com/schema-repo/schema-repo.git","svn_url":"https://github.com/schema-repo/schema-repo","homepage":"http://schemarepo.org","size":726,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":10,"forks":12,"open_issues":10,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22"},"html":{"href":"https://github.com/schema-repo/schema-repo/pull/22"},"issue":{"href":"https://api.github.com/repos/schema-repo/schema-repo/issues/22"},"comments":{"href":"https://api.github.com/repos/schema-repo/schema-repo/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/schema-repo/schema-repo/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/schema-repo/schema-repo/statuses/4bb15507073139ed00ed8c24946c94754ae243fe"}}}}