Add views and guidebook flag to RaidGroup blueprint
This commit is contained in:
parent
75ab0910f3
commit
0abc80c24f
1 changed files with 13 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue