Fix example response for listing account groups * Add missing fields (e.g. the 'name' field). * Make the order of the fields match the actual order in which the fields are returned. * For system groups (e.g. 'Anonymous-Users', 'Registered-Users') only 'options', 'id' and 'name' fields are returned. Release-Notes: skip Change-Id: Ie5f413f74e21ee85352a0320dd615413216ecfa1 Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/Documentation/rest-api-accounts.txt b/Documentation/rest-api-accounts.txt index 50dd72d..b00ec1f 100644 --- a/Documentation/rest-api-accounts.txt +++ b/Documentation/rest-api-accounts.txt
@@ -1279,31 +1279,27 @@ )]}' [ { + "options": {}, "id": "global%3AAnonymous-Users", - "url": "#/admin/groups/uuid-global%3AAnonymous-Users", - "options": { - }, - "description": "Any user, signed-in or not", - "group_id": 2, - "owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389" + "name": "Anonymous Users" }, { - "id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7", + "options": {}, + "id": "global%3ARegistered-Users", + "name": "Registered Users" + }, + { "url": "#/admin/groups/uuid-834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7", "options": { "visible_to_all": true, }, + "description": "Gerrit Site Administrators", "group_id": 6, + "owner": "Administrators", "owner_id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7" - }, - { - "id": "global%3ARegistered-Users", - "url": "#/admin/groups/uuid-global%3ARegistered-Users", - "options": { - }, - "description": "Any signed-in user", - "group_id": 3, - "owner_id": "6a1e70e1a88782771a91808c8af9bbb7a9871389" + "created_on": "2023-08-08 15:53:56.000000000", + "id": "834ec36dd5e0ed21a2ff5d7e2255da082d63bbd7", + "name": "Administrators" } ] ----