Commit 60ea455d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'api-project-path' into 'master'

API: Project create docs miss path argument

Fixes #1551

See merge request !1074
parents 4e4e1cb9 8c765aaf
...@@ -248,6 +248,7 @@ POST /projects ...@@ -248,6 +248,7 @@ POST /projects
Parameters: Parameters:
- `name` (required) - new project name - `name` (required) - new project name
- `path` (optional) - custom repository name for new project. By default generated based on name
- `namespace_id` (optional) - namespace for the new project (defaults to user) - `namespace_id` (optional) - namespace for the new project (defaults to user)
- `description` (optional) - short project description - `description` (optional) - short project description
- `issues_enabled` (optional) - `issues_enabled` (optional)
......
...@@ -114,6 +114,7 @@ describe API::API, api: true do ...@@ -114,6 +114,7 @@ describe API::API, api: true do
it "should assign attributes to project" do it "should assign attributes to project" do
project = attributes_for(:project, { project = attributes_for(:project, {
path: 'camelCasePath',
description: Faker::Lorem.sentence, description: Faker::Lorem.sentence,
issues_enabled: false, issues_enabled: false,
merge_requests_enabled: false, merge_requests_enabled: false,
...@@ -123,7 +124,6 @@ describe API::API, api: true do ...@@ -123,7 +124,6 @@ describe API::API, api: true do
post api("/projects", user), project post api("/projects", user), project
project.each_pair do |k,v| project.each_pair do |k,v|
next if k == :path
json_response[k.to_s].should == v json_response[k.to_s].should == v
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment