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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
446657c0
Commit
446657c0
authored
Dec 02, 2020
by
Marcin Sedlak-Jakubowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format ID as uppercase in API descriptions
parent
4527bca5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
ee/lib/api/epic_issues.rb
ee/lib/api/epic_issues.rb
+8
-8
ee/lib/api/epic_links.rb
ee/lib/api/epic_links.rb
+2
-2
lib/api/feature_flags_user_lists.rb
lib/api/feature_flags_user_lists.rb
+1
-1
lib/api/group_labels.rb
lib/api/group_labels.rb
+1
-1
lib/api/labels.rb
lib/api/labels.rb
+2
-2
lib/api/release/links.rb
lib/api/release/links.rb
+1
-1
No files found.
ee/lib/api/epic_issues.rb
View file @
446657c0
...
...
@@ -25,10 +25,10 @@ module API
desc
'Update epic issue association'
do
end
params
do
requires
:epic_iid
,
type:
Integer
,
desc:
'The
iid
of the epic'
requires
:epic_issue_id
,
type:
Integer
,
desc:
'The
id
of the epic issue association to update'
optional
:move_before_id
,
type:
Integer
,
desc:
'The
id
of the epic issue association that should be positioned before the actual issue'
optional
:move_after_id
,
type:
Integer
,
desc:
'The
id
of the epic issue association that should be positioned after the actual issue'
requires
:epic_iid
,
type:
Integer
,
desc:
'The
IID
of the epic'
requires
:epic_issue_id
,
type:
Integer
,
desc:
'The
ID
of the epic issue association to update'
optional
:move_before_id
,
type:
Integer
,
desc:
'The
ID
of the epic issue association that should be positioned before the actual issue'
optional
:move_after_id
,
type:
Integer
,
desc:
'The
ID
of the epic issue association that should be positioned after the actual issue'
end
put
':id/(-/)epics/:epic_iid/issues/:epic_issue_id'
do
authorize_can_admin_epic!
...
...
@@ -55,7 +55,7 @@ module API
success
EE
::
API
::
Entities
::
EpicIssue
end
params
do
requires
:epic_iid
,
type:
Integer
,
desc:
'The
iid
of the epic'
requires
:epic_iid
,
type:
Integer
,
desc:
'The
IID
of the epic'
end
[
':id/epics/:epic_iid/issues'
,
':id/-/epics/:epic_iid/issues'
].
each
do
|
path
|
get
path
do
...
...
@@ -71,7 +71,7 @@ module API
success
EE
::
API
::
Entities
::
EpicIssueLink
end
params
do
requires
:epic_iid
,
type:
Integer
,
desc:
'The
iid
of the epic'
requires
:epic_iid
,
type:
Integer
,
desc:
'The
IID
of the epic'
end
# rubocop: disable CodeReuse/ActiveRecord
post
':id/(-/)epics/:epic_iid/issues/:issue_id'
do
...
...
@@ -97,8 +97,8 @@ module API
success
EE
::
API
::
Entities
::
EpicIssueLink
end
params
do
requires
:epic_iid
,
type:
Integer
,
desc:
'The
iid
of the epic'
requires
:epic_issue_id
,
type:
Integer
,
desc:
'The
id
of the association'
requires
:epic_iid
,
type:
Integer
,
desc:
'The
IID
of the epic'
requires
:epic_issue_id
,
type:
Integer
,
desc:
'The
ID
of the association'
end
delete
':id/(-/)epics/:epic_iid/issues/:epic_issue_id'
do
authorize_can_admin_epic!
...
...
ee/lib/api/epic_links.rb
View file @
446657c0
...
...
@@ -109,8 +109,8 @@ module API
desc
'Reorder child epics'
params
do
use
:child_epic_id
optional
:move_before_id
,
type:
Integer
,
desc:
'The
id
of the epic that should be positioned before the child epic'
optional
:move_after_id
,
type:
Integer
,
desc:
'The
id
of the epic that should be positioned after the child epic'
optional
:move_before_id
,
type:
Integer
,
desc:
'The
ID
of the epic that should be positioned before the child epic'
optional
:move_after_id
,
type:
Integer
,
desc:
'The
ID
of the epic that should be positioned after the child epic'
end
put
':id/(-/)epics/:epic_iid/epics/:child_epic_id'
do
authorize_subepics_feature!
...
...
lib/api/feature_flags_user_lists.rb
View file @
446657c0
...
...
@@ -54,7 +54,7 @@ module API
end
params
do
requires
:iid
,
type:
String
,
desc:
'The internal
id
of the user list'
requires
:iid
,
type:
String
,
desc:
'The internal
ID
of the user list'
end
resource
'feature_flags_user_lists/:iid'
do
desc
'Get a single feature flag user list belonging to a project'
do
...
...
lib/api/group_labels.rb
View file @
446657c0
...
...
@@ -66,7 +66,7 @@ module API
success
Entities
::
GroupLabel
end
params
do
optional
:label_id
,
type:
Integer
,
desc:
'The
id
of the label to be updated'
optional
:label_id
,
type:
Integer
,
desc:
'The
ID
of the label to be updated'
optional
:name
,
type:
String
,
desc:
'The name of the label to be updated'
use
:group_label_update_params
exactly_one_of
:label_id
,
:name
...
...
lib/api/labels.rb
View file @
446657c0
...
...
@@ -57,7 +57,7 @@ module API
success
Entities
::
ProjectLabel
end
params
do
optional
:label_id
,
type:
Integer
,
desc:
'The
id
of the label to be updated'
optional
:label_id
,
type:
Integer
,
desc:
'The
ID
of the label to be updated'
optional
:name
,
type:
String
,
desc:
'The name of the label to be updated'
use
:project_label_update_params
exactly_one_of
:label_id
,
:name
...
...
@@ -71,7 +71,7 @@ module API
success
Entities
::
ProjectLabel
end
params
do
optional
:label_id
,
type:
Integer
,
desc:
'The
id
of the label to be deleted'
optional
:label_id
,
type:
Integer
,
desc:
'The
ID
of the label to be deleted'
optional
:name
,
type:
String
,
desc:
'The name of the label to be deleted'
exactly_one_of
:label_id
,
:name
end
...
...
lib/api/release/links.rb
View file @
446657c0
...
...
@@ -57,7 +57,7 @@ module API
end
params
do
requires
:link_id
,
type:
String
,
desc:
'The
id
of the link'
requires
:link_id
,
type:
String
,
desc:
'The
ID
of the link'
end
resource
'links/:link_id'
do
desc
'Get a link detail of a release'
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