Commit d6aec3fc1a974d104612b5dc2832c74f701c3caf
1 parent
8da4d15f
Exists in
master
and in
4 other branches
Allow specify path when create project via api
Showing
1 changed file
with
8 additions
and
7 deletions
Show diff stats
lib/api/projects.rb
| ... | ... | @@ -61,10 +61,10 @@ module API |
| 61 | 61 | # name (required) - name for new project |
| 62 | 62 | # description (optional) - short project description |
| 63 | 63 | # default_branch (optional) - 'master' by default |
| 64 | - # issues_enabled (optional) | |
| 65 | - # wall_enabled (optional) | |
| 66 | - # merge_requests_enabled (optional) | |
| 67 | - # wiki_enabled (optional) | |
| 64 | + # issues_enabled (optional) | |
| 65 | + # wall_enabled (optional) | |
| 66 | + # merge_requests_enabled (optional) | |
| 67 | + # wiki_enabled (optional) | |
| 68 | 68 | # snippets_enabled (optional) |
| 69 | 69 | # namespace_id (optional) - defaults to user namespace |
| 70 | 70 | # public (optional) - false by default |
| ... | ... | @@ -73,6 +73,7 @@ module API |
| 73 | 73 | post do |
| 74 | 74 | required_attributes! [:name] |
| 75 | 75 | attrs = attributes_for_keys [:name, |
| 76 | + :path, | |
| 76 | 77 | :description, |
| 77 | 78 | :default_branch, |
| 78 | 79 | :issues_enabled, |
| ... | ... | @@ -100,9 +101,9 @@ module API |
| 100 | 101 | # name (required) - name for new project |
| 101 | 102 | # description (optional) - short project description |
| 102 | 103 | # default_branch (optional) - 'master' by default |
| 103 | - # issues_enabled (optional) | |
| 104 | - # wall_enabled (optional) | |
| 105 | - # merge_requests_enabled (optional) | |
| 104 | + # issues_enabled (optional) | |
| 105 | + # wall_enabled (optional) | |
| 106 | + # merge_requests_enabled (optional) | |
| 106 | 107 | # wiki_enabled (optional) |
| 107 | 108 | # snippets_enabled (optional) |
| 108 | 109 | # public (optional) | ... | ... |