Welcome to mirror list, hosted at ThFree Co, Russian Federation.

board.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee0bea466e080d6598e97e8bf53c0d1c0a78cd15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module API
  module Entities
    class Board < Grape::Entity
      expose :id
      expose :name
      expose :hide_backlog_list
      expose :hide_closed_list
      expose :project, using: Entities::BasicProjectDetails

      expose :lists, using: Entities::List do |board|
        board.destroyable_lists
      end
    end
  end
end

API::Entities::Board.prepend_mod_with('API::Entities::Board')