Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
abfecabd
Commit
abfecabd
authored
Oct 24, 2017
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update groups API documentation
parent
82446a2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
changelogs/unreleased/api-doc-group-statistics.yml
changelogs/unreleased/api-doc-group-statistics.yml
+5
-0
doc/api/groups.md
doc/api/groups.md
+32
-0
No files found.
changelogs/unreleased/api-doc-group-statistics.yml
0 → 100644
View file @
abfecabd
---
title
:
Update the groups API documentation
merge_request
:
15024
author
:
Robert Schilling
type
:
fixed
doc/api/groups.md
View file @
abfecabd
...
@@ -40,6 +40,38 @@ GET /groups
...
@@ -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.
You can search for groups by name or path, see below.
## List a group's projects
## List a group's projects
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment