Fix private flag for project
This commit is contained in:
parent
5d72a3e133
commit
67465dc5ef
2 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ GET /projects
|
||||||
"blocked": false,
|
"blocked": false,
|
||||||
"created_at": "2012-05-23T08:00:58Z"
|
"created_at": "2012-05-23T08:00:58Z"
|
||||||
},
|
},
|
||||||
"private": true,
|
"public": true,
|
||||||
"path": "rails",
|
"path": "rails",
|
||||||
"path_with_namespace": "rails/rails",
|
"path_with_namespace": "rails/rails",
|
||||||
"issues_enabled": false,
|
"issues_enabled": false,
|
||||||
|
@ -43,7 +43,7 @@ GET /projects
|
||||||
"blocked": false,
|
"blocked": false,
|
||||||
"created_at": "2012-05-23T08:00:58Z"
|
"created_at": "2012-05-23T08:00:58Z"
|
||||||
},
|
},
|
||||||
"private": true,
|
"public": true,
|
||||||
"path": "gitlab",
|
"path": "gitlab",
|
||||||
"path_with_namespace": "randx/gitlab",
|
"path_with_namespace": "randx/gitlab",
|
||||||
"issues_enabled": true,
|
"issues_enabled": true,
|
||||||
|
@ -81,7 +81,7 @@ Parameters:
|
||||||
"blocked": false,
|
"blocked": false,
|
||||||
"created_at": "2012-05-23T08:00:58Z"
|
"created_at": "2012-05-23T08:00:58Z"
|
||||||
},
|
},
|
||||||
"private": true,
|
"public": true,
|
||||||
"path": "gitlab",
|
"path": "gitlab",
|
||||||
"path_with_namespace": "randx/gitlab",
|
"path_with_namespace": "randx/gitlab",
|
||||||
"issues_enabled": true,
|
"issues_enabled": true,
|
||||||
|
|
|
@ -20,7 +20,7 @@ module Gitlab
|
||||||
class Project < Grape::Entity
|
class Project < Grape::Entity
|
||||||
expose :id, :name, :description, :default_branch
|
expose :id, :name, :description, :default_branch
|
||||||
expose :owner, using: Entities::UserBasic
|
expose :owner, using: Entities::UserBasic
|
||||||
expose :public, as: :private
|
expose :public
|
||||||
expose :path, :path_with_namespace
|
expose :path, :path_with_namespace
|
||||||
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
|
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
|
||||||
expose :namespace
|
expose :namespace
|
||||||
|
|
Loading…
Reference in a new issue