Files
gitlab-foss/lib/api/entities/award_emoji.rb
2025-03-06 12:09:33 +00:00

17 lines
752 B
Ruby

# frozen_string_literal: true
module API
module Entities
class AwardEmoji < Grape::Entity
expose :id, documentation: { type: 'integer', example: 1 }
expose :name, documentation: { type: 'string', example: 'lizard' }
expose :user, using: Entities::UserBasic
expose :created_at, documentation: { type: 'dateTime', example: '2019-01-10T13:39:08Z' }
expose :updated_at, documentation: { type: 'dateTime', example: '2020-06-28T10:52:04Z' }
expose :awardable_id, documentation: { type: 'integer', example: 42 }
expose :awardable_type, documentation: { type: 'string', example: 'Issue' }
expose :url, documentation: { type: 'string', example: 'https://example.com/emojis/example.gif' }
end
end
end