2020-02-13 10:08:52 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Board < Grape::Entity
|
|
|
|
expose :id
|
2020-10-31 02:09:06 -04:00
|
|
|
expose :name
|
2021-01-12 07:10:49 -05:00
|
|
|
expose :hide_backlog_list
|
|
|
|
expose :hide_closed_list
|
2020-02-13 10:08:52 -05:00
|
|
|
expose :project, using: Entities::BasicProjectDetails
|
|
|
|
|
|
|
|
expose :lists, using: Entities::List do |board|
|
|
|
|
board.destroyable_lists
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-02-17 07:09:20 -05:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
API::Entities::Board.prepend_mod_with('API::Entities::Board')
|