Welcome to mirror list, hosted at ThFree Co, Russian Federation.

search_result.rb « nuget « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e028cbad95134388939b275efe00d7c3a9f0eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module API
  module Entities
    module Nuget
      class SearchResult < Grape::Entity
        expose :type, as: :@type
        expose :authors
        expose :name, as: :id
        expose :name, as: :title
        expose :summary
        expose :total_downloads, as: :totalDownloads
        expose :verified
        expose :version
        expose :versions, using: ::API::Entities::Nuget::SearchResultVersion
        expose :tags
        expose :metadatum, using: ::API::Entities::Nuget::Metadatum, merge: true
      end
    end
  end
end