Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
cc6d4599
Commit
cc6d4599
authored
Aug 26, 2018
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog, version information, frozen string literals
parent
eed79986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
changelogs/unreleased/api-group-labels.yml
changelogs/unreleased/api-group-labels.yml
+5
-0
lib/api/group_labels.rb
lib/api/group_labels.rb
+6
-0
spec/requests/api/group_labels_spec.rb
spec/requests/api/group_labels_spec.rb
+2
-0
No files found.
changelogs/unreleased/api-group-labels.yml
0 → 100644
View file @
cc6d4599
---
title
:
'
API:
Add
support
for
group
labels'
merge_request
:
21368
author
:
Robert Schilling
type
:
added
lib/api/group_labels.rb
View file @
cc6d4599
# 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
...
...
spec/requests/api/group_labels_spec.rb
View file @
cc6d4599
# frozen_string_literal: true
require
'spec_helper'
require
'spec_helper'
describe
API
::
GroupLabels
do
describe
API
::
GroupLabels
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment