@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.
Files changed (51) hide show
  1. package/package.json +1 -1
  2. 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
  3. package/gitlab-foss-8-17-stable/doc/api/README.md +0 -391
  4. package/gitlab-foss-8-17-stable/doc/api/access_requests.md +0 -139
  5. package/gitlab-foss-8-17-stable/doc/api/award_emoji.md +0 -374
  6. package/gitlab-foss-8-17-stable/doc/api/boards.md +0 -241
  7. package/gitlab-foss-8-17-stable/doc/api/branches.md +0 -260
  8. package/gitlab-foss-8-17-stable/doc/api/broadcast_messages.md +0 -154
  9. package/gitlab-foss-8-17-stable/doc/api/build_triggers.md +0 -118
  10. package/gitlab-foss-8-17-stable/doc/api/build_variables.md +0 -128
  11. package/gitlab-foss-8-17-stable/doc/api/builds.md +0 -610
  12. package/gitlab-foss-8-17-stable/doc/api/ci/README.md +0 -24
  13. package/gitlab-foss-8-17-stable/doc/api/ci/builds.md +0 -147
  14. package/gitlab-foss-8-17-stable/doc/api/ci/lint.md +0 -49
  15. package/gitlab-foss-8-17-stable/doc/api/ci/runners.md +0 -59
  16. package/gitlab-foss-8-17-stable/doc/api/commits.md +0 -479
  17. package/gitlab-foss-8-17-stable/doc/api/deploy_key_multiple_projects.md +0 -29
  18. package/gitlab-foss-8-17-stable/doc/api/deploy_keys.md +0 -216
  19. package/gitlab-foss-8-17-stable/doc/api/deployments.md +0 -218
  20. package/gitlab-foss-8-17-stable/doc/api/enviroments.md +0 -121
  21. package/gitlab-foss-8-17-stable/doc/api/groups.md +0 -484
  22. package/gitlab-foss-8-17-stable/doc/api/issues.md +0 -856
  23. package/gitlab-foss-8-17-stable/doc/api/keys.md +0 -46
  24. package/gitlab-foss-8-17-stable/doc/api/labels.md +0 -257
  25. package/gitlab-foss-8-17-stable/doc/api/members.md +0 -175
  26. package/gitlab-foss-8-17-stable/doc/api/merge_requests.md +0 -1158
  27. package/gitlab-foss-8-17-stable/doc/api/milestones.md +0 -105
  28. package/gitlab-foss-8-17-stable/doc/api/namespaces.md +0 -70
  29. package/gitlab-foss-8-17-stable/doc/api/notes.md +0 -407
  30. package/gitlab-foss-8-17-stable/doc/api/notification_settings.md +0 -177
  31. package/gitlab-foss-8-17-stable/doc/api/oauth2.md +0 -137
  32. package/gitlab-foss-8-17-stable/doc/api/pipelines.md +0 -259
  33. package/gitlab-foss-8-17-stable/doc/api/project_snippets.md +0 -118
  34. package/gitlab-foss-8-17-stable/doc/api/projects.md +0 -1402
  35. package/gitlab-foss-8-17-stable/doc/api/repositories.md +0 -200
  36. package/gitlab-foss-8-17-stable/doc/api/repository_files.md +0 -134
  37. package/gitlab-foss-8-17-stable/doc/api/runners.md +0 -322
  38. package/gitlab-foss-8-17-stable/doc/api/services.md +0 -812
  39. package/gitlab-foss-8-17-stable/doc/api/session.md +0 -56
  40. package/gitlab-foss-8-17-stable/doc/api/settings.md +0 -126
  41. package/gitlab-foss-8-17-stable/doc/api/sidekiq_metrics.md +0 -152
  42. package/gitlab-foss-8-17-stable/doc/api/snippets.md +0 -232
  43. package/gitlab-foss-8-17-stable/doc/api/system_hooks.md +0 -146
  44. package/gitlab-foss-8-17-stable/doc/api/tags.md +0 -191
  45. package/gitlab-foss-8-17-stable/doc/api/templates/gitignores.md +0 -579
  46. package/gitlab-foss-8-17-stable/doc/api/templates/gitlab_ci_ymls.md +0 -120
  47. package/gitlab-foss-8-17-stable/doc/api/templates/licenses.md +0 -147
  48. package/gitlab-foss-8-17-stable/doc/api/todos.md +0 -296
  49. package/gitlab-foss-8-17-stable/doc/api/users.md +0 -835
  50. package/gitlab-foss-8-17-stable/doc/api/v3_to_v4.md +0 -14
  51. package/gitlab-foss-8-17-stable/doc/api/version.md +0 -23
