Update raid blueprints

- Show flat representation of raid group in RaidBlueprint's nested view
- Show nested representation of raid in RaidGroupBlueprint's full view
This commit is contained in:
Justin Edmund 2025-02-09 18:04:43 -08:00
parent 8f77a1f613
commit 76f3b85613
2 changed files with 2 additions and 4 deletions

View file

@ -13,9 +13,7 @@ module Api
fields :slug, :level, :element fields :slug, :level, :element
field :group do |raid| association :group, blueprint: RaidGroupBlueprint, view: :flat
{ extra: raid.group&.extra }
end
end end
view :full do view :full do

View file

@ -16,7 +16,7 @@ module Api
view :full do view :full do
include_view :flat include_view :flat
association :raids, blueprint: RaidBlueprint, view: :full association :raids, blueprint: RaidBlueprint, view: :nested
end end
end end
end end