diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-13 12:24:44 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-05-13 12:24:44 +0300 |
commit | e0fdb4262aa8b5351fe55044b942f4ce595be25c (patch) | |
tree | 35b2cf34e9ec245c4eb3c61ea025311c33497ca3 /lib | |
parent | 6d65afb3c44a989f5b80353a213f40895a9c1c45 (diff) | |
parent | 61e68634033219cb9620ef11078bc90254f1b553 (diff) | |
download | gitlab-ce-e0fdb4262aa8b5351fe55044b942f4ce595be25c.tar.gz |
Merge pull request #6823 from milgner/api_expose_project_archived_status
Expose archive status of projects in API
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/entities.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index abe6fceff14..c1bd6d02c68 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -43,6 +43,7 @@ module API class Project < Grape::Entity expose :id, :description, :default_branch expose :public?, as: :public + expose :archived?, as: :archived expose :visibility_level, :ssh_url_to_repo, :http_url_to_repo, :web_url expose :owner, using: Entities::UserBasic, unless: ->(project, options) { project.group } expose :name, :name_with_namespace |