@@ -1,1402 +0,0 @@
1
- # Projects
2
-
3
-
4
- ### Project visibility level
5
-
6
- Project in GitLab has be either private, internal or public.
7
- You can determine it by `visibility_level` field in project.
8
-
9
- Constants for project visibility levels are next:
10
-
11
- * Private. `visibility_level` is `0`.
12
- Project access must be granted explicitly for each user.
13
-
14
- * Internal. `visibility_level` is `10`.
15
- The project can be cloned by any logged in user.
16
-
17
- * Public. `visibility_level` is `20`.
18
- The project can be cloned without any authentication.
19
-
20
-
21
- ## List projects
22
-
23
- Get a list of projects for which the authenticated user is a member.
24
-
25
- ```
26
- GET /projects
27
- ```
28
-
29
- Parameters:
30
-
31
- | Attribute | Type | Required | Description |
32
- | --------- | ---- | -------- | ----------- |
33
- | `archived` | boolean | no | Limit by archived status |
34
- | `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
35
- | `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, or `last_activity_at` fields. Default is `created_at` |
36
- | `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` |
37
- | `search` | string | no | Return list of authorized projects matching the search criteria |
38
- | `simple` | boolean | no | Return only the ID, URL, name, and path of each project |
39
-
40
- ```json
41
- [
42
- {
43
- "id": 4,
44
- "description": null,
45
- "default_branch": "master",
46
- "public": false,
47
- "visibility_level": 0,
48
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",
49
- "http_url_to_repo": "http://example.com/diaspora/diaspora-client.git",
50
- "web_url": "http://example.com/diaspora/diaspora-client",
51
- "tag_list": [
52
- "example",
53
- "disapora client"
54
- ],
55
- "owner": {
56
- "id": 3,
57
- "name": "Diaspora",
58
- "created_at": "2013-09-30T13:46:02Z"
59
- },
60
- "name": "Diaspora Client",
61
- "name_with_namespace": "Diaspora / Diaspora Client",
62
- "path": "diaspora-client",
63
- "path_with_namespace": "diaspora/diaspora-client",
64
- "issues_enabled": true,
65
- "open_issues_count": 1,
66
- "merge_requests_enabled": true,
67
- "builds_enabled": true,
68
- "wiki_enabled": true,
69
- "snippets_enabled": false,
70
- "container_registry_enabled": false,
71
- "created_at": "2013-09-30T13:46:02Z",
72
- "last_activity_at": "2013-09-30T13:46:02Z",
73
- "creator_id": 3,
74
- "namespace": {
75
- "created_at": "2013-09-30T13:46:02Z",
76
- "description": "",
77
- "id": 3,
78
- "name": "Diaspora",
79
- "owner_id": 1,
80
- "path": "diaspora",
81
- "updated_at": "2013-09-30T13:46:02Z"
82
- },
83
- "archived": false,
84
- "avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png",
85
- "shared_runners_enabled": true,
86
- "forks_count": 0,
87
- "star_count": 0,
88
- "runners_token": "b8547b1dc37721d05889db52fa2f02",
89
- "public_builds": true,
90
- "shared_with_groups": [],
91
- "only_allow_merge_if_build_succeeds": false,
92
- "only_allow_merge_if_all_discussions_are_resolved": false,
93
- "request_access_enabled": false
94
- },
95
- {
96
- "id": 6,
97
- "description": null,
98
- "default_branch": "master",
99
- "public": false,
100
- "visibility_level": 0,
101
- "ssh_url_to_repo": "git@example.com:brightbox/puppet.git",
102
- "http_url_to_repo": "http://example.com/brightbox/puppet.git",
103
- "web_url": "http://example.com/brightbox/puppet",
104
- "tag_list": [
105
- "example",
106
- "puppet"
107
- ],
108
- "owner": {
109
- "id": 4,
110
- "name": "Brightbox",
111
- "created_at": "2013-09-30T13:46:02Z"
112
- },
113
- "name": "Puppet",
114
- "name_with_namespace": "Brightbox / Puppet",
115
- "path": "puppet",
116
- "path_with_namespace": "brightbox/puppet",
117
- "issues_enabled": true,
118
- "open_issues_count": 1,
119
- "merge_requests_enabled": true,
120
- "builds_enabled": true,
121
- "wiki_enabled": true,
122
- "snippets_enabled": false,
123
- "container_registry_enabled": false,
124
- "created_at": "2013-09-30T13:46:02Z",
125
- "last_activity_at": "2013-09-30T13:46:02Z",
126
- "creator_id": 3,
127
- "namespace": {
128
- "created_at": "2013-09-30T13:46:02Z",
129
- "description": "",
130
- "id": 4,
131
- "name": "Brightbox",
132
- "owner_id": 1,
133
- "path": "brightbox",
134
- "updated_at": "2013-09-30T13:46:02Z"
135
- },
136
- "permissions": {
137
- "project_access": {
138
- "access_level": 10,
139
- "notification_level": 3
140
- },
141
- "group_access": {
142
- "access_level": 50,
143
- "notification_level": 3
144
- }
145
- },
146
- "archived": false,
147
- "avatar_url": null,
148
- "shared_runners_enabled": true,
149
- "forks_count": 0,
150
- "star_count": 0,
151
- "runners_token": "b8547b1dc37721d05889db52fa2f02",
152
- "public_builds": true,
153
- "shared_with_groups": [],
154
- "only_allow_merge_if_build_succeeds": false,
155
- "only_allow_merge_if_all_discussions_are_resolved": false,
156
- "request_access_enabled": false
157
- }
158
- ]
159
- ```
160
-
161
- Get a list of projects which the authenticated user can see.
162
-
163
- ```
164
- GET /projects/visible
165
- ```
166
-
167
- Parameters:
168
-
169
- | Attribute | Type | Required | Description |
170
- | --------- | ---- | -------- | ----------- |
171
- | `archived` | boolean | no | Limit by archived status |
172
- | `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
173
- | `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, or `last_activity_at` fields. Default is `created_at` |
174
- | `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` |
175
- | `search` | string | no | Return list of authorized projects matching the search criteria |
176
- | `simple` | boolean | no | Return only the ID, URL, name, and path of each project |
177
-
178
- ```json
179
- [
180
- {
181
- "id": 4,
182
- "description": null,
183
- "default_branch": "master",
184
- "public": false,
185
- "visibility_level": 0,
186
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",
187
- "http_url_to_repo": "http://example.com/diaspora/diaspora-client.git",
188
- "web_url": "http://example.com/diaspora/diaspora-client",
189
- "tag_list": [
190
- "example",
191
- "disapora client"
192
- ],
193
- "owner": {
194
- "id": 3,
195
- "name": "Diaspora",
196
- "created_at": "2013-09-30T13:46:02Z"
197
- },
198
- "name": "Diaspora Client",
199
- "name_with_namespace": "Diaspora / Diaspora Client",
200
- "path": "diaspora-client",
201
- "path_with_namespace": "diaspora/diaspora-client",
202
- "issues_enabled": true,
203
- "open_issues_count": 1,
204
- "merge_requests_enabled": true,
205
- "builds_enabled": true,
206
- "wiki_enabled": true,
207
- "snippets_enabled": false,
208
- "container_registry_enabled": false,
209
- "created_at": "2013-09-30T13:46:02Z",
210
- "last_activity_at": "2013-09-30T13:46:02Z",
211
- "creator_id": 3,
212
- "namespace": {
213
- "created_at": "2013-09-30T13:46:02Z",
214
- "description": "",
215
- "id": 3,
216
- "name": "Diaspora",
217
- "owner_id": 1,
218
- "path": "diaspora",
219
- "updated_at": "2013-09-30T13:46:02Z"
220
- },
221
- "archived": false,
222
- "avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png",
223
- "shared_runners_enabled": true,
224
- "forks_count": 0,
225
- "star_count": 0,
226
- "runners_token": "b8547b1dc37721d05889db52fa2f02",
227
- "public_builds": true,
228
- "shared_with_groups": []
229
- },
230
- {
231
- "id": 6,
232
- "description": null,
233
- "default_branch": "master",
234
- "public": false,
235
- "visibility_level": 0,
236
- "ssh_url_to_repo": "git@example.com:brightbox/puppet.git",
237
- "http_url_to_repo": "http://example.com/brightbox/puppet.git",
238
- "web_url": "http://example.com/brightbox/puppet",
239
- "tag_list": [
240
- "example",
241
- "puppet"
242
- ],
243
- "owner": {
244
- "id": 4,
245
- "name": "Brightbox",
246
- "created_at": "2013-09-30T13:46:02Z"
247
- },
248
- "name": "Puppet",
249
- "name_with_namespace": "Brightbox / Puppet",
250
- "path": "puppet",
251
- "path_with_namespace": "brightbox/puppet",
252
- "issues_enabled": true,
253
- "open_issues_count": 1,
254
- "merge_requests_enabled": true,
255
- "builds_enabled": true,
256
- "wiki_enabled": true,
257
- "snippets_enabled": false,
258
- "container_registry_enabled": false,
259
- "created_at": "2013-09-30T13:46:02Z",
260
- "last_activity_at": "2013-09-30T13:46:02Z",
261
- "creator_id": 3,
262
- "namespace": {
263
- "created_at": "2013-09-30T13:46:02Z",
264
- "description": "",
265
- "id": 4,
266
- "name": "Brightbox",
267
- "owner_id": 1,
268
- "path": "brightbox",
269
- "updated_at": "2013-09-30T13:46:02Z"
270
- },
271
- "permissions": {
272
- "project_access": {
273
- "access_level": 10,
274
- "notification_level": 3
275
- },
276
- "group_access": {
277
- "access_level": 50,
278
- "notification_level": 3
279
- }
280
- },
281
- "archived": false,
282
- "avatar_url": null,
283
- "shared_runners_enabled": true,
284
- "forks_count": 0,
285
- "star_count": 0,
286
- "runners_token": "b8547b1dc37721d05889db52fa2f02",
287
- "public_builds": true,
288
- "shared_with_groups": []
289
- }
290
- ]
291
- ```
292
-
293
- ### List owned projects
294
-
295
- Get a list of projects which are owned by the authenticated user.
296
-
297
- ```
298
- GET /projects/owned
299
- ```
300
-
301
- Parameters:
302
-
303
- | Attribute | Type | Required | Description |
304
- | --------- | ---- | -------- | ----------- |
305
- | `archived` | boolean | no | Limit by archived status |
306
- | `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
307
- | `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, or `last_activity_at` fields. Default is `created_at` |
308
- | `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` |
309
- | `search` | string | no | Return list of authorized projects matching the search criteria |
310
- | `simple` | boolean | no | Return only the ID, URL, name, and path of each project |
311
- | `statistics` | boolean | no | Include project statistics |
312
-
313
- ### List starred projects
314
-
315
- Get a list of projects which are starred by the authenticated user.
316
-
317
- ```
318
- GET /projects/starred
319
- ```
320
-
321
- Parameters:
322
-
323
- | Attribute | Type | Required | Description |
324
- | --------- | ---- | -------- | ----------- |
325
- | `archived` | boolean | no | Limit by archived status |
326
- | `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
327
- | `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, or `last_activity_at` fields. Default is `created_at` |
328
- | `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` |
329
- | `search` | string | no | Return list of authorized projects matching the search criteria |
330
- | `simple` | boolean | no | Return only the ID, URL, name, and path of each project |
331
-
332
- ### List ALL projects
333
-
334
- Get a list of all GitLab projects (admin only).
335
-
336
- ```
337
- GET /projects/all
338
- ```
339
-
340
- Parameters:
341
-
342
- | Attribute | Type | Required | Description |
343
- | --------- | ---- | -------- | ----------- |
344
- | `archived` | boolean | no | Limit by archived status |
345
- | `visibility` | string | no | Limit by visibility `public`, `internal`, or `private` |
346
- | `order_by` | string | no | Return projects ordered by `id`, `name`, `path`, `created_at`, `updated_at`, or `last_activity_at` fields. Default is `created_at` |
347
- | `sort` | string | no | Return projects sorted in `asc` or `desc` order. Default is `desc` |
348
- | `search` | string | no | Return list of authorized projects matching the search criteria |
349
- | `statistics` | boolean | no | Include project statistics |
350
-
351
- ### Get single project
352
-
353
- Get a specific project, identified by project ID or NAMESPACE/PROJECT_NAME, which is owned by the authenticated user.
354
- If using namespaced projects call make sure that the NAMESPACE/PROJECT_NAME is URL-encoded, eg. `/api/v3/projects/diaspora%2Fdiaspora` (where `/` is represented by `%2F`). This endpoint can be accessed without authentication if
355
- the project is publicly accessible.
356
-
357
- ```
358
- GET /projects/:id
359
- ```
360
-
361
- Parameters:
362
-
363
- | Attribute | Type | Required | Description |
364
- | --------- | ---- | -------- | ----------- |
365
- | `id` | integer/string | yes | The ID or NAMESPACE/PROJECT_NAME of the project |
366
-
367
- ```json
368
- {
369
- "id": 3,
370
- "description": null,
371
- "default_branch": "master",
372
- "public": false,
373
- "visibility_level": 0,
374
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
375
- "http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
376
- "web_url": "http://example.com/diaspora/diaspora-project-site",
377
- "tag_list": [
378
- "example",
379
- "disapora project"
380
- ],
381
- "owner": {
382
- "id": 3,
383
- "name": "Diaspora",
384
- "created_at": "2013-09-30T13:46:02Z"
385
- },
386
- "name": "Diaspora Project Site",
387
- "name_with_namespace": "Diaspora / Diaspora Project Site",
388
- "path": "diaspora-project-site",
389
- "path_with_namespace": "diaspora/diaspora-project-site",
390
- "issues_enabled": true,
391
- "open_issues_count": 1,
392
- "merge_requests_enabled": true,
393
- "builds_enabled": true,
394
- "wiki_enabled": true,
395
- "snippets_enabled": false,
396
- "container_registry_enabled": false,
397
- "created_at": "2013-09-30T13:46:02Z",
398
- "last_activity_at": "2013-09-30T13:46:02Z",
399
- "creator_id": 3,
400
- "namespace": {
401
- "created_at": "2013-09-30T13:46:02Z",
402
- "description": "",
403
- "id": 3,
404
- "name": "Diaspora",
405
- "owner_id": 1,
406
- "path": "diaspora",
407
- "updated_at": "2013-09-30T13:46:02Z"
408
- },
409
- "permissions": {
410
- "project_access": {
411
- "access_level": 10,
412
- "notification_level": 3
413
- },
414
- "group_access": {
415
- "access_level": 50,
416
- "notification_level": 3
417
- }
418
- },
419
- "archived": false,
420
- "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
421
- "shared_runners_enabled": true,
422
- "forks_count": 0,
423
- "star_count": 0,
424
- "runners_token": "b8bc4a7a29eb76ea83cf79e4908c2b",
425
- "public_builds": true,
426
- "shared_with_groups": [
427
- {
428
- "group_id": 4,
429
- "group_name": "Twitter",
430
- "group_access_level": 30
431
- },
432
- {
433
- "group_id": 3,
434
- "group_name": "Gitlab Org",
435
- "group_access_level": 10
436
- }
437
- ],
438
- "only_allow_merge_if_build_succeeds": false,
439
- "only_allow_merge_if_all_discussions_are_resolved": false,
440
- "request_access_enabled": false
441
- }
442
- ```
443
-
444
- ## Get project users
445
-
446
- Get the users list of a project.
447
-
448
-
449
- Parameters:
450
-
451
- | Attribute | Type | Required | Description |
452
- | --------- | ---- | -------- | ----------- |
453
- | `search` | string | no | Search for specific users |
454
-
455
- ```
456
- GET /projects/:id/users
457
- ```
458
-
459
- ```json
460
- [
461
- {
462
- "id": 1,
463
- "username": "john_smith",
464
- "name": "John Smith",
465
- "state": "active",
466
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
467
- "web_url": "http://localhost:3000/john_smith"
468
- },
469
- {
470
- "id": 2,
471
- "username": "jack_smith",
472
- "name": "Jack Smith",
473
- "state": "blocked",
474
- "avatar_url": "http://gravatar.com/../e32131cd8.jpeg",
475
- "web_url": "http://localhost:3000/jack_smith"
476
- }
477
- ]
478
- ```
479
-
480
- ### Get project events
481
-
482
- Get the events for the specified project sorted from newest to oldest. This
483
- endpoint can be accessed without authentication if the project is publicly
484
- accessible.
485
-
486
- ```
487
- GET /projects/:id/events
488
- ```
489
-
490
- Parameters:
491
-
492
- | Attribute | Type | Required | Description |
493
- | --------- | ---- | -------- | ----------- |
494
- | `id` | integer/string | yes | The ID or NAMESPACE/PROJECT_NAME of the project |
495
-
496
- ```json
497
- [
498
- {
499
- "title": null,
500
- "project_id": 15,
501
- "action_name": "closed",
502
- "target_id": 830,
503
- "target_type": "Issue",
504
- "author_id": 1,
505
- "data": null,
506
- "target_title": "Public project search field",
507
- "author": {
508
- "name": "Dmitriy Zaporozhets",
509
- "username": "root",
510
- "id": 1,
511
- "state": "active",
512
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
513
- "web_url": "http://localhost:3000/root"
514
- },
515
- "author_username": "root"
516
- },
517
- {
518
- "title": null,
519
- "project_id": 15,
520
- "action_name": "opened",
521
- "target_id": null,
522
- "target_type": null,
523
- "author_id": 1,
524
- "author": {
525
- "name": "Dmitriy Zaporozhets",
526
- "username": "root",
527
- "id": 1,
528
- "state": "active",
529
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
530
- "web_url": "http://localhost:3000/root"
531
- },
532
- "author_username": "john",
533
- "data": {
534
- "before": "50d4420237a9de7be1304607147aec22e4a14af7",
535
- "after": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
536
- "ref": "refs/heads/master",
537
- "user_id": 1,
538
- "user_name": "Dmitriy Zaporozhets",
539
- "repository": {
540
- "name": "gitlabhq",
541
- "url": "git@dev.gitlab.org:gitlab/gitlabhq.git",
542
- "description": "GitLab: self hosted Git management software. \r\nDistributed under the MIT License.",
543
- "homepage": "https://dev.gitlab.org/gitlab/gitlabhq"
544
- },
545
- "commits": [
546
- {
547
- "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
548
- "message": "Add simple search to projects in public area",
549
- "timestamp": "2013-05-13T18:18:08+00:00",
550
- "url": "https://dev.gitlab.org/gitlab/gitlabhq/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428",
551
- "author": {
552
- "name": "Dmitriy Zaporozhets",
553
- "email": "dmitriy.zaporozhets@gmail.com"
554
- }
555
- }
556
- ],
557
- "total_commits_count": 1
558
- },
559
- "target_title": null
560
- },
561
- {
562
- "title": null,
563
- "project_id": 15,
564
- "action_name": "closed",
565
- "target_id": 840,
566
- "target_type": "Issue",
567
- "author_id": 1,
568
- "data": null,
569
- "target_title": "Finish & merge Code search PR",
570
- "author": {
571
- "name": "Dmitriy Zaporozhets",
572
- "username": "root",
573
- "id": 1,
574
- "state": "active",
575
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
576
- "web_url": "http://localhost:3000/root"
577
- },
578
- "author_username": "root"
579
- },
580
- {
581
- "title": null,
582
- "project_id": 15,
583
- "action_name": "commented on",
584
- "target_id": 1312,
585
- "target_type": "Note",
586
- "author_id": 1,
587
- "data": null,
588
- "target_title": null,
589
- "created_at": "2015-12-04T10:33:58.089Z",
590
- "note": {
591
- "id": 1312,
592
- "body": "What an awesome day!",
593
- "attachment": null,
594
- "author": {
595
- "name": "Dmitriy Zaporozhets",
596
- "username": "root",
597
- "id": 1,
598
- "state": "active",
599
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
600
- "web_url": "http://localhost:3000/root"
601
- },
602
- "created_at": "2015-12-04T10:33:56.698Z",
603
- "system": false,
604
- "upvote": false,
605
- "downvote": false,
606
- "noteable_id": 377,
607
- "noteable_type": "Issue"
608
- },
609
- "author": {
610
- "name": "Dmitriy Zaporozhets",
611
- "username": "root",
612
- "id": 1,
613
- "state": "active",
614
- "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
615
- "web_url": "http://localhost:3000/root"
616
- },
617
- "author_username": "root"
618
- }
619
- ]
620
- ```
621
-
622
- ### Create project
623
-
624
- Creates a new project owned by the authenticated user.
625
-
626
- ```
627
- POST /projects
628
- ```
629
-
630
- Parameters:
631
-
632
- | Attribute | Type | Required | Description |
633
- | --------- | ---- | -------- | ----------- |
634
- | `name` | string | yes | The name of the new project |
635
- | `path` | string | no | Custom repository name for new project. By default generated based on name |
636
- | `namespace_id` | integer | no | Namespace for the new project (defaults to the current user's namespace) |
637
- | `description` | string | no | Short project description |
638
- | `issues_enabled` | boolean | no | Enable issues for this project |
639
- | `merge_requests_enabled` | boolean | no | Enable merge requests for this project |
640
- | `builds_enabled` | boolean | no | Enable builds for this project |
641
- | `wiki_enabled` | boolean | no | Enable wiki for this project |
642
- | `snippets_enabled` | boolean | no | Enable snippets for this project |
643
- | `container_registry_enabled` | boolean | no | Enable container registry for this project |
644
- | `shared_runners_enabled` | boolean | no | Enable shared runners for this project |
645
- | `public` | boolean | no | If `true`, the same as setting `visibility_level` to 20 |
646
- | `visibility_level` | integer | no | See [project visibility level](#project-visibility-level) |
647
- | `import_url` | string | no | URL to import repository from |
648
- | `public_builds` | boolean | no | If `true`, builds can be viewed by non-project-members |
649
- | `only_allow_merge_if_build_succeeds` | boolean | no | Set whether merge requests can only be merged with successful builds |
650
- | `only_allow_merge_if_all_discussions_are_resolved` | boolean | no | Set whether merge requests can only be merged when all the discussions are resolved |
651
- | `lfs_enabled` | boolean | no | Enable LFS |
652
- | `request_access_enabled` | boolean | no | Allow users to request member access |
653
-
654
- ### Create project for user
655
-
656
- Creates a new project owned by the specified user. Available only for admins.
657
-
658
- ```
659
- POST /projects/user/:user_id
660
- ```
661
-
662
- Parameters:
663
-
664
- | Attribute | Type | Required | Description |
665
- | --------- | ---- | -------- | ----------- |
666
- | `user_id` | integer | yes | The user ID of the project owner |
667
- | `name` | string | yes | The name of the new project |
668
- | `path` | string | no | Custom repository name for new project. By default generated based on name |
669
- | `default_branch` | string | no | `master` by default |
670
- | `namespace_id` | integer | no | Namespace for the new project (defaults to the current user's namespace) |
671
- | `description` | string | no | Short project description |
672
- | `issues_enabled` | boolean | no | Enable issues for this project |
673
- | `merge_requests_enabled` | boolean | no | Enable merge requests for this project |
674
- | `builds_enabled` | boolean | no | Enable builds for this project |
675
- | `wiki_enabled` | boolean | no | Enable wiki for this project |
676
- | `snippets_enabled` | boolean | no | Enable snippets for this project |
677
- | `container_registry_enabled` | boolean | no | Enable container registry for this project |
678
- | `shared_runners_enabled` | boolean | no | Enable shared runners for this project |
679
- | `public` | boolean | no | If `true`, the same as setting `visibility_level` to 20 |
680
- | `visibility_level` | integer | no | See [project visibility level](#project-visibility-level) |
681
- | `import_url` | string | no | URL to import repository from |
682
- | `public_builds` | boolean | no | If `true`, builds can be viewed by non-project-members |
683
- | `only_allow_merge_if_build_succeeds` | boolean | no | Set whether merge requests can only be merged with successful builds |
684
- | `only_allow_merge_if_all_discussions_are_resolved` | boolean | no | Set whether merge requests can only be merged when all the discussions are resolved |
685
- | `lfs_enabled` | boolean | no | Enable LFS |
686
- | `request_access_enabled` | boolean | no | Allow users to request member access |
687
-
688
- ### Edit project
689
-
690
- Updates an existing project.
691
-
692
- ```
693
- PUT /projects/:id
694
- ```
695
-
696
- Parameters:
697
-
698
- | Attribute | Type | Required | Description |
699
- | --------- | ---- | -------- | ----------- |
700
- | `id` | integer/string | yes | The ID or NAMESPACE/PROJECT_NAME of the project |
701
- | `name` | string | yes | The name of the project |
702
- | `path` | string | no | Custom repository name for the project. By default generated based on name |
703
- | `default_branch` | string | no | `master` by default |
704
- | `description` | string | no | Short project description |
705
- | `issues_enabled` | boolean | no | Enable issues for this project |
706
- | `merge_requests_enabled` | boolean | no | Enable merge requests for this project |
707
- | `builds_enabled` | boolean | no | Enable builds for this project |
708
- | `wiki_enabled` | boolean | no | Enable wiki for this project |
709
- | `snippets_enabled` | boolean | no | Enable snippets for this project |
710
- | `container_registry_enabled` | boolean | no | Enable container registry for this project |
711
- | `shared_runners_enabled` | boolean | no | Enable shared runners for this project |
712
- | `public` | boolean | no | If `true`, the same as setting `visibility_level` to 20 |
713
- | `visibility_level` | integer | no | See [project visibility level](#project-visibility-level) |
714
- | `import_url` | string | no | URL to import repository from |
715
- | `public_builds` | boolean | no | If `true`, builds can be viewed by non-project-members |
716
- | `only_allow_merge_if_build_succeeds` | boolean | no | Set whether merge requests can only be merged with successful builds |
717
- | `only_allow_merge_if_all_discussions_are_resolved` | boolean | no | Set whether merge requests can only be merged when all the discussions are resolved |
718
- | `lfs_enabled` | boolean | no | Enable LFS |
719
- | `request_access_enabled` | boolean | no | Allow users to request member access |
720
-
721
- ### Fork project
722
-
723
- Forks a project into the user namespace of the authenticated user or the one provided.
724
-
725
- ```
726
- POST /projects/fork/:id
727
- ```
728
-
729
- Parameters:
730
-
731
- | Attribute | Type | Required | Description |
732
- | --------- | ---- | -------- | ----------- |
733
- | `id` | integer/string | yes | The ID or NAMESPACE/PROJECT_NAME of the project |
734
- | `namespace` | integer/string | yes | The ID or path of the namespace that the project will be forked to |
735
-
736
- ### Star a project
737
-
738
- Stars a given project. Returns status code `304` if the project is already starred.
739
-
740
- ```
741
- POST /projects/:id/star
742
- ```
743
-
744
- Parameters:
745
-
746
- | Attribute | Type | Required | Description |
747
- | --------- | ---- | -------- | ----------- |
748
- | `id` | integer/string | yes | The ID or NAMESPACE/PROJECT_NAME of the project |
749
-
750
- ```bash
751
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/star"
752
- ```
753
-
754
- Example response:
755
-
756
- ```json
757
- {
758
- "id": 3,
759
- "description": null,
760
- "default_branch": "master",
761
- "public": false,
762
- "visibility_level": 10,
763
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
764
- "http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
765
- "web_url": "http://example.com/diaspora/diaspora-project-site",
766
- "tag_list": [
767
- "example",
768
- "disapora project"
769
- ],
770
- "name": "Diaspora Project Site",
771
- "name_with_namespace": "Diaspora / Diaspora Project Site",
772
- "path": "diaspora-project-site",
773
- "path_with_namespace": "diaspora/diaspora-project-site",
774
- "issues_enabled": true,
775
- "open_issues_count": 1,
776
- "merge_requests_enabled": true,
777
- "builds_enabled": true,
778
- "wiki_enabled": true,
779
- "snippets_enabled": false,
780
- "container_registry_enabled": false,
781
- "created_at": "2013-09-30T13:46:02Z",
782
- "last_activity_at": "2013-09-30T13:46:02Z",
783
- "creator_id": 3,
784
- "namespace": {
785
- "created_at": "2013-09-30T13:46:02Z",
786
- "description": "",
787
- "id": 3,
788
- "name": "Diaspora",
789
- "owner_id": 1,
790
- "path": "diaspora",
791
- "updated_at": "2013-09-30T13:46:02Z"
792
- },
793
- "archived": true,
794
- "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
795
- "shared_runners_enabled": true,
796
- "forks_count": 0,
797
- "star_count": 1,
798
- "public_builds": true,
799
- "shared_with_groups": [],
800
- "only_allow_merge_if_build_succeeds": false,
801
- "only_allow_merge_if_all_discussions_are_resolved": false,
802
- "request_access_enabled": false
803
- }
804
- ```
805
-
806
- ### Unstar a project
807
-
808
- Unstars a given project. Returns status code `304` if the project is not starred.
809
-
810
- ```
811
- DELETE /projects/:id/star
812
- ```
813
-
814
- | Attribute | Type | Required | Description |
815
- | --------- | ---- | -------- | ----------- |
816
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
817
-
818
- ```bash
819
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/star"
820
- ```
821
-
822
- Example response:
823
-
824
- ```json
825
- {
826
- "id": 3,
827
- "description": null,
828
- "default_branch": "master",
829
- "public": false,
830
- "visibility_level": 10,
831
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
832
- "http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
833
- "web_url": "http://example.com/diaspora/diaspora-project-site",
834
- "tag_list": [
835
- "example",
836
- "disapora project"
837
- ],
838
- "name": "Diaspora Project Site",
839
- "name_with_namespace": "Diaspora / Diaspora Project Site",
840
- "path": "diaspora-project-site",
841
- "path_with_namespace": "diaspora/diaspora-project-site",
842
- "issues_enabled": true,
843
- "open_issues_count": 1,
844
- "merge_requests_enabled": true,
845
- "builds_enabled": true,
846
- "wiki_enabled": true,
847
- "snippets_enabled": false,
848
- "container_registry_enabled": false,
849
- "created_at": "2013-09-30T13:46:02Z",
850
- "last_activity_at": "2013-09-30T13:46:02Z",
851
- "creator_id": 3,
852
- "namespace": {
853
- "created_at": "2013-09-30T13:46:02Z",
854
- "description": "",
855
- "id": 3,
856
- "name": "Diaspora",
857
- "owner_id": 1,
858
- "path": "diaspora",
859
- "updated_at": "2013-09-30T13:46:02Z"
860
- },
861
- "archived": true,
862
- "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
863
- "shared_runners_enabled": true,
864
- "forks_count": 0,
865
- "star_count": 0,
866
- "public_builds": true,
867
- "shared_with_groups": [],
868
- "only_allow_merge_if_build_succeeds": false,
869
- "only_allow_merge_if_all_discussions_are_resolved": false,
870
- "request_access_enabled": false
871
- }
872
- ```
873
-
874
- ### Archive a project
875
-
876
- Archives the project if the user is either admin or the project owner of this project. This action is
877
- idempotent, thus archiving an already archived project will not change the project.
878
-
879
- ```
880
- POST /projects/:id/archive
881
- ```
882
-
883
- | Attribute | Type | Required | Description |
884
- | --------- | ---- | -------- | ----------- |
885
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
886
-
887
- ```bash
888
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/archive"
889
- ```
890
-
891
- Example response:
892
-
893
- ```json
894
- {
895
- "id": 3,
896
- "description": null,
897
- "default_branch": "master",
898
- "public": false,
899
- "visibility_level": 0,
900
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
901
- "http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
902
- "web_url": "http://example.com/diaspora/diaspora-project-site",
903
- "tag_list": [
904
- "example",
905
- "disapora project"
906
- ],
907
- "owner": {
908
- "id": 3,
909
- "name": "Diaspora",
910
- "created_at": "2013-09-30T13:46:02Z"
911
- },
912
- "name": "Diaspora Project Site",
913
- "name_with_namespace": "Diaspora / Diaspora Project Site",
914
- "path": "diaspora-project-site",
915
- "path_with_namespace": "diaspora/diaspora-project-site",
916
- "issues_enabled": true,
917
- "open_issues_count": 1,
918
- "merge_requests_enabled": true,
919
- "builds_enabled": true,
920
- "wiki_enabled": true,
921
- "snippets_enabled": false,
922
- "container_registry_enabled": false,
923
- "created_at": "2013-09-30T13:46:02Z",
924
- "last_activity_at": "2013-09-30T13:46:02Z",
925
- "creator_id": 3,
926
- "namespace": {
927
- "created_at": "2013-09-30T13:46:02Z",
928
- "description": "",
929
- "id": 3,
930
- "name": "Diaspora",
931
- "owner_id": 1,
932
- "path": "diaspora",
933
- "updated_at": "2013-09-30T13:46:02Z"
934
- },
935
- "permissions": {
936
- "project_access": {
937
- "access_level": 10,
938
- "notification_level": 3
939
- },
940
- "group_access": {
941
- "access_level": 50,
942
- "notification_level": 3
943
- }
944
- },
945
- "archived": true,
946
- "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
947
- "shared_runners_enabled": true,
948
- "forks_count": 0,
949
- "star_count": 0,
950
- "runners_token": "b8bc4a7a29eb76ea83cf79e4908c2b",
951
- "public_builds": true,
952
- "shared_with_groups": [],
953
- "only_allow_merge_if_build_succeeds": false,
954
- "only_allow_merge_if_all_discussions_are_resolved": false,
955
- "request_access_enabled": false
956
- }
957
- ```
958
-
959
- ### Unarchive a project
960
-
961
- Unarchives the project if the user is either admin or the project owner of this project. This action is
962
- idempotent, thus unarchiving an non-archived project will not change the project.
963
-
964
- ```
965
- POST /projects/:id/unarchive
966
- ```
967
-
968
- | Attribute | Type | Required | Description |
969
- | --------- | ---- | -------- | ----------- |
970
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
971
-
972
- ```bash
973
- curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/unarchive"
974
- ```
975
-
976
- Example response:
977
-
978
- ```json
979
- {
980
- "id": 3,
981
- "description": null,
982
- "default_branch": "master",
983
- "public": false,
984
- "visibility_level": 0,
985
- "ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
986
- "http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
987
- "web_url": "http://example.com/diaspora/diaspora-project-site",
988
- "tag_list": [
989
- "example",
990
- "disapora project"
991
- ],
992
- "owner": {
993
- "id": 3,
994
- "name": "Diaspora",
995
- "created_at": "2013-09-30T13:46:02Z"
996
- },
997
- "name": "Diaspora Project Site",
998
- "name_with_namespace": "Diaspora / Diaspora Project Site",
999
- "path": "diaspora-project-site",
1000
- "path_with_namespace": "diaspora/diaspora-project-site",
1001
- "issues_enabled": true,
1002
- "open_issues_count": 1,
1003
- "merge_requests_enabled": true,
1004
- "builds_enabled": true,
1005
- "wiki_enabled": true,
1006
- "snippets_enabled": false,
1007
- "container_registry_enabled": false,
1008
- "created_at": "2013-09-30T13:46:02Z",
1009
- "last_activity_at": "2013-09-30T13:46:02Z",
1010
- "creator_id": 3,
1011
- "namespace": {
1012
- "created_at": "2013-09-30T13:46:02Z",
1013
- "description": "",
1014
- "id": 3,
1015
- "name": "Diaspora",
1016
- "owner_id": 1,
1017
- "path": "diaspora",
1018
- "updated_at": "2013-09-30T13:46:02Z"
1019
- },
1020
- "permissions": {
1021
- "project_access": {
1022
- "access_level": 10,
1023
- "notification_level": 3
1024
- },
1025
- "group_access": {
1026
- "access_level": 50,
1027
- "notification_level": 3
1028
- }
1029
- },
1030
- "archived": false,
1031
- "avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png",
1032
- "shared_runners_enabled": true,
1033
- "forks_count": 0,
1034
- "star_count": 0,
1035
- "runners_token": "b8bc4a7a29eb76ea83cf79e4908c2b",
1036
- "public_builds": true,
1037
- "shared_with_groups": [],
1038
- "only_allow_merge_if_build_succeeds": false,
1039
- "only_allow_merge_if_all_discussions_are_resolved": false,
1040
- "request_access_enabled": false
1041
- }
1042
- ```
1043
-
1044
- ### Remove project
1045
-
1046
- Removes a project including all associated resources (issues, merge requests etc.)
1047
-
1048
- ```
1049
- DELETE /projects/:id
1050
- ```
1051
-
1052
- Parameters:
1053
-
1054
- | Attribute | Type | Required | Description |
1055
- | --------- | ---- | -------- | ----------- |
1056
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1057
-
1058
- ## Uploads
1059
-
1060
- ### Upload a file
1061
-
1062
- Uploads a file to the specified project to be used in an issue or merge request description, or a comment.
1063
-
1064
- ```
1065
- POST /projects/:id/uploads
1066
- ```
1067
-
1068
- Parameters:
1069
-
1070
- | Attribute | Type | Required | Description |
1071
- | --------- | ---- | -------- | ----------- |
1072
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1073
- | `file` | string | yes | The file to be uploaded |
1074
-
1075
- ```json
1076
- {
1077
- "alt": "dk",
1078
- "url": "/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png",
1079
- "markdown": "![dk](/uploads/66dbcd21ec5d24ed6ea225176098d52b/dk.png)"
1080
- }
1081
- ```
1082
-
1083
- **Note**: The returned `url` is relative to the project path.
1084
- In Markdown contexts, the link is automatically expanded when the format in `markdown` is used.
1085
-
1086
-
1087
- ## Project members
1088
-
1089
- Please consult the [Project Members](members.md) documentation.
1090
-
1091
- ### Share project with group
1092
-
1093
- Allow to share project with group.
1094
-
1095
- ```
1096
- POST /projects/:id/share
1097
- ```
1098
-
1099
- Parameters:
1100
-
1101
- | Attribute | Type | Required | Description |
1102
- | --------- | ---- | -------- | ----------- |
1103
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1104
- | `group_id` | integer | yes | The ID of the group to share with |
1105
- | `group_access` | integer | yes | The permissions level to grant the group |
1106
- | `expires_at` | string | no | Share expiration date in ISO 8601 format: 2016-09-26 |
1107
-
1108
- ### Delete a shared project link within a group
1109
-
1110
- Unshare the project from the group. Returns `204` and no content on success.
1111
-
1112
- ```
1113
- DELETE /projects/:id/share/:group_id
1114
- ```
1115
-
1116
- Parameters:
1117
-
1118
- | Attribute | Type | Required | Description |
1119
- | --------- | ---- | -------- | ----------- |
1120
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1121
- | `group_id` | integer | yes | The ID of the group |
1122
-
1123
- ```bash
1124
- curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/share/17
1125
- ```
1126
-
1127
- ## Hooks
1128
-
1129
- Also called Project Hooks and Webhooks.
1130
- These are different for [System Hooks](system_hooks.md) that are system wide.
1131
-
1132
- ### List project hooks
1133
-
1134
- Get a list of project hooks.
1135
-
1136
- ```
1137
- GET /projects/:id/hooks
1138
- ```
1139
-
1140
- Parameters:
1141
-
1142
- | Attribute | Type | Required | Description |
1143
- | --------- | ---- | -------- | ----------- |
1144
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1145
-
1146
- ### Get project hook
1147
-
1148
- Get a specific hook for a project.
1149
-
1150
- ```
1151
- GET /projects/:id/hooks/:hook_id
1152
- ```
1153
-
1154
- Parameters:
1155
-
1156
- | Attribute | Type | Required | Description |
1157
- | --------- | ---- | -------- | ----------- |
1158
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1159
- | `hook_id` | integer | yes | The ID of a project hook |
1160
-
1161
- ```json
1162
- {
1163
- "id": 1,
1164
- "url": "http://example.com/hook",
1165
- "project_id": 3,
1166
- "push_events": true,
1167
- "issues_events": true,
1168
- "merge_requests_events": true,
1169
- "tag_push_events": true,
1170
- "note_events": true,
1171
- "build_events": true,
1172
- "pipeline_events": true,
1173
- "wiki_page_events": true,
1174
- "enable_ssl_verification": true,
1175
- "created_at": "2012-10-12T17:04:47Z"
1176
- }
1177
- ```
1178
-
1179
- ### Add project hook
1180
-
1181
- Adds a hook to a specified project.
1182
-
1183
- ```
1184
- POST /projects/:id/hooks
1185
- ```
1186
-
1187
- Parameters:
1188
-
1189
- | Attribute | Type | Required | Description |
1190
- | --------- | ---- | -------- | ----------- |
1191
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1192
- | `url` | string | yes | The hook URL |
1193
- | `push_events` | boolean | no | Trigger hook on push events |
1194
- | `issues_events` | boolean | no | Trigger hook on issues events |
1195
- | `merge_requests_events` | boolean | no | Trigger hook on merge requests events |
1196
- | `tag_push_events` | boolean | no | Trigger hook on tag push events |
1197
- | `note_events` | boolean | no | Trigger hook on note events |
1198
- | `build_events` | boolean | no | Trigger hook on build events |
1199
- | `pipeline_events` | boolean | no | Trigger hook on pipeline events |
1200
- | `wiki_events` | boolean | no | Trigger hook on wiki events |
1201
- | `enable_ssl_verification` | boolean | no | Do SSL verification when triggering the hook |
1202
- | `token` | string | no | Secret token to validate received payloads; this will not be returned in the response |
1203
-
1204
- ### Edit project hook
1205
-
1206
- Edits a hook for a specified project.
1207
-
1208
- ```
1209
- PUT /projects/:id/hooks/:hook_id
1210
- ```
1211
-
1212
- Parameters:
1213
-
1214
- | Attribute | Type | Required | Description |
1215
- | --------- | ---- | -------- | ----------- |
1216
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1217
- | `hook_id` | integer | yes | The ID of the project hook |
1218
- | `url` | string | yes | The hook URL |
1219
- | `push_events` | boolean | no | Trigger hook on push events |
1220
- | `issues_events` | boolean | no | Trigger hook on issues events |
1221
- | `merge_requests_events` | boolean | no | Trigger hook on merge requests events |
1222
- | `tag_push_events` | boolean | no | Trigger hook on tag push events |
1223
- | `note_events` | boolean | no | Trigger hook on note events |
1224
- | `build_events` | boolean | no | Trigger hook on build events |
1225
- | `pipeline_events` | boolean | no | Trigger hook on pipeline events |
1226
- | `wiki_events` | boolean | no | Trigger hook on wiki events |
1227
- | `enable_ssl_verification` | boolean | no | Do SSL verification when triggering the hook |
1228
- | `token` | string | no | Secret token to validate received payloads; this will not be returned in the response |
1229
-
1230
- ### Delete project hook
1231
-
1232
- Removes a hook from a project. This is an idempotent method and can be called multiple times.
1233
- Either the hook is available or not.
1234
-
1235
- ```
1236
- DELETE /projects/:id/hooks/:hook_id
1237
- ```
1238
-
1239
- Parameters:
1240
-
1241
- | Attribute | Type | Required | Description |
1242
- | --------- | ---- | -------- | ----------- |
1243
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1244
- | `hook_id` | integer | yes | The ID of the project hook |
1245
-
1246
- Note the JSON response differs if the hook is available or not. If the project hook
1247
- is available before it is returned in the JSON response or an empty response is returned.
1248
-
1249
- ## Branches
1250
-
1251
- For more information please consult the [Branches](branches.md) documentation.
1252
-
1253
- ### List branches
1254
-
1255
- Lists all branches of a project.
1256
-
1257
- ```
1258
- GET /projects/:id/repository/branches
1259
- ```
1260
-
1261
- Parameters:
1262
-
1263
- | Attribute | Type | Required | Description |
1264
- | --------- | ---- | -------- | ----------- |
1265
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1266
-
1267
- ```json
1268
- [
1269
- {
1270
- "name": "async",
1271
- "commit": {
1272
- "id": "a2b702edecdf41f07b42653eb1abe30ce98b9fca",
1273
- "parent_ids": [
1274
- "3f94fc7c85061973edc9906ae170cc269b07ca55"
1275
- ],
1276
- "message": "give Caolan credit where it's due (up top)",
1277
- "author_name": "Jeremy Ashkenas",
1278
- "author_email": "jashkenas@example.com",
1279
- "authored_date": "2010-12-08T21:28:50+00:00",
1280
- "committer_name": "Jeremy Ashkenas",
1281
- "committer_email": "jashkenas@example.com",
1282
- "committed_date": "2010-12-08T21:28:50+00:00"
1283
- },
1284
- "protected": false,
1285
- "developers_can_push": false,
1286
- "developers_can_merge": false
1287
- },
1288
- {
1289
- "name": "gh-pages",
1290
- "commit": {
1291
- "id": "101c10a60019fe870d21868835f65c25d64968fc",
1292
- "parent_ids": [
1293
- "9c15d2e26945a665131af5d7b6d30a06ba338aaa"
1294
- ],
1295
- "message": "Underscore.js 1.5.2",
1296
- "author_name": "Jeremy Ashkenas",
1297
- "author_email": "jashkenas@example.com",
1298
- "authored_date": "2013-09-07T12:58:21+00:00",
1299
- "committer_name": "Jeremy Ashkenas",
1300
- "committer_email": "jashkenas@example.com",
1301
- "committed_date": "2013-09-07T12:58:21+00:00"
1302
- },
1303
- "protected": false,
1304
- "developers_can_push": false,
1305
- "developers_can_merge": false
1306
- }
1307
- ]
1308
- ```
1309
-
1310
- ### Single branch
1311
-
1312
- A specific branch of a project.
1313
-
1314
- ```
1315
- GET /projects/:id/repository/branches/:branch
1316
- ```
1317
-
1318
- Parameters:
1319
-
1320
- | Attribute | Type | Required | Description |
1321
- | --------- | ---- | -------- | ----------- |
1322
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1323
- | `branch` | string | yes | The name of the branch |
1324
- | `developers_can_push` | boolean | no | Flag if developers can push to the branch |
1325
- | `developers_can_merge` | boolean | no | Flag if developers can merge to the branch |
1326
-
1327
- ### Protect single branch
1328
-
1329
- Protects a single branch of a project.
1330
-
1331
- ```
1332
- PUT /projects/:id/repository/branches/:branch/protect
1333
- ```
1334
-
1335
- Parameters:
1336
-
1337
- | Attribute | Type | Required | Description |
1338
- | --------- | ---- | -------- | ----------- |
1339
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1340
- | `branch` | string | yes | The name of the branch |
1341
-
1342
- ### Unprotect single branch
1343
-
1344
- Unprotects a single branch of a project.
1345
-
1346
- ```
1347
- PUT /projects/:id/repository/branches/:branch/unprotect
1348
- ```
1349
-
1350
- Parameters:
1351
-
1352
- | Attribute | Type | Required | Description |
1353
- | --------- | ---- | -------- | ----------- |
1354
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1355
- | `branch` | string | yes | The name of the branch |
1356
-
1357
- ## Admin fork relation
1358
-
1359
- Allows modification of the forked relationship between existing projects. Available only for admins.
1360
-
1361
- ### Create a forked from/to relation between existing projects.
1362
-
1363
- ```
1364
- POST /projects/:id/fork/:forked_from_id
1365
- ```
1366
-
1367
- Parameters:
1368
-
1369
- | Attribute | Type | Required | Description |
1370
- | --------- | ---- | -------- | ----------- |
1371
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1372
- | `forked_from_id` | ID | yes | The ID of the project that was forked from |
1373
-
1374
- ### Delete an existing forked from relationship
1375
-
1376
- ```
1377
- DELETE /projects/:id/fork
1378
- ```
1379
-
1380
- Parameter:
1381
-
1382
- | Attribute | Type | Required | Description |
1383
- | --------- | ---- | -------- | ----------- |
1384
- | `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
1385
-
1386
- ## Search for projects by name
1387
-
1388
- Search for projects by name which are accessible to the authenticated user. This
1389
- endpoint can be accessed without authentication if the project is publicly
1390
- accessible.
1391
-
1392
- ```
1393
- GET /projects/search/:query
1394
- ```
1395
-
1396
- Parameters:
1397
-
1398
- | Attribute | Type | Required | Description |
1399
- | --------- | ---- | -------- | ----------- |
1400
- | `query` | string | yes | A string contained in the project name |
1401
- | `order_by` | string | no | Return requests ordered by `id`, `name`, `created_at` or `last_activity_at` fields |
1402
- | `sort` | string | no | Return requests sorted in `asc` or `desc` order |