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

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

module API
  module Entities
    class UserCounts < Grape::Entity
      expose(
        :assigned_open_merge_requests_count, # @deprecated
        as: :merge_requests,
        documentation: { type: 'integer', example: 10 }
      )
      expose :assigned_open_issues_count, as: :assigned_issues, documentation: { type: 'integer', example: 10 }
      expose(
        :assigned_open_merge_requests_count,
        as: :assigned_merge_requests,
        documentation: { type: 'integer', example: 10 }
      )
      expose(
        :review_requested_open_merge_requests_count,
        as: :review_requested_merge_requests,
        documentation: { type: 'integer', example: 10 }
      )
      expose :todos_pending_count, as: :todos, documentation: { type: 'integer', example: 10 }
    end
  end
end