debian-mirror-gitlab/lib/api/entities/basic_release_details.rb

17 lines
716 B
Ruby
Raw Normal View History

2022-06-21 17:19:12 +05:30
# frozen_string_literal: true
module API
module Entities
class BasicReleaseDetails < Grape::Entity
include ::API::Helpers::Presentable
2023-01-13 00:05:48 +05:30
expose :name, documentation: { type: 'string', example: 'Release v1.0' }
expose :tag, documentation: { type: 'string', example: 'v1.0' }, as: :tag_name
expose :description, documentation: { type: 'string', example: 'Finally released v1.0' }
expose :created_at, documentation: { type: 'dateTime', example: '2019-01-03T01:56:19.539Z' }
expose :released_at, documentation: { type: 'dateTime', example: '2019-01-03T01:56:19.539Z' }
expose :upcoming_release?, documentation: { type: 'boolean' }, as: :upcoming_release
2022-06-21 17:19:12 +05:30
end
end
end