Add minimal view to Party and use in GridObject

This commit is contained in:
Justin Edmund 2022-12-21 20:53:34 -08:00
parent a15ba3c376
commit 2a74b8aa4d
4 changed files with 10 additions and 7 deletions

View file

@ -6,7 +6,7 @@ module Api
identifier :id
view :uncap do
association :party, blueprint: PartyBlueprint
association :party, blueprint: PartyBlueprint, view: :minimal
fields :position, :uncap_level
end
@ -17,7 +17,7 @@ module Api
view :full do
include_view :nested
association :party, blueprint: PartyBlueprint, view: :preview
association :party, blueprint: PartyBlueprint, view: :minimal
end
end
end

View file

@ -6,7 +6,7 @@ module Api
identifier :id
view :uncap do
association :party, blueprint: PartyBlueprint
association :party, blueprint: PartyBlueprint, view: :minimal
fields :position, :uncap_level
end
@ -17,7 +17,7 @@ module Api
view :full do
include_view :nested
association :party, blueprint: PartyBlueprint, view: :preview
association :party, blueprint: PartyBlueprint, view: :minimal
end
end
end

View file

@ -6,7 +6,7 @@ module Api
identifier :id
view :uncap do
association :party, blueprint: PartyBlueprint
association :party, blueprint: PartyBlueprint, view: :minimal
fields :position, :uncap_level
end
@ -36,7 +36,7 @@ module Api
view :full do
include_view :nested
association :party, blueprint: PartyBlueprint, view: :preview
association :party, blueprint: PartyBlueprint, view: :minimal
end
end
end

View file

@ -23,7 +23,7 @@ module Api
view: :nested
end
view :preview do
view :minimal do
fields :name, :element, :shortcode, :favorited, :extra, :created_at, :updated_at
association :raid,
@ -31,7 +31,10 @@ module Api
association :job,
blueprint: JobBlueprint
end
view :preview do
include_view :minimal
include_view :weapons
end