mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-29 12:00:32 +00:00
17 lines
752 B
Ruby
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
|