Fix GridObject blueprints
This commit is contained in:
parent
979d28be75
commit
bf04ddcbba
3 changed files with 30 additions and 6 deletions
|
|
@ -3,13 +3,21 @@
|
|||
module Api
|
||||
module V1
|
||||
class GridCharacterBlueprint < ApiBlueprint
|
||||
identifier :id
|
||||
|
||||
view :uncap do
|
||||
association :party, blueprint: PartyBlueprint
|
||||
fields :position, :uncap_level
|
||||
end
|
||||
|
||||
view :nested do
|
||||
fields :id, :position, :uncap_level, :perpetuity
|
||||
fields :position, :uncap_level, :perpetuity
|
||||
association :character, name: :object, blueprint: CharacterBlueprint
|
||||
end
|
||||
|
||||
view :full do
|
||||
fields :party_id
|
||||
include_view :nested
|
||||
association :party, blueprint: PartyBlueprint
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,13 +3,21 @@
|
|||
module Api
|
||||
module V1
|
||||
class GridSummonBlueprint < ApiBlueprint
|
||||
identifier :id
|
||||
|
||||
view :uncap do
|
||||
association :party, blueprint: PartyBlueprint
|
||||
fields :position, :uncap_level
|
||||
end
|
||||
|
||||
view :nested do
|
||||
fields :id, :main, :friend, :position, :uncap_level
|
||||
fields :main, :friend, :position, :uncap_level
|
||||
association :summon, name: :object, blueprint: SummonBlueprint
|
||||
end
|
||||
|
||||
view :full do
|
||||
fields :party_id
|
||||
include_view :nested
|
||||
association :party, blueprint: PartyBlueprint
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,8 +3,15 @@
|
|||
module Api
|
||||
module V1
|
||||
class GridWeaponBlueprint < ApiBlueprint
|
||||
identifier :id
|
||||
|
||||
view :uncap do
|
||||
association :party, blueprint: PartyBlueprint
|
||||
fields :position, :uncap_level
|
||||
end
|
||||
|
||||
view :nested do
|
||||
fields :id, :mainhand, :position, :uncap_level, :element
|
||||
fields :mainhand, :position, :uncap_level, :element
|
||||
association :weapon, name: :object, blueprint: WeaponBlueprint
|
||||
|
||||
association :weapon_keys,
|
||||
|
|
@ -28,7 +35,8 @@ module Api
|
|||
end
|
||||
|
||||
view :full do
|
||||
fields :party_id
|
||||
include_view :nested
|
||||
association :party, blueprint: PartyBlueprint
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue