summaryrefslogtreecommitdiff
path: root/lib/api/v3
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-28 16:29:00 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-28 16:29:00 +0000
commit0226fb0e1f7b1aca6cd1258371a03245df8c1787 (patch)
treecfe4b2e9d3ecabeb85ab46e8500498e4b9e91eda /lib/api/v3
parent58758bd5921a3f70918b23f90443812e6088a29c (diff)
parent08ee177d6f247d1f8aa43a91e89469434526aabe (diff)
downloadgitlab-ce-0226fb0e1f7b1aca6cd1258371a03245df8c1787.tar.gz
Merge branch '6073_project_api' into 'master'
API project create: Make name or path required Closes #6073 See merge request !9416
Diffstat (limited to 'lib/api/v3')
-rw-r--r--lib/api/v3/projects.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/v3/projects.rb b/lib/api/v3/projects.rb
index f3cd0b22e9b..881d52e4aa4 100644
--- a/lib/api/v3/projects.rb
+++ b/lib/api/v3/projects.rb
@@ -172,8 +172,9 @@ module API
success ::API::Entities::Project
end
params do
- requires :name, type: String, desc: 'The name of the project'
+ optional :name, type: String, desc: 'The name of the project'
optional :path, type: String, desc: 'The path of the repository'
+ at_least_one_of :name, :path
use :optional_params
use :create_params
end