summaryrefslogtreecommitdiff
path: root/lib/api/entities/board.rb
blob: afbf5b4b65b6e85547c3a48cd5bcba13f41d5b14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

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

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