{"action":"created","comment":{"url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/comments/59543580","id":59543580,"diff_hunk":"@@ -0,0 +1,38 @@\n+package com.inkdrop.app.controllers.api.v1;\n+\n+import org.apache.log4j.LogManager;\n+import org.apache.log4j.Logger;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;\n+import org.springframework.http.ResponseEntity;\n+import org.springframework.web.bind.annotation.PathVariable;\n+import org.springframework.web.bind.annotation.RequestHeader;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+import org.springframework.web.bind.annotation.RestController;\n+\n+import com.inkdrop.app.domain.formatter.FormatterFactory;\n+import com.inkdrop.app.domain.models.Organization;\n+import com.inkdrop.app.domain.repositories.OrganizationRepository;\n+\n+@RestController\n+@EnableAutoConfiguration\n+public class OrgsController extends BasicController {\n+\t\n+\tprivate Logger log = LogManager.getLogger(OrgsController.class);\n+\t\n+\t@Autowired OrganizationRepository organizatioRepository;","path":"src/main/java/com/inkdrop/app/controllers/api/v1/OrgsController.java","position":24,"original_position":24,"commit_id":"8c3b847534728b7a6306a3e16f413aeb2a6b58d4","original_commit_id":"8c3b847534728b7a6306a3e16f413aeb2a6b58d4","user":{"login":"luizkowalski","id":112706,"avatar_url":"https://avatars.githubusercontent.com/u/112706?v=3","gravatar_id":"","url":"https://api.github.com/users/luizkowalski","html_url":"https://github.com/luizkowalski","followers_url":"https://api.github.com/users/luizkowalski/followers","following_url":"https://api.github.com/users/luizkowalski/following{/other_user}","gists_url":"https://api.github.com/users/luizkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/luizkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizkowalski/subscriptions","organizations_url":"https://api.github.com/users/luizkowalski/orgs","repos_url":"https://api.github.com/users/luizkowalski/repos","events_url":"https://api.github.com/users/luizkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/luizkowalski/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2016-04-13T13:05:59Z","updated_at":"2016-04-13T13:05:59Z","html_url":"https://github.com/inkdrop/chathub-backend/pull/1#discussion_r59543580","pull_request_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/comments/59543580"},"html":{"href":"https://github.com/inkdrop/chathub-backend/pull/1#discussion_r59543580"},"pull_request":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1","id":66310928,"html_url":"https://github.com/inkdrop/chathub-backend/pull/1","diff_url":"https://github.com/inkdrop/chathub-backend/pull/1.diff","patch_url":"https://github.com/inkdrop/chathub-backend/pull/1.patch","issue_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/1","number":1,"state":"open","locked":false,"title":"Using Repos as rooms and not organizations","user":{"login":"luizkowalski","id":112706,"avatar_url":"https://avatars.githubusercontent.com/u/112706?v=3","gravatar_id":"","url":"https://api.github.com/users/luizkowalski","html_url":"https://github.com/luizkowalski","followers_url":"https://api.github.com/users/luizkowalski/followers","following_url":"https://api.github.com/users/luizkowalski/following{/other_user}","gists_url":"https://api.github.com/users/luizkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/luizkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luizkowalski/subscriptions","organizations_url":"https://api.github.com/users/luizkowalski/orgs","repos_url":"https://api.github.com/users/luizkowalski/repos","events_url":"https://api.github.com/users/luizkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/luizkowalski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-13T12:15:41Z","updated_at":"2016-04-13T13:05:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20186e9a8678010dbaa6699e84679cc4cded62bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/1/comments","statuses_url":"https://api.github.com/repos/inkdrop/chathub-backend/statuses/8c3b847534728b7a6306a3e16f413aeb2a6b58d4","head":{"label":"inkdrop:repos","ref":"repos","sha":"8c3b847534728b7a6306a3e16f413aeb2a6b58d4","user":{"login":"inkdrop","id":873281,"avatar_url":"https://avatars.githubusercontent.com/u/873281?v=3","gravatar_id":"","url":"https://api.github.com/users/inkdrop","html_url":"https://github.com/inkdrop","followers_url":"https://api.github.com/users/inkdrop/followers","following_url":"https://api.github.com/users/inkdrop/following{/other_user}","gists_url":"https://api.github.com/users/inkdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/inkdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkdrop/subscriptions","organizations_url":"https://api.github.com/users/inkdrop/orgs","repos_url":"https://api.github.com/users/inkdrop/repos","events_url":"https://api.github.com/users/inkdrop/events{/privacy}","received_events_url":"https://api.github.com/users/inkdrop/received_events","type":"Organization","site_admin":false},"repo":{"id":46888036,"name":"chathub-backend","full_name":"inkdrop/chathub-backend","owner":{"login":"inkdrop","id":873281,"avatar_url":"https://avatars.githubusercontent.com/u/873281?v=3","gravatar_id":"","url":"https://api.github.com/users/inkdrop","html_url":"https://github.com/inkdrop","followers_url":"https://api.github.com/users/inkdrop/followers","following_url":"https://api.github.com/users/inkdrop/following{/other_user}","gists_url":"https://api.github.com/users/inkdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/inkdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkdrop/subscriptions","organizations_url":"https://api.github.com/users/inkdrop/orgs","repos_url":"https://api.github.com/users/inkdrop/repos","events_url":"https://api.github.com/users/inkdrop/events{/privacy}","received_events_url":"https://api.github.com/users/inkdrop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inkdrop/chathub-backend","description":"Java back-end for new version of Chathub","fork":false,"url":"https://api.github.com/repos/inkdrop/chathub-backend","forks_url":"https://api.github.com/repos/inkdrop/chathub-backend/forks","keys_url":"https://api.github.com/repos/inkdrop/chathub-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inkdrop/chathub-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inkdrop/chathub-backend/teams","hooks_url":"https://api.github.com/repos/inkdrop/chathub-backend/hooks","issue_events_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/events{/number}","events_url":"https://api.github.com/repos/inkdrop/chathub-backend/events","assignees_url":"https://api.github.com/repos/inkdrop/chathub-backend/assignees{/user}","branches_url":"https://api.github.com/repos/inkdrop/chathub-backend/branches{/branch}","tags_url":"https://api.github.com/repos/inkdrop/chathub-backend/tags","blobs_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inkdrop/chathub-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/inkdrop/chathub-backend/languages","stargazers_url":"https://api.github.com/repos/inkdrop/chathub-backend/stargazers","contributors_url":"https://api.github.com/repos/inkdrop/chathub-backend/contributors","subscribers_url":"https://api.github.com/repos/inkdrop/chathub-backend/subscribers","subscription_url":"https://api.github.com/repos/inkdrop/chathub-backend/subscription","commits_url":"https://api.github.com/repos/inkdrop/chathub-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/inkdrop/chathub-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/inkdrop/chathub-backend/contents/{+path}","compare_url":"https://api.github.com/repos/inkdrop/chathub-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inkdrop/chathub-backend/merges","archive_url":"https://api.github.com/repos/inkdrop/chathub-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inkdrop/chathub-backend/downloads","issues_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues{/number}","pulls_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/inkdrop/chathub-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/inkdrop/chathub-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inkdrop/chathub-backend/labels{/name}","releases_url":"https://api.github.com/repos/inkdrop/chathub-backend/releases{/id}","deployments_url":"https://api.github.com/repos/inkdrop/chathub-backend/deployments","created_at":"2015-11-25T21:28:29Z","updated_at":"2016-04-12T20:05:09Z","pushed_at":"2016-04-13T12:15:41Z","git_url":"git://github.com/inkdrop/chathub-backend.git","ssh_url":"git@github.com:inkdrop/chathub-backend.git","clone_url":"https://github.com/inkdrop/chathub-backend.git","svn_url":"https://github.com/inkdrop/chathub-backend","homepage":"http://usechathub.herokuapp.com","size":195,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"inkdrop:master","ref":"master","sha":"017a2239c9b12bb75906b09d514481d7fd588865","user":{"login":"inkdrop","id":873281,"avatar_url":"https://avatars.githubusercontent.com/u/873281?v=3","gravatar_id":"","url":"https://api.github.com/users/inkdrop","html_url":"https://github.com/inkdrop","followers_url":"https://api.github.com/users/inkdrop/followers","following_url":"https://api.github.com/users/inkdrop/following{/other_user}","gists_url":"https://api.github.com/users/inkdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/inkdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkdrop/subscriptions","organizations_url":"https://api.github.com/users/inkdrop/orgs","repos_url":"https://api.github.com/users/inkdrop/repos","events_url":"https://api.github.com/users/inkdrop/events{/privacy}","received_events_url":"https://api.github.com/users/inkdrop/received_events","type":"Organization","site_admin":false},"repo":{"id":46888036,"name":"chathub-backend","full_name":"inkdrop/chathub-backend","owner":{"login":"inkdrop","id":873281,"avatar_url":"https://avatars.githubusercontent.com/u/873281?v=3","gravatar_id":"","url":"https://api.github.com/users/inkdrop","html_url":"https://github.com/inkdrop","followers_url":"https://api.github.com/users/inkdrop/followers","following_url":"https://api.github.com/users/inkdrop/following{/other_user}","gists_url":"https://api.github.com/users/inkdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/inkdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkdrop/subscriptions","organizations_url":"https://api.github.com/users/inkdrop/orgs","repos_url":"https://api.github.com/users/inkdrop/repos","events_url":"https://api.github.com/users/inkdrop/events{/privacy}","received_events_url":"https://api.github.com/users/inkdrop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inkdrop/chathub-backend","description":"Java back-end for new version of Chathub","fork":false,"url":"https://api.github.com/repos/inkdrop/chathub-backend","forks_url":"https://api.github.com/repos/inkdrop/chathub-backend/forks","keys_url":"https://api.github.com/repos/inkdrop/chathub-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inkdrop/chathub-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inkdrop/chathub-backend/teams","hooks_url":"https://api.github.com/repos/inkdrop/chathub-backend/hooks","issue_events_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/events{/number}","events_url":"https://api.github.com/repos/inkdrop/chathub-backend/events","assignees_url":"https://api.github.com/repos/inkdrop/chathub-backend/assignees{/user}","branches_url":"https://api.github.com/repos/inkdrop/chathub-backend/branches{/branch}","tags_url":"https://api.github.com/repos/inkdrop/chathub-backend/tags","blobs_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inkdrop/chathub-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/inkdrop/chathub-backend/languages","stargazers_url":"https://api.github.com/repos/inkdrop/chathub-backend/stargazers","contributors_url":"https://api.github.com/repos/inkdrop/chathub-backend/contributors","subscribers_url":"https://api.github.com/repos/inkdrop/chathub-backend/subscribers","subscription_url":"https://api.github.com/repos/inkdrop/chathub-backend/subscription","commits_url":"https://api.github.com/repos/inkdrop/chathub-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/inkdrop/chathub-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/inkdrop/chathub-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/inkdrop/chathub-backend/contents/{+path}","compare_url":"https://api.github.com/repos/inkdrop/chathub-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inkdrop/chathub-backend/merges","archive_url":"https://api.github.com/repos/inkdrop/chathub-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inkdrop/chathub-backend/downloads","issues_url":"https://api.github.com/repos/inkdrop/chathub-backend/issues{/number}","pulls_url":"https://api.github.com/repos/inkdrop/chathub-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/inkdrop/chathub-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/inkdrop/chathub-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inkdrop/chathub-backend/labels{/name}","releases_url":"https://api.github.com/repos/inkdrop/chathub-backend/releases{/id}","deployments_url":"https://api.github.com/repos/inkdrop/chathub-backend/deployments","created_at":"2015-11-25T21:28:29Z","updated_at":"2016-04-12T20:05:09Z","pushed_at":"2016-04-13T12:15:41Z","git_url":"git://github.com/inkdrop/chathub-backend.git","ssh_url":"git@github.com:inkdrop/chathub-backend.git","clone_url":"https://github.com/inkdrop/chathub-backend.git","svn_url":"https://github.com/inkdrop/chathub-backend","homepage":"http://usechathub.herokuapp.com","size":195,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1"},"html":{"href":"https://github.com/inkdrop/chathub-backend/pull/1"},"issue":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/issues/1"},"comments":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/inkdrop/chathub-backend/statuses/8c3b847534728b7a6306a3e16f413aeb2a6b58d4"}}}}