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
056fa05b
Commit
056fa05b
authored
Dec 22, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove path parameter from projects API
parent
1ba28aae
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 @
056fa05b
...
...
@@ -12,7 +12,6 @@ GET /projects
"id"
:
3
,
"name"
:
"rails"
,
"description"
:
null
,
"path"
:
"rails"
,
"default_branch"
:
"master"
,
"owner"
:
{
"id"
:
1
,
...
...
@@ -33,7 +32,6 @@ GET /projects
"id"
:
5
,
"name"
:
"gitlab"
,
"description"
:
null
,
"path"
:
"gitlab"
,
"default_branch"
:
"api"
,
"owner"
:
{
"id"
:
1
,
...
...
@@ -70,7 +68,6 @@ Parameters:
"id"
:
5
,
"name"
:
"gitlab"
,
"description"
:
null
,
"path"
:
"gitlab"
,
"default_branch"
:
"api"
,
"owner"
:
{
"id"
:
1
,
...
...
@@ -100,7 +97,6 @@ POST /projects
Parameters:
+
`name`
(required) - new project name
+
`path`
(optional) - new project path, uses project name if not set
+
`description`
(optional) - short project description
+
`default_branch`
(optional) - 'master' by default
+
`issues_enabled`
(optional) - enabled by default
...
...
lib/api/entities.rb
View file @
056fa05b
...
...
@@ -18,7 +18,7 @@ module Gitlab
end
class
Project
<
Grape
::
Entity
expose
:id
,
:name
,
:description
,
:
path
,
:
default_branch
expose
:id
,
:name
,
:description
,
:default_branch
expose
:owner
,
using:
Entities
::
UserBasic
expose
:private_flag
,
as: :private
expose
:issues_enabled
,
:merge_requests_enabled
,
:wall_enabled
,
:wiki_enabled
,
:created_at
...
...
lib/api/projects.rb
View file @
056fa05b
...
...
@@ -27,7 +27,6 @@ module Gitlab
#
# Parameters:
# name (required) - name for new project
# path (optional) - path for new project, uses project name if not set
# description (optional) - short project description
# default_branch (optional) - 'master' by default
# issues_enabled (optional) - enabled 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