hensei-api/app/blueprints/api/v1/grid_summon_blueprint.rb
Justin Edmund 7995f35440 Add quick summons (#97)
* Adds quick summon migration
* Add route to update quick summon
* Add logic to update quick summon
2023-06-19 00:35:22 -07:00

26 lines
706 B
Ruby

# frozen_string_literal: true
module Api
module V1
class GridSummonBlueprint < ApiBlueprint
view :uncap do
association :party, blueprint: PartyBlueprint, view: :minimal
fields :position, :uncap_level, :transcendence_step
end
view :nested do
fields :main, :friend, :position, :quick_summon, :uncap_level, :transcendence_step
association :summon, name: :object, blueprint: SummonBlueprint
end
view :full do
include_view :nested
association :party, blueprint: PartyBlueprint, view: :minimal
end
view :destroyed do
fields :main, :friend, :position, :created_at, :updated_at
end
end
end
end