summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 20:26:36 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-23 20:26:36 +0300
commit66098dbb5949853bdab97794a6c3b3961a1f27c3 (patch)
treec33e9dcef25bff0f130e176d079646925dfe33c8 /lib/api/projects.rb
parent931f27ae32f82ecc58d8889dbcd32db22a021659 (diff)
parent1e160e130de2f4702a928b2ee951c1c11316207f (diff)
downloadgitlab-ce-66098dbb5949853bdab97794a6c3b3961a1f27c3.tar.gz
Merge pull request #7089 from NARKOZ/api-patch
API patch
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 732c969d7ef..ab272426ce0 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -77,6 +77,7 @@ module API
# namespace_id (optional) - defaults to user namespace
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional) - 0 by default
+ # import_url (optional)
# Example Request
# POST /projects
post do
@@ -117,6 +118,7 @@ module API
# snippets_enabled (optional)
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional)
+ # import_url (optional)
# Example Request
# POST /projects/user/:user_id
post "user/:user_id" do
@@ -130,7 +132,8 @@ module API
:wiki_enabled,
:snippets_enabled,
:public,
- :visibility_level]
+ :visibility_level,
+ :import_url]
attrs = map_public_to_visibility_level(attrs)
@project = ::Projects::CreateService.new(user, attrs).execute
if @project.saved?