summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-05-01 17:39:38 +0800
committerMark Fletcher <mark@gitlab.com>2017-05-01 17:39:42 +0800
commit3aca8b6557a638e0634065a1c72d87861b9ace4a (patch)
treebcdd83b08d324f22dadf02a1ed32e89abfa83405 /doc/api
parent03f13af588cf2b578a27717db492c216fcafbf9a (diff)
downloadgitlab-ce-3aca8b6557a638e0634065a1c72d87861b9ace4a.tar.gz
Update Projects API documentation to include statistics parameter
* Only supported for the GET /projects endpoint
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/projects.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 51de4fef7ff..873b1ca9b2b 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -40,6 +40,7 @@ Parameters:
| `owned` | boolean | no | Limit by projects owned by the current user |
| `membership` | boolean | no | Limit by projects that the current user is a member of |
| `starred` | boolean | no | Limit by projects starred by the current user |
+| `statistics` | boolean | no | Include project statistics |
```json
[
@@ -91,7 +92,14 @@ Parameters:
"shared_with_groups": [],
"only_allow_merge_if_pipeline_succeeds": false,
"only_allow_merge_if_all_discussions_are_resolved": false,
- "request_access_enabled": false
+ "request_access_enabled": false,
+ "statistics": {
+ "commit_count": 37,
+ "storage_size": 1038090,
+ "repository_size": 1038090,
+ "lfs_objects_size": 0,
+ "job_artifacts_size": 0
+ }
},
{
"id": 6,
@@ -151,7 +159,14 @@ Parameters:
"shared_with_groups": [],
"only_allow_merge_if_pipeline_succeeds": false,
"only_allow_merge_if_all_discussions_are_resolved": false,
- "request_access_enabled": false
+ "request_access_enabled": false,
+ "statistics": {
+ "commit_count": 12,
+ "storage_size": 2066080,
+ "repository_size": 2066080,
+ "lfs_objects_size": 0,
+ "job_artifacts_size": 0
+ }
}
]
```