diff options
author | Josh Frye <joshfng@gmail.com> | 2016-01-12 12:05:52 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-07-11 21:11:32 -0400 |
commit | e47f39b9562768b20cb23f3a8f5cf714b11a2013 (patch) | |
tree | 1221c09a91fa546ae555c11bf18dc090afb062bc /lib/api/projects.rb | |
parent | 3999b80e4ebbfad46b093b94ea5ca31c0c3705be (diff) | |
download | gitlab-ce-fix-api-project-name-case.tar.gz |
Don't run parameterize on project.path. Fixes #6073fix-api-project-name-case
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 0cc1edd65c8..e87880136e4 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -87,7 +87,8 @@ module API # Create new project # # Parameters: - # name (required) - name for new project + # path (required) + # name (optional) - name for new project # description (optional) - short project description # issues_enabled (optional) # merge_requests_enabled (optional) @@ -104,7 +105,7 @@ module API # Example Request # POST /projects post do - required_attributes! [:name] + required_attributes! [:path] attrs = attributes_for_keys [:name, :path, :description, @@ -137,7 +138,8 @@ module API # # Parameters: # user_id (required) - The ID of a user - # name (required) - name for new project + # path (required) - path for the new project + # name (optional) - name for new project # description (optional) - short project description # default_branch (optional) - 'master' by default # issues_enabled (optional) @@ -157,6 +159,7 @@ module API authenticated_as_admin! user = User.find(params[:user_id]) attrs = attributes_for_keys [:name, + :path, :description, :default_branch, :issues_enabled, |