diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2014-06-06 06:31:55 +0500 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2014-06-06 06:31:55 +0500 |
commit | 7040a42cfc0e2a0a3c7d510bde7a75b06a4530db (patch) | |
tree | 9148a04919f5a6a3c7532a6ed25cfac3f6911b21 /lib/api | |
parent | f7cf0286116cb6c771e539d34921b4b5f472be68 (diff) | |
download | gitlab-ce-7040a42cfc0e2a0a3c7d510bde7a75b06a4530db.tar.gz |
API: ability to set an import url when creating project for a specified user
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/projects.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 9d290c75ba9..cb72b49767d 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -78,6 +78,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 @@ -120,6 +121,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 @@ -134,7 +136,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? |