summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 19:17:56 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 19:17:56 +0300
commitdacf9f9f863dcb67a3dcb8dcfc4c151b10bca5e3 (patch)
treedb92627193950cf0be81834160df00431756a432 /doc/api
parent767bd7808153d3ec5ead766dcbd655523afd5324 (diff)
downloadgitlab-ce-dacf9f9f863dcb67a3dcb8dcfc4c151b10bca5e3.tar.gz
Add contributors API docs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/repositories.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index 26ae3e87232..2539e3edbf9 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -220,3 +220,32 @@ Response:
"compare_same_ref": false
}
```
+
+## Contributors
+
+Get repository contributors list
+
+```
+GET /projects/:id/repository/contributors
+```
+
+Parameters:
++ `id` (required) - The ID of a project
+
+Response:
+
+```
+[{
+ "name": "Dmitriy Zaporozhets",
+ "email": "dmitriy.zaporozhets@gmail.com",
+ "commits": 117,
+ "additions": 2097,
+ "deletions": 517
+}, {
+ "name": "Jacob Vosmaer",
+ "email": "contact@jacobvosmaer.nl",
+ "commits": 33,
+ "additions": 338,
+ "deletions": 244
+}]
+```