debian-mirror-gitlab/lib/api/entities/nuget/search_results.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
406 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module API
module Entities
module Nuget
class SearchResults < Grape::Entity
2023-03-04 22:38:38 +05:30
expose :total_count, as: :totalHits, documentation: { type: 'integer', example: 1 }
expose :data, using: ::API::Entities::Nuget::SearchResult,
documentation: { is_array: true, type: 'API::Entities::Nuget::SearchResult' }
2020-07-28 23:09:34 +05:30
end
end
end
end