Commit 056fa05b869a8e12700bf56934e93ca76abb2db7
1 parent
1ba28aae
Exists in
master
and in
4 other branches
Remove path parameter from projects API
Showing
3 changed files
with
1 additions
and
6 deletions
Show diff stats
doc/api/projects.md
| ... | ... | @@ -12,7 +12,6 @@ GET /projects |
| 12 | 12 | "id": 3, |
| 13 | 13 | "name": "rails", |
| 14 | 14 | "description": null, |
| 15 | - "path": "rails", | |
| 16 | 15 | "default_branch": "master", |
| 17 | 16 | "owner": { |
| 18 | 17 | "id": 1, |
| ... | ... | @@ -33,7 +32,6 @@ GET /projects |
| 33 | 32 | "id": 5, |
| 34 | 33 | "name": "gitlab", |
| 35 | 34 | "description": null, |
| 36 | - "path": "gitlab", | |
| 37 | 35 | "default_branch": "api", |
| 38 | 36 | "owner": { |
| 39 | 37 | "id": 1, |
| ... | ... | @@ -70,7 +68,6 @@ Parameters: |
| 70 | 68 | "id": 5, |
| 71 | 69 | "name": "gitlab", |
| 72 | 70 | "description": null, |
| 73 | - "path": "gitlab", | |
| 74 | 71 | "default_branch": "api", |
| 75 | 72 | "owner": { |
| 76 | 73 | "id": 1, |
| ... | ... | @@ -100,7 +97,6 @@ POST /projects |
| 100 | 97 | Parameters: |
| 101 | 98 | |
| 102 | 99 | + `name` (required) - new project name |
| 103 | -+ `path` (optional) - new project path, uses project name if not set | |
| 104 | 100 | + `description` (optional) - short project description |
| 105 | 101 | + `default_branch` (optional) - 'master' by default |
| 106 | 102 | + `issues_enabled` (optional) - enabled by default | ... | ... |
lib/api/entities.rb
| ... | ... | @@ -18,7 +18,7 @@ module Gitlab |
| 18 | 18 | end |
| 19 | 19 | |
| 20 | 20 | class Project < Grape::Entity |
| 21 | - expose :id, :name, :description, :path, :default_branch | |
| 21 | + expose :id, :name, :description, :default_branch | |
| 22 | 22 | expose :owner, using: Entities::UserBasic |
| 23 | 23 | expose :private_flag, as: :private |
| 24 | 24 | expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at | ... | ... |
lib/api/projects.rb
| ... | ... | @@ -27,7 +27,6 @@ module Gitlab |
| 27 | 27 | # |
| 28 | 28 | # Parameters: |
| 29 | 29 | # name (required) - name for new project |
| 30 | - # path (optional) - path for new project, uses project name if not set | |
| 31 | 30 | # description (optional) - short project description |
| 32 | 31 | # default_branch (optional) - 'master' by default |
| 33 | 32 | # issues_enabled (optional) - enabled by default | ... | ... |