hensei-api/app/blueprints/api/v1/raid_blueprint.rb
Justin Edmund 2dacfae17e add quest_id and lobby/background image sizes for raids
- add quest_id column to raids table
- add lobby and background image downloads using quest_id
- lobby uses quest_id with "1" appended
- background uses quest_id for treasureraid directory
2026-01-06 03:52:30 -08:00

26 lines
498 B
Ruby

# frozen_string_literal: true
module Api
module V1
class RaidBlueprint < ApiBlueprint
view :nested do
identifier :id
field :name do |raid|
{
en: raid.name_en,
ja: raid.name_jp
}
end
fields :slug, :level, :element, :enemy_id, :summon_id, :quest_id
association :group, blueprint: RaidGroupBlueprint, view: :flat
end
view :full do
include_view :nested
end
end
end
end