summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/projects.md6
-rw-r--r--lib/api/entities.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index 82bb0c0d561..13c53880db0 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -21,7 +21,7 @@ GET /projects
"blocked": false,
"created_at": "2012-05-23T08:00:58Z"
},
- "private": true,
+ "public": true,
"path": "rails",
"path_with_namespace": "rails/rails",
"issues_enabled": false,
@@ -43,7 +43,7 @@ GET /projects
"blocked": false,
"created_at": "2012-05-23T08:00:58Z"
},
- "private": true,
+ "public": true,
"path": "gitlab",
"path_with_namespace": "randx/gitlab",
"issues_enabled": true,
@@ -81,7 +81,7 @@ Parameters:
"blocked": false,
"created_at": "2012-05-23T08:00:58Z"
},
- "private": true,
+ "public": true,
"path": "gitlab",
"path_with_namespace": "randx/gitlab",
"issues_enabled": true,
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index b5dd033bc5d..1cae1d337fe 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -20,7 +20,7 @@ module Gitlab
class Project < Grape::Entity
expose :id, :name, :description, :default_branch
expose :owner, using: Entities::UserBasic
- expose :public, as: :private
+ expose :public
expose :path, :path_with_namespace
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
expose :namespace