summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorSebastian Ziebell <sebastian.ziebell@asquera.de>2013-03-07 15:11:33 +0100
committerSebastian Ziebell <sebastian.ziebell@asquera.de>2013-03-07 15:11:33 +0100
commitecf53bb9e616b724bafc939d5e74744e774e3fd2 (patch)
tree79fd2aa14a2fbae63d58ae06ab08fcd535207ca0 /lib/api/projects.rb
parent3374027e3a4e4eb040e59294a9ced9d7886a71e2 (diff)
downloadgitlab-ce-ecf53bb9e616b724bafc939d5e74744e774e3fd2.tar.gz
API: fixes project creation and removed redundant info
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index b1d6357fbbb..e82cfeca45d 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -42,6 +42,7 @@ module Gitlab
# wall_enabled (optional) - enabled by default
# merge_requests_enabled (optional) - enabled by default
# wiki_enabled (optional) - enabled by default
+ # namespace_id (optional) - defaults to user namespace
# Example Request
# POST /projects
post do
@@ -52,7 +53,8 @@ module Gitlab
:issues_enabled,
:wall_enabled,
:merge_requests_enabled,
- :wiki_enabled]
+ :wiki_enabled,
+ :namespace_id]
@project = ::Projects::CreateContext.new(current_user, attrs).execute
if @project.saved?
present @project, with: Entities::Project
@@ -360,8 +362,6 @@ module Gitlab
# Parameters:
# id (required) - The ID of a project
# 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