15 lines
543 B
Ruby
15 lines
543 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
module Releases
|
|
class Evidence < Grape::Entity
|
|
include ::API::Helpers::Presentable
|
|
|
|
expose :sha, documentation: { type: 'string', example: '760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d' }
|
|
expose :filepath, documentation: { type: 'string', example: 'https://gitlab.example.com/root/app/-/releases/v1.0/evidence.json' }
|
|
expose :collected_at, documentation: { type: 'dateTime', example: '2019-01-03T01:56:19.539Z' }
|
|
end
|
|
end
|
|
end
|
|
end
|