summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-22 20:06:18 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-22 20:06:18 +0100
commit056fa05b869a8e12700bf56934e93ca76abb2db7 (patch)
treeaf2a685d8a62bc8d00c6c62a02e3c2045966c74a
parent1ba28aaef8a985f6e06b2a2673dcaf4723843241 (diff)
downloadgitlab-ce-056fa05b869a8e12700bf56934e93ca76abb2db7.tar.gz
Remove path parameter from projects API
-rw-r--r--doc/api/projects.md4
-rw-r--r--lib/api/entities.rb2
-rw-r--r--lib/api/projects.rb1
3 files changed, 1 insertions, 6 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index b38e60ee296..411286750f8 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -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
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 92245a9f093..e5b2685abf5 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -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
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 64b65f16b7e..fb01524da39 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -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