diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-14 13:41:06 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-14 13:41:06 +0300 |
commit | d6aec3fc1a974d104612b5dc2832c74f701c3caf (patch) | |
tree | 9989ad34ab1166142e30f6afea6dd4ec8eb472b5 /lib/api/projects.rb | |
parent | 8da4d15f233d8f4ebacd39847172c91f3c262a3e (diff) | |
download | gitlab-ce-d6aec3fc1a974d104612b5dc2832c74f701c3caf.tar.gz |
Allow specify path when create project via api
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 1fdfff931a4..c6ff524cb06 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -61,10 +61,10 @@ module API # name (required) - name for new project # description (optional) - short project description # default_branch (optional) - 'master' by default - # issues_enabled (optional) - # wall_enabled (optional) - # merge_requests_enabled (optional) - # wiki_enabled (optional) + # issues_enabled (optional) + # wall_enabled (optional) + # merge_requests_enabled (optional) + # wiki_enabled (optional) # snippets_enabled (optional) # namespace_id (optional) - defaults to user namespace # public (optional) - false by default @@ -73,6 +73,7 @@ module API post do required_attributes! [:name] attrs = attributes_for_keys [:name, + :path, :description, :default_branch, :issues_enabled, @@ -100,9 +101,9 @@ module API # name (required) - name for new project # description (optional) - short project description # default_branch (optional) - 'master' by default - # issues_enabled (optional) - # wall_enabled (optional) - # merge_requests_enabled (optional) + # issues_enabled (optional) + # wall_enabled (optional) + # merge_requests_enabled (optional) # wiki_enabled (optional) # snippets_enabled (optional) # public (optional) |