summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-27 11:24:12 +0100
committerSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-27 11:24:12 +0100
commite119b0a0cb33b1b7f2dafcf17c2a94af40aed833 (patch)
tree005d96464874df21cb804a3996788557d56b5fe6 /lib/api/projects.rb
parentac4a09e9cca9018dbb8e52446078b91a4b87e410 (diff)
downloadgitlab-ce-e119b0a0cb33b1b7f2dafcf17c2a94af40aed833.tar.gz
API repository documentation updated, includes infos to return codes
The API documentation of repository is updated and now contains infos to status codes. Code documentation is also adjusted for `GET /projects/:id/repository/commits` and includes infos to pagination attributes. Tests are updated.
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 65381dac6ac..c749c24f228 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -331,7 +331,9 @@ module Gitlab
#
# Parameters:
# id (required) - The ID of a project
- # ref_name (optional) - The name of a repository branch or tag
+ # ref_name (optional) - The name of a repository branch or tag, if not given the default branch is used
+ # page (optional) - The page number of the commit pagination
+ # per_page (optional) - The number of elements per page used in pagination
# Example Request:
# GET /projects/:id/repository/commits
get ":id/repository/commits" do