Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
d6aec3fc
Commit
d6aec3fc
authored
Aug 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow specify path when create project via api
parent
8da4d15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
lib/api/projects.rb
lib/api/projects.rb
+8
-7
No files found.
lib/api/projects.rb
View file @
d6aec3fc
...
@@ -61,10 +61,10 @@ module API
...
@@ -61,10 +61,10 @@ module API
# name (required) - name for new project
# name (required) - name for new project
# description (optional) - short project description
# description (optional) - short project description
# default_branch (optional) - 'master' by default
# default_branch (optional) - 'master' by default
# issues_enabled (optional)
# issues_enabled (optional)
# wall_enabled (optional)
# wall_enabled (optional)
# merge_requests_enabled (optional)
# merge_requests_enabled (optional)
# wiki_enabled (optional)
# wiki_enabled (optional)
# snippets_enabled (optional)
# snippets_enabled (optional)
# namespace_id (optional) - defaults to user namespace
# namespace_id (optional) - defaults to user namespace
# public (optional) - false by default
# public (optional) - false by default
...
@@ -73,6 +73,7 @@ module API
...
@@ -73,6 +73,7 @@ module API
post
do
post
do
required_attributes!
[
:name
]
required_attributes!
[
:name
]
attrs
=
attributes_for_keys
[
:name
,
attrs
=
attributes_for_keys
[
:name
,
:path
,
:description
,
:description
,
:default_branch
,
:default_branch
,
:issues_enabled
,
:issues_enabled
,
...
@@ -100,9 +101,9 @@ module API
...
@@ -100,9 +101,9 @@ module API
# name (required) - name for new project
# name (required) - name for new project
# description (optional) - short project description
# description (optional) - short project description
# default_branch (optional) - 'master' by default
# default_branch (optional) - 'master' by default
# issues_enabled (optional)
# issues_enabled (optional)
# wall_enabled (optional)
# wall_enabled (optional)
# merge_requests_enabled (optional)
# merge_requests_enabled (optional)
# wiki_enabled (optional)
# wiki_enabled (optional)
# snippets_enabled (optional)
# snippets_enabled (optional)
# public (optional)
# public (optional)
...
...
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