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

group_avatar.rb « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ddf6787f913517e9e7670dbe08f0f90c02d6c190 (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
  class GroupAvatar < ::API::Base
    helpers Helpers::GroupsHelpers

    feature_category :subgroups

    resource :groups do
      desc 'Download the group avatar' do
        detail 'This feature was introduced in GitLab 14.0'
      end
      params do
        requires :id, type: String, desc: 'The group id'
      end
      get ':id/avatar' do
        present_carrierwave_file!(user_group.avatar)
      end
    end
  end
end