Commit cc6d4599 authored by Robert Schilling's avatar Robert Schilling

Add changelog, version information, frozen string literals

parent eed79986
---
title: 'API: Add support for group labels'
merge_request: 21368
author: Robert Schilling
type: added
# frozen_string_literal: true
module API module API
class GroupLabels < Grape::API class GroupLabels < Grape::API
include PaginationParams include PaginationParams
...@@ -9,6 +11,7 @@ module API ...@@ -9,6 +11,7 @@ module API
end end
resource :groups, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do resource :groups, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
desc 'Get all labels of the group' do desc 'Get all labels of the group' do
detail 'This feature was added in GitLab 11.3'
success Entities::Label success Entities::Label
end end
params do params do
...@@ -21,6 +24,7 @@ module API ...@@ -21,6 +24,7 @@ module API
end end
desc 'Create a new label' do desc 'Create a new label' do
detail 'This feature was added in GitLab 11.3'
success Entities::Label success Entities::Label
end end
params do params do
...@@ -44,6 +48,7 @@ module API ...@@ -44,6 +48,7 @@ module API
end end
desc 'Delete an existing label' do desc 'Delete an existing label' do
detail 'This feature was added in GitLab 11.3'
success Entities::Label success Entities::Label
end end
params do params do
...@@ -59,6 +64,7 @@ module API ...@@ -59,6 +64,7 @@ module API
end end
desc 'Update an existing label. At least one optional parameter is required.' do desc 'Update an existing label. At least one optional parameter is required.' do
detail 'This feature was added in GitLab 11.3'
success Entities::Label success Entities::Label
end end
params do params do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe API::GroupLabels do describe API::GroupLabels do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment