debian-mirror-gitlab/lib/api/entities/board.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
429 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class Board < Grape::Entity
expose :id
2021-01-29 00:20:46 +05:30
expose :name
2021-03-08 18:12:59 +05:30
expose :hide_backlog_list
expose :hide_closed_list
2020-03-13 15:44:24 +05:30
expose :project, using: Entities::BasicProjectDetails
expose :lists, using: Entities::List do |board|
board.destroyable_lists
end
end
end
end
2021-06-08 01:23:25 +05:30
API::Entities::Board.prepend_mod_with('API::Entities::Board')