Add minimal view to Party and use in GridObject
This commit is contained in:
parent
a15ba3c376
commit
2a74b8aa4d
4 changed files with 10 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ module Api
|
||||||
identifier :id
|
identifier :id
|
||||||
|
|
||||||
view :uncap do
|
view :uncap do
|
||||||
association :party, blueprint: PartyBlueprint
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
fields :position, :uncap_level
|
fields :position, :uncap_level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -17,7 +17,7 @@ module Api
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
include_view :nested
|
include_view :nested
|
||||||
association :party, blueprint: PartyBlueprint, view: :preview
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ module Api
|
||||||
identifier :id
|
identifier :id
|
||||||
|
|
||||||
view :uncap do
|
view :uncap do
|
||||||
association :party, blueprint: PartyBlueprint
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
fields :position, :uncap_level
|
fields :position, :uncap_level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -17,7 +17,7 @@ module Api
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
include_view :nested
|
include_view :nested
|
||||||
association :party, blueprint: PartyBlueprint, view: :preview
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ module Api
|
||||||
identifier :id
|
identifier :id
|
||||||
|
|
||||||
view :uncap do
|
view :uncap do
|
||||||
association :party, blueprint: PartyBlueprint
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
fields :position, :uncap_level
|
fields :position, :uncap_level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -36,7 +36,7 @@ module Api
|
||||||
|
|
||||||
view :full do
|
view :full do
|
||||||
include_view :nested
|
include_view :nested
|
||||||
association :party, blueprint: PartyBlueprint, view: :preview
|
association :party, blueprint: PartyBlueprint, view: :minimal
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ module Api
|
||||||
view: :nested
|
view: :nested
|
||||||
end
|
end
|
||||||
|
|
||||||
view :preview do
|
view :minimal do
|
||||||
fields :name, :element, :shortcode, :favorited, :extra, :created_at, :updated_at
|
fields :name, :element, :shortcode, :favorited, :extra, :created_at, :updated_at
|
||||||
|
|
||||||
association :raid,
|
association :raid,
|
||||||
|
|
@ -31,7 +31,10 @@ module Api
|
||||||
|
|
||||||
association :job,
|
association :job,
|
||||||
blueprint: JobBlueprint
|
blueprint: JobBlueprint
|
||||||
|
end
|
||||||
|
|
||||||
|
view :preview do
|
||||||
|
include_view :minimal
|
||||||
include_view :weapons
|
include_view :weapons
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue