diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-07-12 11:58:17 -0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-07-12 12:10:42 -0400 |
commit | ace5c54ab91cdb9142a27d4543ee839684d29d5d (patch) | |
tree | 83fd323808932c7ad8a070dad6a7953ad1079fc4 /lib/api/projects.rb | |
parent | acb402a1c1cfb23613be0f988b60884c352de37c (diff) | |
download | gitlab-ce-ace5c54ab91cdb9142a27d4543ee839684d29d5d.tar.gz |
enhance project creation apis to allow setting of public attribute
Change-Id: Ib71ce8cf993627eada63d7d596fb302ec702f36e
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index eb8a814be5d..1fdfff931a4 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -67,6 +67,7 @@ module API # wiki_enabled (optional) # snippets_enabled (optional) # namespace_id (optional) - defaults to user namespace + # public (optional) - false by default # Example Request # POST /projects post do @@ -79,7 +80,8 @@ module API :merge_requests_enabled, :wiki_enabled, :snippets_enabled, - :namespace_id] + :namespace_id, + :public] @project = ::Projects::CreateContext.new(current_user, attrs).execute if @project.saved? present @project, with: Entities::Project @@ -103,6 +105,7 @@ module API # merge_requests_enabled (optional) # wiki_enabled (optional) # snippets_enabled (optional) + # public (optional) # Example Request # POST /projects/user/:user_id post "user/:user_id" do @@ -115,7 +118,8 @@ module API :wall_enabled, :merge_requests_enabled, :wiki_enabled, - :snippets_enabled] + :snippets_enabled, + :public] @project = ::Projects::CreateContext.new(user, attrs).execute if @project.saved? present @project, with: Entities::Project |