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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
931ec399
Commit
931ec399
authored
Dec 21, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the code parameter from the projects API
parent
b510f8c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
doc/api/projects.md
doc/api/projects.md
+0
-4
lib/api/entities.rb
lib/api/entities.rb
+1
-1
lib/api/projects.rb
lib/api/projects.rb
+0
-1
No files found.
doc/api/projects.md
View file @
931ec399
...
@@ -10,7 +10,6 @@ GET /projects
...
@@ -10,7 +10,6 @@ GET /projects
[
[
{
{
"id"
:
3
,
"id"
:
3
,
"code"
:
"rails"
,
"name"
:
"rails"
,
"name"
:
"rails"
,
"description"
:
null
,
"description"
:
null
,
"path"
:
"rails"
,
"path"
:
"rails"
,
...
@@ -32,7 +31,6 @@ GET /projects
...
@@ -32,7 +31,6 @@ GET /projects
},
},
{
{
"id"
:
5
,
"id"
:
5
,
"code"
:
"gitlab"
,
"name"
:
"gitlab"
,
"name"
:
"gitlab"
,
"description"
:
null
,
"description"
:
null
,
"path"
:
"gitlab"
,
"path"
:
"gitlab"
,
...
@@ -70,7 +68,6 @@ Parameters:
...
@@ -70,7 +68,6 @@ Parameters:
```
json
```
json
{
{
"id"
:
5
,
"id"
:
5
,
"code"
:
"gitlab"
,
"name"
:
"gitlab"
,
"name"
:
"gitlab"
,
"description"
:
null
,
"description"
:
null
,
"path"
:
"gitlab"
,
"path"
:
"gitlab"
,
...
@@ -103,7 +100,6 @@ POST /projects
...
@@ -103,7 +100,6 @@ POST /projects
Parameters:
Parameters:
+
`name`
(required) - new project name
+
`name`
(required) - new project name
+
`code`
(optional) - new project code, uses project name if not set
+
`path`
(optional) - new project path, uses project name if not set
+
`path`
(optional) - new project path, uses project name if not set
+
`description`
(optional) - short project description
+
`description`
(optional) - short project description
+
`default_branch`
(optional) - 'master' by default
+
`default_branch`
(optional) - 'master' by default
...
...
lib/api/entities.rb
View file @
931ec399
...
@@ -18,7 +18,7 @@ module Gitlab
...
@@ -18,7 +18,7 @@ module Gitlab
end
end
class
Project
<
Grape
::
Entity
class
Project
<
Grape
::
Entity
expose
:id
,
:
code
,
:
name
,
:description
,
:path
,
:default_branch
expose
:id
,
:name
,
:description
,
:path
,
:default_branch
expose
:owner
,
using:
Entities
::
UserBasic
expose
:owner
,
using:
Entities
::
UserBasic
expose
:private_flag
,
as: :private
expose
:private_flag
,
as: :private
expose
:issues_enabled
,
:merge_requests_enabled
,
:wall_enabled
,
:wiki_enabled
,
:created_at
expose
:issues_enabled
,
:merge_requests_enabled
,
:wall_enabled
,
:wiki_enabled
,
:created_at
...
...
lib/api/projects.rb
View file @
931ec399
...
@@ -27,7 +27,6 @@ module Gitlab
...
@@ -27,7 +27,6 @@ module Gitlab
#
#
# Parameters:
# Parameters:
# name (required) - name for new project
# name (required) - name for new project
# code (optional) - code for new project, uses project name if not set
# path (optional) - path for new project, uses project name if not set
# path (optional) - path for new project, uses project name if not set
# description (optional) - short project description
# description (optional) - short project description
# default_branch (optional) - 'master' by default
# default_branch (optional) - 'master' by default
...
...
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