hensei-api/app/blueprints/api/v1/raid_blueprint.rb
Justin Edmund c8f7204b08
Add game_id to raids (#208)
* add game_id to raids

* rename game_id to enemy_id, add summon_id

* add raid image downloader

* add download endpoints for raid images

- download_image action for single image download (icon/thumbnail)
- download_images action to queue async download job
- download_status action to check job progress

* 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-07 23:59:20 -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