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

17 lines
609 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# frozen_string_literal: true
module API
module Entities
class Metadata < Grape::Entity
2023-01-13 00:05:48 +05:30
expose :version, documentation: { type: 'string', example: '15.2-pre' }
expose :revision, documentation: { type: 'string', example: 'c401a659d0c' }
2022-11-25 23:54:43 +05:30
expose :kas do
expose :enabled, documentation: { type: 'boolean' }
2023-01-13 00:05:48 +05:30
expose :externalUrl, documentation: { type: 'string', example: 'grpc://gitlab.example.com:8150' }
expose :version, documentation: { type: 'string', example: '15.0.0' }
2022-11-25 23:54:43 +05:30
end
2023-01-13 00:05:48 +05:30
expose :enterprise, documentation: { type: 'boolean' }
2022-11-25 23:54:43 +05:30
end
end
end