@templmf/temp-solf-lmf 0.0.109 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package//347/224/237/344/272/247/347/216/257/345/242/203CK/346/211/251/345/256/271/346/255/245/351/252/244052701.docx +0 -0
- package/gitlab-foss-8-17-stable/doc/api/README.md +0 -391
- package/gitlab-foss-8-17-stable/doc/api/access_requests.md +0 -139
- package/gitlab-foss-8-17-stable/doc/api/award_emoji.md +0 -374
- package/gitlab-foss-8-17-stable/doc/api/boards.md +0 -241
- package/gitlab-foss-8-17-stable/doc/api/branches.md +0 -260
- package/gitlab-foss-8-17-stable/doc/api/broadcast_messages.md +0 -154
- package/gitlab-foss-8-17-stable/doc/api/build_triggers.md +0 -118
- package/gitlab-foss-8-17-stable/doc/api/build_variables.md +0 -128
- package/gitlab-foss-8-17-stable/doc/api/builds.md +0 -610
- package/gitlab-foss-8-17-stable/doc/api/ci/README.md +0 -24
- package/gitlab-foss-8-17-stable/doc/api/ci/builds.md +0 -147
- package/gitlab-foss-8-17-stable/doc/api/ci/lint.md +0 -49
- package/gitlab-foss-8-17-stable/doc/api/ci/runners.md +0 -59
- package/gitlab-foss-8-17-stable/doc/api/commits.md +0 -479
- package/gitlab-foss-8-17-stable/doc/api/deploy_key_multiple_projects.md +0 -29
- package/gitlab-foss-8-17-stable/doc/api/deploy_keys.md +0 -216
- package/gitlab-foss-8-17-stable/doc/api/deployments.md +0 -218
- package/gitlab-foss-8-17-stable/doc/api/enviroments.md +0 -121
- package/gitlab-foss-8-17-stable/doc/api/groups.md +0 -484
- package/gitlab-foss-8-17-stable/doc/api/issues.md +0 -856
- package/gitlab-foss-8-17-stable/doc/api/keys.md +0 -46
- package/gitlab-foss-8-17-stable/doc/api/labels.md +0 -257
- package/gitlab-foss-8-17-stable/doc/api/members.md +0 -175
- package/gitlab-foss-8-17-stable/doc/api/merge_requests.md +0 -1158
- package/gitlab-foss-8-17-stable/doc/api/milestones.md +0 -105
- package/gitlab-foss-8-17-stable/doc/api/namespaces.md +0 -70
- package/gitlab-foss-8-17-stable/doc/api/notes.md +0 -407
- package/gitlab-foss-8-17-stable/doc/api/notification_settings.md +0 -177
- package/gitlab-foss-8-17-stable/doc/api/oauth2.md +0 -137
- package/gitlab-foss-8-17-stable/doc/api/pipelines.md +0 -259
- package/gitlab-foss-8-17-stable/doc/api/project_snippets.md +0 -118
- package/gitlab-foss-8-17-stable/doc/api/projects.md +0 -1402
- package/gitlab-foss-8-17-stable/doc/api/repositories.md +0 -200
- package/gitlab-foss-8-17-stable/doc/api/repository_files.md +0 -134
- package/gitlab-foss-8-17-stable/doc/api/runners.md +0 -322
- package/gitlab-foss-8-17-stable/doc/api/services.md +0 -812
- package/gitlab-foss-8-17-stable/doc/api/session.md +0 -56
- package/gitlab-foss-8-17-stable/doc/api/settings.md +0 -126
- package/gitlab-foss-8-17-stable/doc/api/sidekiq_metrics.md +0 -152
- package/gitlab-foss-8-17-stable/doc/api/snippets.md +0 -232
- package/gitlab-foss-8-17-stable/doc/api/system_hooks.md +0 -146
- package/gitlab-foss-8-17-stable/doc/api/tags.md +0 -191
- package/gitlab-foss-8-17-stable/doc/api/templates/gitignores.md +0 -579
- package/gitlab-foss-8-17-stable/doc/api/templates/gitlab_ci_ymls.md +0 -120
- package/gitlab-foss-8-17-stable/doc/api/templates/licenses.md +0 -147
- package/gitlab-foss-8-17-stable/doc/api/todos.md +0 -296
- package/gitlab-foss-8-17-stable/doc/api/users.md +0 -835
- package/gitlab-foss-8-17-stable/doc/api/v3_to_v4.md +0 -14
- package/gitlab-foss-8-17-stable/doc/api/version.md +0 -23
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
# Milestones
|
|
2
|
-
|
|
3
|
-
## List project milestones
|
|
4
|
-
|
|
5
|
-
Returns a list of project milestones.
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
GET /projects/:id/milestones
|
|
9
|
-
GET /projects/:id/milestones?iid=42
|
|
10
|
-
GET /projects/:id/milestones?iid[]=42&iid[]=43
|
|
11
|
-
GET /projects/:id/milestones?state=active
|
|
12
|
-
GET /projects/:id/milestones?state=closed
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Parameters:
|
|
16
|
-
|
|
17
|
-
| Attribute | Type | Required | Description |
|
|
18
|
-
| --------- | ---- | -------- | ----------- |
|
|
19
|
-
| `id` | integer | yes | The ID of a project |
|
|
20
|
-
| `iid` | Array[integer] | optional | Return only the milestone having the given `iid` |
|
|
21
|
-
| `state` | string | optional | Return only `active` or `closed` milestones` |
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/milestones
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Example Response:
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
[
|
|
31
|
-
{
|
|
32
|
-
"id": 12,
|
|
33
|
-
"iid": 3,
|
|
34
|
-
"project_id": 16,
|
|
35
|
-
"title": "10.0",
|
|
36
|
-
"description": "Version",
|
|
37
|
-
"due_date": "2013-11-29",
|
|
38
|
-
"start_date": "2013-11-10",
|
|
39
|
-
"state": "active",
|
|
40
|
-
"updated_at": "2013-10-02T09:24:18Z",
|
|
41
|
-
"created_at": "2013-10-02T09:24:18Z"
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Get single milestone
|
|
48
|
-
|
|
49
|
-
Gets a single project milestone.
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
GET /projects/:id/milestones/:milestone_id
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Parameters:
|
|
56
|
-
|
|
57
|
-
- `id` (required) - The ID of a project
|
|
58
|
-
- `milestone_id` (required) - The ID of a project milestone
|
|
59
|
-
|
|
60
|
-
## Create new milestone
|
|
61
|
-
|
|
62
|
-
Creates a new project milestone.
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
POST /projects/:id/milestones
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Parameters:
|
|
69
|
-
|
|
70
|
-
- `id` (required) - The ID of a project
|
|
71
|
-
- `title` (required) - The title of an milestone
|
|
72
|
-
- `description` (optional) - The description of the milestone
|
|
73
|
-
- `due_date` (optional) - The due date of the milestone
|
|
74
|
-
- `start_date` (optional) - The start date of the milestone
|
|
75
|
-
|
|
76
|
-
## Edit milestone
|
|
77
|
-
|
|
78
|
-
Updates an existing project milestone.
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
PUT /projects/:id/milestones/:milestone_id
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Parameters:
|
|
85
|
-
|
|
86
|
-
- `id` (required) - The ID of a project
|
|
87
|
-
- `milestone_id` (required) - The ID of a project milestone
|
|
88
|
-
- `title` (optional) - The title of a milestone
|
|
89
|
-
- `description` (optional) - The description of a milestone
|
|
90
|
-
- `due_date` (optional) - The due date of the milestone
|
|
91
|
-
- `start_date` (optional) - The start date of the milestone
|
|
92
|
-
- `state_event` (optional) - The state event of the milestone (close|activate)
|
|
93
|
-
|
|
94
|
-
## Get all issues assigned to a single milestone
|
|
95
|
-
|
|
96
|
-
Gets all issues assigned to a single project milestone.
|
|
97
|
-
|
|
98
|
-
```
|
|
99
|
-
GET /projects/:id/milestones/:milestone_id/issues
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Parameters:
|
|
103
|
-
|
|
104
|
-
- `id` (required) - The ID of a project
|
|
105
|
-
- `milestone_id` (required) - The ID of a project milestone
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Namespaces
|
|
2
|
-
|
|
3
|
-
Usernames and groupnames fall under a special category called namespaces.
|
|
4
|
-
|
|
5
|
-
For users and groups supported API calls see the [users](users.md) and
|
|
6
|
-
[groups](groups.md) documentation respectively.
|
|
7
|
-
|
|
8
|
-
[Pagination](README.md#pagination) is used.
|
|
9
|
-
|
|
10
|
-
## List namespaces
|
|
11
|
-
|
|
12
|
-
Get a list of the namespaces of the authenticated user. If the user is an
|
|
13
|
-
administrator, a list of all namespaces in the GitLab instance is shown.
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
GET /namespaces
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Example request:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/namespaces
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Example response:
|
|
26
|
-
|
|
27
|
-
```json
|
|
28
|
-
[
|
|
29
|
-
{
|
|
30
|
-
"id": 1,
|
|
31
|
-
"path": "user1",
|
|
32
|
-
"kind": "user"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"id": 2,
|
|
36
|
-
"path": "group1",
|
|
37
|
-
"kind": "group"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Search for namespace
|
|
43
|
-
|
|
44
|
-
Get all namespaces that match a string in their name or path.
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
GET /namespaces?search=foobar
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
| Attribute | Type | Required | Description |
|
|
51
|
-
| --------- | ---- | -------- | ----------- |
|
|
52
|
-
| `search` | string | no | Returns a list of namespaces the user is authorized to see based on the search criteria |
|
|
53
|
-
|
|
54
|
-
Example request:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/namespaces?search=twitter
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Example response:
|
|
61
|
-
|
|
62
|
-
```json
|
|
63
|
-
[
|
|
64
|
-
{
|
|
65
|
-
"id": 4,
|
|
66
|
-
"path": "twitter",
|
|
67
|
-
"kind": "group"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
```
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
# Notes
|
|
2
|
-
|
|
3
|
-
Notes are comments on snippets, issues or merge requests.
|
|
4
|
-
|
|
5
|
-
## Issues
|
|
6
|
-
|
|
7
|
-
### List project issue notes
|
|
8
|
-
|
|
9
|
-
Gets a list of all notes for a single issue.
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
GET /projects/:id/issues/:issue_id/notes
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Parameters:
|
|
16
|
-
|
|
17
|
-
- `id` (required) - The ID of a project
|
|
18
|
-
- `issue_id` (required) - The ID of an issue
|
|
19
|
-
|
|
20
|
-
```json
|
|
21
|
-
[
|
|
22
|
-
{
|
|
23
|
-
"id": 302,
|
|
24
|
-
"body": "closed",
|
|
25
|
-
"attachment": null,
|
|
26
|
-
"author": {
|
|
27
|
-
"id": 1,
|
|
28
|
-
"username": "pipin",
|
|
29
|
-
"email": "admin@example.com",
|
|
30
|
-
"name": "Pip",
|
|
31
|
-
"state": "active",
|
|
32
|
-
"created_at": "2013-09-30T13:46:01Z"
|
|
33
|
-
},
|
|
34
|
-
"created_at": "2013-10-02T09:22:45Z",
|
|
35
|
-
"updated_at": "2013-10-02T10:22:45Z",
|
|
36
|
-
"system": true,
|
|
37
|
-
"upvote": false,
|
|
38
|
-
"downvote": false,
|
|
39
|
-
"noteable_id": 377,
|
|
40
|
-
"noteable_type": "Issue"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"id": 305,
|
|
44
|
-
"body": "Text of the comment\r\n",
|
|
45
|
-
"attachment": null,
|
|
46
|
-
"author": {
|
|
47
|
-
"id": 1,
|
|
48
|
-
"username": "pipin",
|
|
49
|
-
"email": "admin@example.com",
|
|
50
|
-
"name": "Pip",
|
|
51
|
-
"state": "active",
|
|
52
|
-
"created_at": "2013-09-30T13:46:01Z"
|
|
53
|
-
},
|
|
54
|
-
"created_at": "2013-10-02T09:56:03Z",
|
|
55
|
-
"updated_at": "2013-10-02T09:56:03Z",
|
|
56
|
-
"system": true,
|
|
57
|
-
"upvote": false,
|
|
58
|
-
"downvote": false,
|
|
59
|
-
"noteable_id": 121,
|
|
60
|
-
"noteable_type": "Issue"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Get single issue note
|
|
66
|
-
|
|
67
|
-
Returns a single note for a specific project issue
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
GET /projects/:id/issues/:issue_id/notes/:note_id
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Parameters:
|
|
74
|
-
|
|
75
|
-
- `id` (required) - The ID of a project
|
|
76
|
-
- `issue_id` (required) - The ID of a project issue
|
|
77
|
-
- `note_id` (required) - The ID of an issue note
|
|
78
|
-
|
|
79
|
-
### Create new issue note
|
|
80
|
-
|
|
81
|
-
Creates a new note to a single project issue. If you create a note where the body
|
|
82
|
-
only contains an Award Emoji, you'll receive this object back.
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
POST /projects/:id/issues/:issue_id/notes
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Parameters:
|
|
89
|
-
|
|
90
|
-
- `id` (required) - The ID of a project
|
|
91
|
-
- `issue_id` (required) - The ID of an issue
|
|
92
|
-
- `body` (required) - The content of a note
|
|
93
|
-
- `created_at` (optional) - Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z
|
|
94
|
-
|
|
95
|
-
### Modify existing issue note
|
|
96
|
-
|
|
97
|
-
Modify existing note of an issue.
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
PUT /projects/:id/issues/:issue_id/notes/:note_id
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Parameters:
|
|
104
|
-
|
|
105
|
-
- `id` (required) - The ID of a project
|
|
106
|
-
- `issue_id` (required) - The ID of an issue
|
|
107
|
-
- `note_id` (required) - The ID of a note
|
|
108
|
-
- `body` (required) - The content of a note
|
|
109
|
-
|
|
110
|
-
### Delete an issue note
|
|
111
|
-
|
|
112
|
-
Deletes an existing note of an issue.
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
DELETE /projects/:id/issues/:issue_id/notes/:note_id
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
Parameters:
|
|
119
|
-
|
|
120
|
-
| Attribute | Type | Required | Description |
|
|
121
|
-
| --------- | ---- | -------- | ----------- |
|
|
122
|
-
| `id` | integer | yes | The ID of a project |
|
|
123
|
-
| `issue_id` | integer | yes | The ID of an issue |
|
|
124
|
-
| `note_id` | integer | yes | The ID of a note |
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/issues/11/notes/636
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Example Response:
|
|
131
|
-
|
|
132
|
-
```json
|
|
133
|
-
{
|
|
134
|
-
"id": 636,
|
|
135
|
-
"body": "This is a good idea.",
|
|
136
|
-
"attachment": null,
|
|
137
|
-
"author": {
|
|
138
|
-
"id": 1,
|
|
139
|
-
"username": "pipin",
|
|
140
|
-
"email": "admin@example.com",
|
|
141
|
-
"name": "Pip",
|
|
142
|
-
"state": "active",
|
|
143
|
-
"created_at": "2013-09-30T13:46:01Z",
|
|
144
|
-
"avatar_url": "http://www.gravatar.com/avatar/5224fd70153710e92fb8bcf79ac29d67?s=80&d=identicon",
|
|
145
|
-
"web_url": "https://gitlab.example.com/pipin"
|
|
146
|
-
},
|
|
147
|
-
"created_at": "2016-04-05T22:10:44.164Z",
|
|
148
|
-
"system": false,
|
|
149
|
-
"noteable_id": 11,
|
|
150
|
-
"noteable_type": "Issue",
|
|
151
|
-
"upvote": false,
|
|
152
|
-
"downvote": false
|
|
153
|
-
}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
## Snippets
|
|
157
|
-
|
|
158
|
-
### List all snippet notes
|
|
159
|
-
|
|
160
|
-
Gets a list of all notes for a single snippet. Snippet notes are comments users can post to a snippet.
|
|
161
|
-
|
|
162
|
-
```
|
|
163
|
-
GET /projects/:id/snippets/:snippet_id/notes
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
Parameters:
|
|
167
|
-
|
|
168
|
-
- `id` (required) - The ID of a project
|
|
169
|
-
- `snippet_id` (required) - The ID of a project snippet
|
|
170
|
-
|
|
171
|
-
### Get single snippet note
|
|
172
|
-
|
|
173
|
-
Returns a single note for a given snippet.
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
GET /projects/:id/snippets/:snippet_id/notes/:note_id
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
Parameters:
|
|
180
|
-
|
|
181
|
-
- `id` (required) - The ID of a project
|
|
182
|
-
- `snippet_id` (required) - The ID of a project snippet
|
|
183
|
-
- `note_id` (required) - The ID of an snippet note
|
|
184
|
-
|
|
185
|
-
```json
|
|
186
|
-
{
|
|
187
|
-
"id": 52,
|
|
188
|
-
"title": "Snippet",
|
|
189
|
-
"file_name": "snippet.rb",
|
|
190
|
-
"author": {
|
|
191
|
-
"id": 1,
|
|
192
|
-
"username": "pipin",
|
|
193
|
-
"email": "admin@example.com",
|
|
194
|
-
"name": "Pip",
|
|
195
|
-
"state": "active",
|
|
196
|
-
"created_at": "2013-09-30T13:46:01Z"
|
|
197
|
-
},
|
|
198
|
-
"expires_at": null,
|
|
199
|
-
"updated_at": "2013-10-02T07:34:20Z",
|
|
200
|
-
"created_at": "2013-10-02T07:34:20Z"
|
|
201
|
-
}
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### Create new snippet note
|
|
205
|
-
|
|
206
|
-
Creates a new note for a single snippet. Snippet notes are comments users can post to a snippet.
|
|
207
|
-
If you create a note where the body only contains an Award Emoji, you'll receive this object back.
|
|
208
|
-
|
|
209
|
-
```
|
|
210
|
-
POST /projects/:id/snippets/:snippet_id/notes
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
Parameters:
|
|
214
|
-
|
|
215
|
-
- `id` (required) - The ID of a project
|
|
216
|
-
- `snippet_id` (required) - The ID of a snippet
|
|
217
|
-
- `body` (required) - The content of a note
|
|
218
|
-
|
|
219
|
-
### Modify existing snippet note
|
|
220
|
-
|
|
221
|
-
Modify existing note of a snippet.
|
|
222
|
-
|
|
223
|
-
```
|
|
224
|
-
PUT /projects/:id/snippets/:snippet_id/notes/:note_id
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
Parameters:
|
|
228
|
-
|
|
229
|
-
- `id` (required) - The ID of a project
|
|
230
|
-
- `snippet_id` (required) - The ID of a snippet
|
|
231
|
-
- `note_id` (required) - The ID of a note
|
|
232
|
-
- `body` (required) - The content of a note
|
|
233
|
-
|
|
234
|
-
### Delete a snippet note
|
|
235
|
-
|
|
236
|
-
Deletes an existing note of a snippet.
|
|
237
|
-
|
|
238
|
-
```
|
|
239
|
-
DELETE /projects/:id/snippets/:snippet_id/notes/:note_id
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
Parameters:
|
|
243
|
-
|
|
244
|
-
| Attribute | Type | Required | Description |
|
|
245
|
-
| --------- | ---- | -------- | ----------- |
|
|
246
|
-
| `id` | integer | yes | The ID of a project |
|
|
247
|
-
| `snippet_id` | integer | yes | The ID of a snippet |
|
|
248
|
-
| `note_id` | integer | yes | The ID of a note |
|
|
249
|
-
|
|
250
|
-
```bash
|
|
251
|
-
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/snippets/52/notes/1659
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
Example Response:
|
|
255
|
-
|
|
256
|
-
```json
|
|
257
|
-
{
|
|
258
|
-
"id": 1659,
|
|
259
|
-
"body": "This is a good idea.",
|
|
260
|
-
"attachment": null,
|
|
261
|
-
"author": {
|
|
262
|
-
"id": 1,
|
|
263
|
-
"username": "pipin",
|
|
264
|
-
"email": "admin@example.com",
|
|
265
|
-
"name": "Pip",
|
|
266
|
-
"state": "active",
|
|
267
|
-
"created_at": "2013-09-30T13:46:01Z",
|
|
268
|
-
"avatar_url": "http://www.gravatar.com/avatar/5224fd70153710e92fb8bcf79ac29d67?s=80&d=identicon",
|
|
269
|
-
"web_url": "https://gitlab.example.com/pipin"
|
|
270
|
-
},
|
|
271
|
-
"created_at": "2016-04-06T16:51:53.239Z",
|
|
272
|
-
"system": false,
|
|
273
|
-
"noteable_id": 52,
|
|
274
|
-
"noteable_type": "Snippet",
|
|
275
|
-
"upvote": false,
|
|
276
|
-
"downvote": false
|
|
277
|
-
}
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
## Merge Requests
|
|
281
|
-
|
|
282
|
-
### List all merge request notes
|
|
283
|
-
|
|
284
|
-
Gets a list of all notes for a single merge request.
|
|
285
|
-
|
|
286
|
-
```
|
|
287
|
-
GET /projects/:id/merge_requests/:merge_request_id/notes
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
Parameters:
|
|
291
|
-
|
|
292
|
-
- `id` (required) - The ID of a project
|
|
293
|
-
- `merge_request_id` (required) - The ID of a project merge request
|
|
294
|
-
|
|
295
|
-
### Get single merge request note
|
|
296
|
-
|
|
297
|
-
Returns a single note for a given merge request.
|
|
298
|
-
|
|
299
|
-
```
|
|
300
|
-
GET /projects/:id/merge_requests/:merge_request_id/notes/:note_id
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
Parameters:
|
|
304
|
-
|
|
305
|
-
- `id` (required) - The ID of a project
|
|
306
|
-
- `merge_request_id` (required) - The ID of a project merge request
|
|
307
|
-
- `note_id` (required) - The ID of a merge request note
|
|
308
|
-
|
|
309
|
-
```json
|
|
310
|
-
{
|
|
311
|
-
"id": 301,
|
|
312
|
-
"body": "Comment for MR",
|
|
313
|
-
"attachment": null,
|
|
314
|
-
"author": {
|
|
315
|
-
"id": 1,
|
|
316
|
-
"username": "pipin",
|
|
317
|
-
"email": "admin@example.com",
|
|
318
|
-
"name": "Pip",
|
|
319
|
-
"state": "active",
|
|
320
|
-
"created_at": "2013-09-30T13:46:01Z"
|
|
321
|
-
},
|
|
322
|
-
"created_at": "2013-10-02T08:57:14Z",
|
|
323
|
-
"updated_at": "2013-10-02T08:57:14Z",
|
|
324
|
-
"system": false,
|
|
325
|
-
"upvote": false,
|
|
326
|
-
"downvote": false,
|
|
327
|
-
"noteable_id": 2,
|
|
328
|
-
"noteable_type": "MergeRequest"
|
|
329
|
-
}
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
### Create new merge request note
|
|
333
|
-
|
|
334
|
-
Creates a new note for a single merge request.
|
|
335
|
-
If you create a note where the body only contains an Award Emoji, you'll receive
|
|
336
|
-
this object back.
|
|
337
|
-
|
|
338
|
-
```
|
|
339
|
-
POST /projects/:id/merge_requests/:merge_request_id/notes
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
Parameters:
|
|
343
|
-
|
|
344
|
-
- `id` (required) - The ID of a project
|
|
345
|
-
- `merge_request_id` (required) - The ID of a merge request
|
|
346
|
-
- `body` (required) - The content of a note
|
|
347
|
-
|
|
348
|
-
### Modify existing merge request note
|
|
349
|
-
|
|
350
|
-
Modify existing note of a merge request.
|
|
351
|
-
|
|
352
|
-
```
|
|
353
|
-
PUT /projects/:id/merge_requests/:merge_request_id/notes/:note_id
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
Parameters:
|
|
357
|
-
|
|
358
|
-
- `id` (required) - The ID of a project
|
|
359
|
-
- `merge_request_id` (required) - The ID of a merge request
|
|
360
|
-
- `note_id` (required) - The ID of a note
|
|
361
|
-
- `body` (required) - The content of a note
|
|
362
|
-
|
|
363
|
-
### Delete a merge request note
|
|
364
|
-
|
|
365
|
-
Deletes an existing note of a merge request.
|
|
366
|
-
|
|
367
|
-
```
|
|
368
|
-
DELETE /projects/:id/merge_requests/:merge_request_id/notes/:note_id
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
Parameters:
|
|
372
|
-
|
|
373
|
-
| Attribute | Type | Required | Description |
|
|
374
|
-
| --------- | ---- | -------- | ----------- |
|
|
375
|
-
| `id` | integer | yes | The ID of a project |
|
|
376
|
-
| `merge_request_id` | integer | yes | The ID of a merge request |
|
|
377
|
-
| `note_id` | integer | yes | The ID of a note |
|
|
378
|
-
|
|
379
|
-
```bash
|
|
380
|
-
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/merge_requests/7/notes/1602
|
|
381
|
-
```
|
|
382
|
-
|
|
383
|
-
Example Response:
|
|
384
|
-
|
|
385
|
-
```json
|
|
386
|
-
{
|
|
387
|
-
"id": 1602,
|
|
388
|
-
"body": "This is a good idea.",
|
|
389
|
-
"attachment": null,
|
|
390
|
-
"author": {
|
|
391
|
-
"id": 1,
|
|
392
|
-
"username": "pipin",
|
|
393
|
-
"email": "admin@example.com",
|
|
394
|
-
"name": "Pip",
|
|
395
|
-
"state": "active",
|
|
396
|
-
"created_at": "2013-09-30T13:46:01Z",
|
|
397
|
-
"avatar_url": "http://www.gravatar.com/avatar/5224fd70153710e92fb8bcf79ac29d67?s=80&d=identicon",
|
|
398
|
-
"web_url": "https://gitlab.example.com/pipin"
|
|
399
|
-
},
|
|
400
|
-
"created_at": "2016-04-05T22:11:59.923Z",
|
|
401
|
-
"system": false,
|
|
402
|
-
"noteable_id": 7,
|
|
403
|
-
"noteable_type": "MergeRequest",
|
|
404
|
-
"upvote": false,
|
|
405
|
-
"downvote": false
|
|
406
|
-
}
|
|
407
|
-
```
|