{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip/pulls/comments/212354027","pull_request_review_id":148967816,"id":212354027,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjM1NDAyNw==","diff_hunk":"@@ -1048,6 +1048,59 @@ paths:\n             application/json:\n               schema:\n                 $ref: '#/components/schemas/JsonSuccess'\n+  /user_groups:\n+    get:\n+      description: Get all user groups of the realm.\n+      security:\n+      - basicAuth: []\n+      responses:\n+        '200':\n+          description: Success.\n+          content:\n+            application/json:\n+              schema:\n+                allOf:\n+                - $ref: '#/components/schemas/JsonSuccess'\n+                - properties:\n+                    user_groups:\n+                      type: array\n+                      items:\n+                        type: object\n+                      description: A list of `user_group` objects, which contain a\n+                        `description`, a `name`, their `id` and the list of members\n+                        of the user group.\n+                - example:\n+                    {","path":"zerver/openapi/zulip.yaml","position":26,"original_position":26,"commit_id":"7f2827682f471781506272afa61e1bc447ba0bad","original_commit_id":"7f2827682f471781506272afa61e1bc447ba0bad","user":{"login":"YagoGG","id":7356565,"node_id":"MDQ6VXNlcjczNTY1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/7356565?v=4","gravatar_id":"","url":"https://api.github.com/users/YagoGG","html_url":"https://github.com/YagoGG","followers_url":"https://api.github.com/users/YagoGG/followers","following_url":"https://api.github.com/users/YagoGG/following{/other_user}","gists_url":"https://api.github.com/users/YagoGG/gists{/gist_id}","starred_url":"https://api.github.com/users/YagoGG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YagoGG/subscriptions","organizations_url":"https://api.github.com/users/YagoGG/orgs","repos_url":"https://api.github.com/users/YagoGG/repos","events_url":"https://api.github.com/users/YagoGG/events{/privacy}","received_events_url":"https://api.github.com/users/YagoGG/received_events","type":"User","site_admin":false},"body":"Even though the YAML file is indented with 2 spaces, we use 4 spaces for JSON responses to make them more readable.","created_at":"2018-08-23T15:27:36Z","updated_at":"2018-08-23T15:27:37Z","html_url":"https://github.com/zulip/zulip/pull/10329#discussion_r212354027","pull_request_url":"https://api.github.com/repos/zulip/zulip/pulls/10329","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments/212354027"},"html":{"href":"https://github.com/zulip/zulip/pull/10329#discussion_r212354027"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip/pulls/10329"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/10329","id":208720360,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzIwMzYw","html_url":"https://github.com/zulip/zulip/pull/10329","diff_url":"https://github.com/zulip/zulip/pull/10329.diff","patch_url":"https://github.com/zulip/zulip/pull/10329.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/10329","number":10329,"state":"open","locked":false,"title":"api: Add an endpoint for listing the user groups in realm.","user":{"login":"zy964c","id":15901908,"node_id":"MDQ6VXNlcjE1OTAxOTA4","avatar_url":"https://avatars3.githubusercontent.com/u/15901908?v=4","gravatar_id":"","url":"https://api.github.com/users/zy964c","html_url":"https://github.com/zy964c","followers_url":"https://api.github.com/users/zy964c/followers","following_url":"https://api.github.com/users/zy964c/following{/other_user}","gists_url":"https://api.github.com/users/zy964c/gists{/gist_id}","starred_url":"https://api.github.com/users/zy964c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zy964c/subscriptions","organizations_url":"https://api.github.com/users/zy964c/orgs","repos_url":"https://api.github.com/users/zy964c/repos","events_url":"https://api.github.com/users/zy964c/events{/privacy}","received_events_url":"https://api.github.com/users/zy964c/received_events","type":"User","site_admin":false},"body":"Adds endpoint for listing the user groups in realm.\r\nProvides \"description\", \"members name\" and \"id\" for each user group.\r\n\r\nFixes #10298","created_at":"2018-08-16T01:04:19Z","updated_at":"2018-08-23T15:27:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9dfba5bc697c7291e79c762e7e69366ebdee5e07","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":469533612,"node_id":"MDU6TGFiZWw0Njk1MzM2MTI=","url":"https://api.github.com/repos/zulip/zulip/labels/area:%20api","name":"area: api","color":"bfd4f2","default":false},{"id":265216831,"node_id":"MDU6TGFiZWwyNjUyMTY4MzE=","url":"https://api.github.com/repos/zulip/zulip/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":804197644,"node_id":"MDU6TGFiZWw4MDQxOTc2NDQ=","url":"https://api.github.com/repos/zulip/zulip/labels/size:%20L","name":"size: L","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip/pulls/10329/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/10329/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/10329/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/7f2827682f471781506272afa61e1bc447ba0bad","head":{"label":"zy964c:issue-10298-add-user-groups-endpoint","ref":"issue-10298-add-user-groups-endpoint","sha":"7f2827682f471781506272afa61e1bc447ba0bad","user":{"login":"zy964c","id":15901908,"node_id":"MDQ6VXNlcjE1OTAxOTA4","avatar_url":"https://avatars3.githubusercontent.com/u/15901908?v=4","gravatar_id":"","url":"https://api.github.com/users/zy964c","html_url":"https://github.com/zy964c","followers_url":"https://api.github.com/users/zy964c/followers","following_url":"https://api.github.com/users/zy964c/following{/other_user}","gists_url":"https://api.github.com/users/zy964c/gists{/gist_id}","starred_url":"https://api.github.com/users/zy964c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zy964c/subscriptions","organizations_url":"https://api.github.com/users/zy964c/orgs","repos_url":"https://api.github.com/users/zy964c/repos","events_url":"https://api.github.com/users/zy964c/events{/privacy}","received_events_url":"https://api.github.com/users/zy964c/received_events","type":"User","site_admin":false},"repo":{"id":108753997,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg3NTM5OTc=","name":"zulip","full_name":"zy964c/zulip","owner":{"login":"zy964c","id":15901908,"node_id":"MDQ6VXNlcjE1OTAxOTA4","avatar_url":"https://avatars3.githubusercontent.com/u/15901908?v=4","gravatar_id":"","url":"https://api.github.com/users/zy964c","html_url":"https://github.com/zy964c","followers_url":"https://api.github.com/users/zy964c/followers","following_url":"https://api.github.com/users/zy964c/following{/other_user}","gists_url":"https://api.github.com/users/zy964c/gists{/gist_id}","starred_url":"https://api.github.com/users/zy964c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zy964c/subscriptions","organizations_url":"https://api.github.com/users/zy964c/orgs","repos_url":"https://api.github.com/users/zy964c/repos","events_url":"https://api.github.com/users/zy964c/events{/privacy}","received_events_url":"https://api.github.com/users/zy964c/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zy964c/zulip","description":"Zulip server - powerful open source group chat","fork":true,"url":"https://api.github.com/repos/zy964c/zulip","forks_url":"https://api.github.com/repos/zy964c/zulip/forks","keys_url":"https://api.github.com/repos/zy964c/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zy964c/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zy964c/zulip/teams","hooks_url":"https://api.github.com/repos/zy964c/zulip/hooks","issue_events_url":"https://api.github.com/repos/zy964c/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zy964c/zulip/events","assignees_url":"https://api.github.com/repos/zy964c/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zy964c/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zy964c/zulip/tags","blobs_url":"https://api.github.com/repos/zy964c/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zy964c/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zy964c/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zy964c/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zy964c/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zy964c/zulip/languages","stargazers_url":"https://api.github.com/repos/zy964c/zulip/stargazers","contributors_url":"https://api.github.com/repos/zy964c/zulip/contributors","subscribers_url":"https://api.github.com/repos/zy964c/zulip/subscribers","subscription_url":"https://api.github.com/repos/zy964c/zulip/subscription","commits_url":"https://api.github.com/repos/zy964c/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zy964c/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zy964c/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zy964c/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zy964c/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zy964c/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zy964c/zulip/merges","archive_url":"https://api.github.com/repos/zy964c/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zy964c/zulip/downloads","issues_url":"https://api.github.com/repos/zy964c/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zy964c/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zy964c/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zy964c/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zy964c/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zy964c/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zy964c/zulip/deployments","created_at":"2017-10-29T17:09:36Z","updated_at":"2017-10-29T17:09:43Z","pushed_at":"2018-08-23T00:09:29Z","git_url":"git://github.com/zy964c/zulip.git","ssh_url":"git@github.com:zy964c/zulip.git","clone_url":"https://github.com/zy964c/zulip.git","svn_url":"https://github.com/zy964c/zulip","homepage":"","size":215199,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"issue-5489-realm-name-setting"}},"base":{"label":"zulip:master","ref":"master","sha":"6031ccff5c64bb05091af1153aec70a62d3e8305","user":{"login":"zulip","id":4921959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MjE5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"node_id":"MDEwOlJlcG9zaXRvcnk0MzE2MDY4NQ==","name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MjE5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source team chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2018-08-23T15:18:05Z","pushed_at":"2018-08-23T13:20:19Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"https://zulip.org/","size":215252,"stargazers_count":7885,"watchers_count":7885,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2359,"mirror_url":null,"archived":false,"open_issues_count":1099,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2359,"open_issues":1099,"watchers":7885,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/10329"},"html":{"href":"https://github.com/zulip/zulip/pull/10329"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/10329"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/10329/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/10329/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/10329/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/7f2827682f471781506272afa61e1bc447ba0bad"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"YagoGG"}}