debian-mirror-gitlab/lib/api/entities/projects/topic.rb

19 lines
373 B
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
module API
module Entities
module Projects
class Topic < Grape::Entity
expose :id
expose :name
2022-07-16 23:28:13 +05:30
expose :title
2021-12-11 22:18:48 +05:30
expose :description
expose :total_projects_count
expose :avatar_url do |topic, options|
topic.avatar_url(only_path: false)
end
end
end
end
end