hensei-api/app/blueprints/api/v1/favorite_blueprint.rb

26 lines
536 B
Ruby

# frozen_string_literal: true
module Api
module V1
class FavoriteBlueprint < ApiBlueprint
identifier :id
fields :created_at, :updated_at
association :user,
name: :user,
blueprint: UserBlueprint,
view: :minimal
association :party,
name: :party,
blueprint: PartyBlueprint,
view: :preview
view :destroyed do
field :destroyed do
true
end
end
end
end
end