BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
60ea455d
Commit
60ea455d
authored
Sep 09, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'api-project-path' into 'master'
API: Project create docs miss path argument Fixes #1551 See merge request !1074
parents
4e4e1cb9
8c765aaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
projects.md
doc/api/projects.md
+1
-0
projects_spec.rb
spec/requests/api/projects_spec.rb
+1
-1
No files found.
doc/api/projects.md
View file @
60ea455d
...
...
@@ -248,6 +248,7 @@ POST /projects
Parameters:
-
`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)
-
`description`
(optional) - short project description
-
`issues_enabled`
(optional)
...
...
spec/requests/api/projects_spec.rb
View file @
60ea455d
...
...
@@ -114,6 +114,7 @@ describe API::API, api: true do
it
"should assign attributes to project"
do
project
=
attributes_for
(
:project
,
{
path:
'camelCasePath'
,
description:
Faker
::
Lorem
.
sentence
,
issues_enabled:
false
,
merge_requests_enabled:
false
,
...
...
@@ -123,7 +124,6 @@ describe API::API, api: true do
post
api
(
"/projects"
,
user
),
project
project
.
each_pair
do
|
k
,
v
|
next
if
k
==
:path
json_response
[
k
.
to_s
].
should
==
v
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment