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

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

module API
  module Entities
    module Projects
      class Topic < Grape::Entity
        expose :id
        expose :name
        expose :title
        expose :description
        expose :total_projects_count
        expose :avatar_url do |topic, options|
          topic.avatar_url(only_path: false)
        end
      end
    end
  end
end