diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-28 16:29:00 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-02-28 16:29:00 +0000 |
commit | 0226fb0e1f7b1aca6cd1258371a03245df8c1787 (patch) | |
tree | cfe4b2e9d3ecabeb85ab46e8500498e4b9e91eda /lib/api/projects.rb | |
parent | 58758bd5921a3f70918b23f90443812e6088a29c (diff) | |
parent | 08ee177d6f247d1f8aa43a91e89469434526aabe (diff) | |
download | gitlab-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/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 310a896e958..b8a8cee0cea 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -94,8 +94,9 @@ module API success 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 |