Add views and guidebook flag to RaidGroup blueprint

This commit is contained in:
Justin Edmund 2023-06-18 02:03:33 -07:00
parent 75ab0910f3
commit 0abc80c24f

View file

@ -3,6 +3,7 @@
module Api
module V1
class RaidGroupBlueprint < ApiBlueprint
view :flat do
field :name do |group|
{
en: group.name_en,
@ -10,9 +11,13 @@ module Api
}
end
fields :difficulty, :order, :section, :extra, :hl
fields :difficulty, :order, :section, :extra, :guidebooks, :hl
end
association :raids, blueprint: RaidBlueprint, view: :nested
view :full do
include_view :flat
association :raids, blueprint: RaidBlueprint, view: :full
end
end
end
end