diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-27 21:56:03 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-27 21:56:03 +0100 |
commit | 496c750e3f387624fd51a37954efe87ef6b465bd (patch) | |
tree | b94bd0e1b1e0e7ae179cd2cdb91aa194d7276eb2 /doc/api/groups.md | |
parent | 90b06afdeaa13fe14218a53c8afbc4802af53a27 (diff) | |
parent | dfd6c3f824ada5558546b809fd32468325788b94 (diff) | |
download | gitlab-ce-ph-multi-file-upload-file.tar.gz |
Merge branch 'master' into ph-multi-file-upload-fileph-multi-file-upload-file
Diffstat (limited to 'doc/api/groups.md')
-rw-r--r-- | doc/api/groups.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/api/groups.md b/doc/api/groups.md index c2daa8bc029..99d200c9c93 100644 --- a/doc/api/groups.md +++ b/doc/api/groups.md @@ -40,6 +40,38 @@ GET /groups ] ``` +When adding the parameter `statistics=true` and the authenticated user is an admin, additional group statistics are returned. + +``` +GET /groups?statistics=true +``` + +```json +[ + { + "id": 1, + "name": "Foobar Group", + "path": "foo-bar", + "description": "An interesting group", + "visibility": "public", + "lfs_enabled": true, + "avatar_url": "http://localhost:3000/uploads/group/avatar/1/foo.jpg", + "web_url": "http://localhost:3000/groups/foo-bar", + "request_access_enabled": false, + "full_name": "Foobar Group", + "full_path": "foo-bar", + "parent_id": null, + "statistics": { + "storage_size" : 212, + "repository_size" : 33, + "lfs_objects_size" : 123, + "job_artifacts_size" : 57 + + } + } +] +``` + You can search for groups by name or path, see below. ## List a group's projects |