Commit 67465dc5ef885fef236b6a4e2de5e008e8e149b1
1 parent
5d72a3e1
Exists in
master
and in
4 other branches
Fix private flag for project
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
doc/api/projects.md
| @@ -21,7 +21,7 @@ GET /projects | @@ -21,7 +21,7 @@ GET /projects | ||
| 21 | "blocked": false, | 21 | "blocked": false, |
| 22 | "created_at": "2012-05-23T08:00:58Z" | 22 | "created_at": "2012-05-23T08:00:58Z" |
| 23 | }, | 23 | }, |
| 24 | - "private": true, | 24 | + "public": true, |
| 25 | "path": "rails", | 25 | "path": "rails", |
| 26 | "path_with_namespace": "rails/rails", | 26 | "path_with_namespace": "rails/rails", |
| 27 | "issues_enabled": false, | 27 | "issues_enabled": false, |
| @@ -43,7 +43,7 @@ GET /projects | @@ -43,7 +43,7 @@ GET /projects | ||
| 43 | "blocked": false, | 43 | "blocked": false, |
| 44 | "created_at": "2012-05-23T08:00:58Z" | 44 | "created_at": "2012-05-23T08:00:58Z" |
| 45 | }, | 45 | }, |
| 46 | - "private": true, | 46 | + "public": true, |
| 47 | "path": "gitlab", | 47 | "path": "gitlab", |
| 48 | "path_with_namespace": "randx/gitlab", | 48 | "path_with_namespace": "randx/gitlab", |
| 49 | "issues_enabled": true, | 49 | "issues_enabled": true, |
| @@ -81,7 +81,7 @@ Parameters: | @@ -81,7 +81,7 @@ Parameters: | ||
| 81 | "blocked": false, | 81 | "blocked": false, |
| 82 | "created_at": "2012-05-23T08:00:58Z" | 82 | "created_at": "2012-05-23T08:00:58Z" |
| 83 | }, | 83 | }, |
| 84 | - "private": true, | 84 | + "public": true, |
| 85 | "path": "gitlab", | 85 | "path": "gitlab", |
| 86 | "path_with_namespace": "randx/gitlab", | 86 | "path_with_namespace": "randx/gitlab", |
| 87 | "issues_enabled": true, | 87 | "issues_enabled": true, |
lib/api/entities.rb
| @@ -20,7 +20,7 @@ module Gitlab | @@ -20,7 +20,7 @@ module Gitlab | ||
| 20 | class Project < Grape::Entity | 20 | class Project < Grape::Entity |
| 21 | expose :id, :name, :description, :default_branch | 21 | expose :id, :name, :description, :default_branch |
| 22 | expose :owner, using: Entities::UserBasic | 22 | expose :owner, using: Entities::UserBasic |
| 23 | - expose :public, as: :private | 23 | + expose :public |
| 24 | expose :path, :path_with_namespace | 24 | expose :path, :path_with_namespace |
| 25 | expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at | 25 | expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at |
| 26 | expose :namespace | 26 | expose :namespace |