{"action":"created","comment":{"url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/comments/38950140","id":38950140,"diff_hunk":"@@ -1498,18 +1693,18 @@\n         }\n       }\n     },\n-    \"/users/{id}/org\" : {\n+    \"/subscriptions/{id}/org\" : {\n       \"get\" : {\n-        \"tags\" : [ \"users\" ],\n-        \"summary\" : \"Retrieve a user's organization given the user's unique ID\",\n+        \"tags\" : [ \"subscriptions\" ],\n+        \"summary\" : \"Retrieve the organization which belongs to the given subscription\",","path":"swagger.json","position":456,"original_position":456,"commit_id":"e30891eb3ec89e2a100f8a662d77e827ea029163","original_commit_id":"e30891eb3ec89e2a100f8a662d77e827ea029163","user":{"login":"dallonf","id":346300,"avatar_url":"https://avatars.githubusercontent.com/u/346300?v=3","gravatar_id":"","url":"https://api.github.com/users/dallonf","html_url":"https://github.com/dallonf","followers_url":"https://api.github.com/users/dallonf/followers","following_url":"https://api.github.com/users/dallonf/following{/other_user}","gists_url":"https://api.github.com/users/dallonf/gists{/gist_id}","starred_url":"https://api.github.com/users/dallonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dallonf/subscriptions","organizations_url":"https://api.github.com/users/dallonf/orgs","repos_url":"https://api.github.com/users/dallonf/repos","events_url":"https://api.github.com/users/dallonf/events{/privacy}","received_events_url":"https://api.github.com/users/dallonf/received_events","type":"User","site_admin":false},"body":"Hmm? An organization belongs to a subscription? Isn't it the other way around?","created_at":"2015-09-08T16:54:07Z","updated_at":"2015-09-08T16:54:07Z","html_url":"https://github.com/nuveTeam/nuve-api/pull/2#discussion_r38950140","pull_request_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/comments/38950140"},"html":{"href":"https://github.com/nuveTeam/nuve-api/pull/2#discussion_r38950140"},"pull_request":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2","id":44454052,"html_url":"https://github.com/nuveTeam/nuve-api/pull/2","diff_url":"https://github.com/nuveTeam/nuve-api/pull/2.diff","patch_url":"https://github.com/nuveTeam/nuve-api/pull/2.patch","issue_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/2","number":2,"state":"open","locked":false,"title":"Adding subscriptions, billing contact, and manager","user":{"login":"alexwen","id":363738,"avatar_url":"https://avatars.githubusercontent.com/u/363738?v=3","gravatar_id":"","url":"https://api.github.com/users/alexwen","html_url":"https://github.com/alexwen","followers_url":"https://api.github.com/users/alexwen/followers","following_url":"https://api.github.com/users/alexwen/following{/other_user}","gists_url":"https://api.github.com/users/alexwen/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwen/subscriptions","organizations_url":"https://api.github.com/users/alexwen/orgs","repos_url":"https://api.github.com/users/alexwen/repos","events_url":"https://api.github.com/users/alexwen/events{/privacy}","received_events_url":"https://api.github.com/users/alexwen/received_events","type":"User","site_admin":false},"body":"Adding documentation for /subscriptions\r\nAdding documentation for org billing contact\r\nAdding documentation for org manager, with \"includes\" for relationships on /orgs","created_at":"2015-09-08T16:33:02Z","updated_at":"2015-09-08T16:54:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04e0ea789a50271e9528b12d5dc6720ccd52b5ae","assignee":{"login":"dallonf","id":346300,"avatar_url":"https://avatars.githubusercontent.com/u/346300?v=3","gravatar_id":"","url":"https://api.github.com/users/dallonf","html_url":"https://github.com/dallonf","followers_url":"https://api.github.com/users/dallonf/followers","following_url":"https://api.github.com/users/dallonf/following{/other_user}","gists_url":"https://api.github.com/users/dallonf/gists{/gist_id}","starred_url":"https://api.github.com/users/dallonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dallonf/subscriptions","organizations_url":"https://api.github.com/users/dallonf/orgs","repos_url":"https://api.github.com/users/dallonf/repos","events_url":"https://api.github.com/users/dallonf/events{/privacy}","received_events_url":"https://api.github.com/users/dallonf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/2/comments","statuses_url":"https://api.github.com/repos/nuveTeam/nuve-api/statuses/e30891eb3ec89e2a100f8a662d77e827ea029163","head":{"label":"nuveTeam:0_4_subscriptions","ref":"0_4_subscriptions","sha":"e30891eb3ec89e2a100f8a662d77e827ea029163","user":{"login":"nuveTeam","id":188512,"avatar_url":"https://avatars.githubusercontent.com/u/188512?v=3","gravatar_id":"","url":"https://api.github.com/users/nuveTeam","html_url":"https://github.com/nuveTeam","followers_url":"https://api.github.com/users/nuveTeam/followers","following_url":"https://api.github.com/users/nuveTeam/following{/other_user}","gists_url":"https://api.github.com/users/nuveTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuveTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuveTeam/subscriptions","organizations_url":"https://api.github.com/users/nuveTeam/orgs","repos_url":"https://api.github.com/users/nuveTeam/repos","events_url":"https://api.github.com/users/nuveTeam/events{/privacy}","received_events_url":"https://api.github.com/users/nuveTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":36824560,"name":"nuve-api","full_name":"nuveTeam/nuve-api","owner":{"login":"nuveTeam","id":188512,"avatar_url":"https://avatars.githubusercontent.com/u/188512?v=3","gravatar_id":"","url":"https://api.github.com/users/nuveTeam","html_url":"https://github.com/nuveTeam","followers_url":"https://api.github.com/users/nuveTeam/followers","following_url":"https://api.github.com/users/nuveTeam/following{/other_user}","gists_url":"https://api.github.com/users/nuveTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuveTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuveTeam/subscriptions","organizations_url":"https://api.github.com/users/nuveTeam/orgs","repos_url":"https://api.github.com/users/nuveTeam/repos","events_url":"https://api.github.com/users/nuveTeam/events{/privacy}","received_events_url":"https://api.github.com/users/nuveTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nuveTeam/nuve-api","description":"Nuve API","fork":false,"url":"https://api.github.com/repos/nuveTeam/nuve-api","forks_url":"https://api.github.com/repos/nuveTeam/nuve-api/forks","keys_url":"https://api.github.com/repos/nuveTeam/nuve-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuveTeam/nuve-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuveTeam/nuve-api/teams","hooks_url":"https://api.github.com/repos/nuveTeam/nuve-api/hooks","issue_events_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/events{/number}","events_url":"https://api.github.com/repos/nuveTeam/nuve-api/events","assignees_url":"https://api.github.com/repos/nuveTeam/nuve-api/assignees{/user}","branches_url":"https://api.github.com/repos/nuveTeam/nuve-api/branches{/branch}","tags_url":"https://api.github.com/repos/nuveTeam/nuve-api/tags","blobs_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuveTeam/nuve-api/statuses/{sha}","languages_url":"https://api.github.com/repos/nuveTeam/nuve-api/languages","stargazers_url":"https://api.github.com/repos/nuveTeam/nuve-api/stargazers","contributors_url":"https://api.github.com/repos/nuveTeam/nuve-api/contributors","subscribers_url":"https://api.github.com/repos/nuveTeam/nuve-api/subscribers","subscription_url":"https://api.github.com/repos/nuveTeam/nuve-api/subscription","commits_url":"https://api.github.com/repos/nuveTeam/nuve-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuveTeam/nuve-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuveTeam/nuve-api/contents/{+path}","compare_url":"https://api.github.com/repos/nuveTeam/nuve-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuveTeam/nuve-api/merges","archive_url":"https://api.github.com/repos/nuveTeam/nuve-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuveTeam/nuve-api/downloads","issues_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues{/number}","pulls_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls{/number}","milestones_url":"https://api.github.com/repos/nuveTeam/nuve-api/milestones{/number}","notifications_url":"https://api.github.com/repos/nuveTeam/nuve-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuveTeam/nuve-api/labels{/name}","releases_url":"https://api.github.com/repos/nuveTeam/nuve-api/releases{/id}","created_at":"2015-06-03T19:09:16Z","updated_at":"2015-06-03T19:39:59Z","pushed_at":"2015-09-08T16:33:02Z","git_url":"git://github.com/nuveTeam/nuve-api.git","ssh_url":"git@github.com:nuveTeam/nuve-api.git","clone_url":"https://github.com/nuveTeam/nuve-api.git","svn_url":"https://github.com/nuveTeam/nuve-api","homepage":null,"size":1561,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nuveTeam:master","ref":"master","sha":"add53c9bca1adf5ffe054acd9dd501d4a12ef638","user":{"login":"nuveTeam","id":188512,"avatar_url":"https://avatars.githubusercontent.com/u/188512?v=3","gravatar_id":"","url":"https://api.github.com/users/nuveTeam","html_url":"https://github.com/nuveTeam","followers_url":"https://api.github.com/users/nuveTeam/followers","following_url":"https://api.github.com/users/nuveTeam/following{/other_user}","gists_url":"https://api.github.com/users/nuveTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuveTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuveTeam/subscriptions","organizations_url":"https://api.github.com/users/nuveTeam/orgs","repos_url":"https://api.github.com/users/nuveTeam/repos","events_url":"https://api.github.com/users/nuveTeam/events{/privacy}","received_events_url":"https://api.github.com/users/nuveTeam/received_events","type":"Organization","site_admin":false},"repo":{"id":36824560,"name":"nuve-api","full_name":"nuveTeam/nuve-api","owner":{"login":"nuveTeam","id":188512,"avatar_url":"https://avatars.githubusercontent.com/u/188512?v=3","gravatar_id":"","url":"https://api.github.com/users/nuveTeam","html_url":"https://github.com/nuveTeam","followers_url":"https://api.github.com/users/nuveTeam/followers","following_url":"https://api.github.com/users/nuveTeam/following{/other_user}","gists_url":"https://api.github.com/users/nuveTeam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuveTeam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuveTeam/subscriptions","organizations_url":"https://api.github.com/users/nuveTeam/orgs","repos_url":"https://api.github.com/users/nuveTeam/repos","events_url":"https://api.github.com/users/nuveTeam/events{/privacy}","received_events_url":"https://api.github.com/users/nuveTeam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nuveTeam/nuve-api","description":"Nuve API","fork":false,"url":"https://api.github.com/repos/nuveTeam/nuve-api","forks_url":"https://api.github.com/repos/nuveTeam/nuve-api/forks","keys_url":"https://api.github.com/repos/nuveTeam/nuve-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuveTeam/nuve-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuveTeam/nuve-api/teams","hooks_url":"https://api.github.com/repos/nuveTeam/nuve-api/hooks","issue_events_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/events{/number}","events_url":"https://api.github.com/repos/nuveTeam/nuve-api/events","assignees_url":"https://api.github.com/repos/nuveTeam/nuve-api/assignees{/user}","branches_url":"https://api.github.com/repos/nuveTeam/nuve-api/branches{/branch}","tags_url":"https://api.github.com/repos/nuveTeam/nuve-api/tags","blobs_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuveTeam/nuve-api/statuses/{sha}","languages_url":"https://api.github.com/repos/nuveTeam/nuve-api/languages","stargazers_url":"https://api.github.com/repos/nuveTeam/nuve-api/stargazers","contributors_url":"https://api.github.com/repos/nuveTeam/nuve-api/contributors","subscribers_url":"https://api.github.com/repos/nuveTeam/nuve-api/subscribers","subscription_url":"https://api.github.com/repos/nuveTeam/nuve-api/subscription","commits_url":"https://api.github.com/repos/nuveTeam/nuve-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuveTeam/nuve-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuveTeam/nuve-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuveTeam/nuve-api/contents/{+path}","compare_url":"https://api.github.com/repos/nuveTeam/nuve-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuveTeam/nuve-api/merges","archive_url":"https://api.github.com/repos/nuveTeam/nuve-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuveTeam/nuve-api/downloads","issues_url":"https://api.github.com/repos/nuveTeam/nuve-api/issues{/number}","pulls_url":"https://api.github.com/repos/nuveTeam/nuve-api/pulls{/number}","milestones_url":"https://api.github.com/repos/nuveTeam/nuve-api/milestones{/number}","notifications_url":"https://api.github.com/repos/nuveTeam/nuve-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuveTeam/nuve-api/labels{/name}","releases_url":"https://api.github.com/repos/nuveTeam/nuve-api/releases{/id}","created_at":"2015-06-03T19:09:16Z","updated_at":"2015-06-03T19:39:59Z","pushed_at":"2015-09-08T16:33:02Z","git_url":"git://github.com/nuveTeam/nuve-api.git","ssh_url":"git@github.com:nuveTeam/nuve-api.git","clone_url":"https://github.com/nuveTeam/nuve-api.git","svn_url":"https://github.com/nuveTeam/nuve-api","homepage":null,"size":1561,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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/nuveTeam/nuve-api/pulls/2"},"html":{"href":"https://github.com/nuveTeam/nuve-api/pull/2"},"issue":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/issues/2"},"comments":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nuveTeam/nuve-api/statuses/e30891eb3ec89e2a100f8a662d77e827ea029163"}}}}