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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/badges.rb')
-rw-r--r--lib/api/badges.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/api/badges.rb b/lib/api/badges.rb
index 0a3f247ffd6..020ba53b9ee 100644
--- a/lib/api/badges.rb
+++ b/lib/api/badges.rb
@@ -28,6 +28,8 @@ module API
desc "Gets a list of #{source_type} badges viewable by the authenticated user." do
detail 'This feature was introduced in GitLab 10.6.'
success Entities::Badge
+ is_array true
+ tags %w[badges]
end
params do
use :pagination
@@ -46,6 +48,7 @@ module API
desc "Preview a badge from a #{source_type}." do
detail 'This feature was introduced in GitLab 10.6.'
success Entities::BasicBadgeDetails
+ tags %w[badges]
end
params do
requires :link_url, type: String, desc: 'URL of the badge link'
@@ -69,6 +72,7 @@ module API
desc "Gets a badge of a #{source_type}." do
detail 'This feature was introduced in GitLab 10.6.'
success Entities::Badge
+ tags %w[badges]
end
params do
requires :badge_id, type: Integer, desc: 'The badge ID'
@@ -86,6 +90,7 @@ module API
desc "Adds a badge to a #{source_type}." do
detail 'This feature was introduced in GitLab 10.6.'
success Entities::Badge
+ tags %w[badges]
end
params do
requires :link_url, type: String, desc: 'URL of the badge link'
@@ -107,6 +112,7 @@ module API
desc "Updates a badge of a #{source_type}." do
detail 'This feature was introduced in GitLab 10.6.'
success Entities::Badge
+ tags %w[badges]
end
params do
optional :link_url, type: String, desc: 'URL of the badge link'
@@ -127,8 +133,9 @@ module API
end
end
- desc 'Removes a badge from a project or group.' do
+ desc "Removes a badge from the #{source_type}." do
detail 'This feature was introduced in GitLab 10.6.'
+ tags %w[badges]
end
params do
requires :badge_id, type: Integer, desc: 'The badge ID'