This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
labels_api.yml
72 lines (68 loc) · 2.54 KB
/
labels_api.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##################################################################################
# Gitlab Labels API #
# See https://github.com/gitlabhq/gitlabhq/blob/v7.7.0/doc/api/labels.md #
##################################################################################
operations:
listLabels:
summary: Get all labels for a given project.
httpMethod: GET
uri: projects/{project_id}/labels
parameters:
project_id:
required: true
description: The ID of a project
type: string
location: uri
createLabel:
summary: Creates a new label for given repository with given name and color.
httpMethod: POST
uri: projects/{project_id}/labels
parameters:
project_id:
required: true
description: The ID of a project
type: string
location: uri
name:
required: true
description: The name of the label
type: string
location: postField
color:
required: true
description: Color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB)
type: string
location: postField
updateLabel:
extends: createLabel
summary: >
Updates an existing label with new name or now color.
Either the new name or new color is required to update the label.
httpMethod: PUT
uri: projects/{project_id}/labels
parameters:
new_name:
required: false
description: The new name of the label
type: string
location: postField
color:
required: false
description: New color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB)
type: string
location: postField
deleteLabel:
summary: Deletes a label given by its name.
httpMethod: DELETE
uri: projects/{project_id}/labels
parameters:
project_id:
required: true
description: The ID of a project
type: string
location: uri
name:
required: true
description: The name of the label
type: string
location: postField