Add source party to output
This commit is contained in:
parent
906faaeb1e
commit
2c4d8b6fe1
1 changed files with 9 additions and 5 deletions
|
|
@ -49,11 +49,6 @@ module Api
|
||||||
association :user,
|
association :user,
|
||||||
blueprint: UserBlueprint,
|
blueprint: UserBlueprint,
|
||||||
view: :minimal
|
view: :minimal
|
||||||
|
|
||||||
# TODO: This should probably be paginated
|
|
||||||
association :remixes,
|
|
||||||
blueprint: PartyBlueprint,
|
|
||||||
view: :collection
|
|
||||||
end
|
end
|
||||||
|
|
||||||
view :jobs do
|
view :jobs do
|
||||||
|
|
@ -76,6 +71,15 @@ module Api
|
||||||
association :accessory,
|
association :accessory,
|
||||||
blueprint: JobAccessoryBlueprint
|
blueprint: JobAccessoryBlueprint
|
||||||
fields :description, :charge_attack, :button_count, :turn_count, :chain_count
|
fields :description, :charge_attack, :button_count, :turn_count, :chain_count
|
||||||
|
|
||||||
|
association :source_party,
|
||||||
|
blueprint: PartyBlueprint,
|
||||||
|
view: :minimal
|
||||||
|
|
||||||
|
# TODO: This should probably be paginated
|
||||||
|
association :remixes,
|
||||||
|
blueprint: PartyBlueprint,
|
||||||
|
view: :collection
|
||||||
end
|
end
|
||||||
|
|
||||||
view :collection do
|
view :collection do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue