node-cnb 1.11.0 → 1.13.0
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/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/paths.json +974 -531
- package/package.json +1 -1
- package/src/client.d.ts +533 -360
- package/src/index.ts +1 -1
- package/src/types.d.ts +596 -290
package/dist/paths.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"groups.post": {
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
4
4
|
"operationId": "CreateOrganization",
|
|
5
5
|
"tags": [
|
|
6
6
|
"Organizations"
|
|
7
7
|
],
|
|
8
|
-
"summary": "
|
|
8
|
+
"summary": "创建新组织。Create new organization.",
|
|
9
9
|
"parameters": [
|
|
10
10
|
{
|
|
11
11
|
"description": "group information",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"method": "post"
|
|
27
27
|
},
|
|
28
28
|
"user.get": {
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
|
|
30
30
|
"operationId": "GetUserInfo",
|
|
31
31
|
"tags": [
|
|
32
32
|
"Users"
|
|
33
33
|
],
|
|
34
|
-
"summary": "
|
|
34
|
+
"summary": "获取指定用户的详情信息。Get detailed information for a specified user.",
|
|
35
35
|
"responses": {
|
|
36
36
|
"200": {
|
|
37
37
|
"description": "OK",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"method": "get"
|
|
45
45
|
},
|
|
46
46
|
"user.post": {
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:rw",
|
|
48
48
|
"operationId": "UpdateUserInfo",
|
|
49
49
|
"tags": [
|
|
50
50
|
"Users"
|
|
51
51
|
],
|
|
52
|
-
"summary": "
|
|
52
|
+
"summary": "更新指定用户的详情信息。Updates the specified user's profile information.",
|
|
53
53
|
"parameters": [
|
|
54
54
|
{
|
|
55
55
|
"description": "user info",
|
|
@@ -70,15 +70,16 @@
|
|
|
70
70
|
"method": "post"
|
|
71
71
|
},
|
|
72
72
|
"user.autocompleteSource.list": {
|
|
73
|
-
"description": "
|
|
73
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
74
74
|
"operationId": "AutoCompleteSource",
|
|
75
75
|
"tags": [
|
|
76
76
|
"Users"
|
|
77
77
|
],
|
|
78
|
-
"summary": "
|
|
78
|
+
"summary": "查询当前用户用户拥有指定权限的所有资源列表。List resources that the current user has specified permissions for.",
|
|
79
79
|
"parameters": [
|
|
80
80
|
{
|
|
81
|
-
"
|
|
81
|
+
"default": "group",
|
|
82
|
+
"description": "Source type, default(group)",
|
|
82
83
|
"enum": [
|
|
83
84
|
"Group",
|
|
84
85
|
"Repo"
|
|
@@ -89,27 +90,28 @@
|
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
92
|
"default": 1,
|
|
92
|
-
"description": "
|
|
93
|
+
"description": "Pagination page number",
|
|
93
94
|
"in": "query",
|
|
94
95
|
"name": "page",
|
|
95
96
|
"type": "integer"
|
|
96
97
|
},
|
|
97
98
|
{
|
|
98
99
|
"default": 10,
|
|
99
|
-
"description": "
|
|
100
|
+
"description": "Pagination page size",
|
|
100
101
|
"in": "query",
|
|
101
102
|
"name": "page_size",
|
|
102
103
|
"type": "integer"
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
106
|
"default": "",
|
|
106
|
-
"description": "
|
|
107
|
+
"description": "Filter by resources.",
|
|
107
108
|
"in": "query",
|
|
108
109
|
"name": "search",
|
|
109
110
|
"type": "string"
|
|
110
111
|
},
|
|
111
112
|
{
|
|
112
|
-
"
|
|
113
|
+
"default": "owner",
|
|
114
|
+
"description": "最小仓库权限,默认owner。Minima repository permissions, default(owner)",
|
|
113
115
|
"enum": [
|
|
114
116
|
"Reporter",
|
|
115
117
|
"Developer",
|
|
@@ -136,36 +138,36 @@
|
|
|
136
138
|
"method": "get"
|
|
137
139
|
},
|
|
138
140
|
"user.groups.list": {
|
|
139
|
-
"description": "
|
|
141
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
140
142
|
"operationId": "ListTopGroups",
|
|
141
143
|
"tags": [
|
|
142
144
|
"Organizations"
|
|
143
145
|
],
|
|
144
|
-
"summary": "
|
|
146
|
+
"summary": "获取当前用户拥有权限的顶层组织列表。Get top-level organizations list that the current user has access to.",
|
|
145
147
|
"parameters": [
|
|
146
148
|
{
|
|
147
149
|
"default": 1,
|
|
148
|
-
"description": "
|
|
150
|
+
"description": "Pagination page number",
|
|
149
151
|
"in": "query",
|
|
150
152
|
"name": "page",
|
|
151
153
|
"type": "integer"
|
|
152
154
|
},
|
|
153
155
|
{
|
|
154
156
|
"default": 10,
|
|
155
|
-
"description": "
|
|
157
|
+
"description": "Pagination page size",
|
|
156
158
|
"in": "query",
|
|
157
159
|
"name": "page_size",
|
|
158
160
|
"type": "integer"
|
|
159
161
|
},
|
|
160
162
|
{
|
|
161
163
|
"default": "",
|
|
162
|
-
"description": "
|
|
164
|
+
"description": "Filter by organizations.",
|
|
163
165
|
"in": "query",
|
|
164
166
|
"name": "search",
|
|
165
167
|
"type": "string"
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
|
-
"description": "
|
|
170
|
+
"description": "Filter by role.",
|
|
169
171
|
"enum": [
|
|
170
172
|
"Guest",
|
|
171
173
|
"Reporter",
|
|
@@ -193,12 +195,12 @@
|
|
|
193
195
|
"method": "get"
|
|
194
196
|
},
|
|
195
197
|
"user.groups.listByGroup": {
|
|
196
|
-
"description": "
|
|
198
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
197
199
|
"operationId": "ListGroups",
|
|
198
200
|
"tags": [
|
|
199
201
|
"Organizations"
|
|
200
202
|
],
|
|
201
|
-
"summary": "
|
|
203
|
+
"summary": "查询当前用户在指定组织下拥有指定权限的子组织列表。Get the list of sub-organizations that the current user has access to in the specified organization.",
|
|
202
204
|
"parameters": [
|
|
203
205
|
{
|
|
204
206
|
"default": "hello",
|
|
@@ -210,14 +212,14 @@
|
|
|
210
212
|
},
|
|
211
213
|
{
|
|
212
214
|
"default": 1,
|
|
213
|
-
"description": "
|
|
215
|
+
"description": "Pagination page number",
|
|
214
216
|
"in": "query",
|
|
215
217
|
"name": "page",
|
|
216
218
|
"type": "integer"
|
|
217
219
|
},
|
|
218
220
|
{
|
|
219
221
|
"default": 10,
|
|
220
|
-
"description": "
|
|
222
|
+
"description": "Pagination page size",
|
|
221
223
|
"in": "query",
|
|
222
224
|
"name": "page_size",
|
|
223
225
|
"type": "integer"
|
|
@@ -244,36 +246,36 @@
|
|
|
244
246
|
"method": "get"
|
|
245
247
|
},
|
|
246
248
|
"user.repos.list": {
|
|
247
|
-
"description": "
|
|
249
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
248
250
|
"operationId": "GetRepos",
|
|
249
251
|
"tags": [
|
|
250
252
|
"Repositories"
|
|
251
253
|
],
|
|
252
|
-
"summary": "
|
|
254
|
+
"summary": "获取当前用户拥有指定权限及其以上权限的仓库。List repositories owned by the current user with the specified permissions or higher.",
|
|
253
255
|
"parameters": [
|
|
254
256
|
{
|
|
255
257
|
"default": 1,
|
|
256
|
-
"description": "
|
|
258
|
+
"description": "Pagination page number",
|
|
257
259
|
"in": "query",
|
|
258
260
|
"name": "page",
|
|
259
261
|
"type": "integer"
|
|
260
262
|
},
|
|
261
263
|
{
|
|
262
264
|
"default": 10,
|
|
263
|
-
"description": "
|
|
265
|
+
"description": "Pagination page size",
|
|
264
266
|
"in": "query",
|
|
265
267
|
"name": "page_size",
|
|
266
268
|
"type": "integer"
|
|
267
269
|
},
|
|
268
270
|
{
|
|
269
271
|
"default": "",
|
|
270
|
-
"description": "
|
|
272
|
+
"description": "Filter by repositories",
|
|
271
273
|
"in": "query",
|
|
272
274
|
"name": "search",
|
|
273
275
|
"type": "string"
|
|
274
276
|
},
|
|
275
277
|
{
|
|
276
|
-
"description": "
|
|
278
|
+
"description": "Type",
|
|
277
279
|
"enum": [
|
|
278
280
|
"private",
|
|
279
281
|
"public",
|
|
@@ -284,7 +286,8 @@
|
|
|
284
286
|
"type": "string"
|
|
285
287
|
},
|
|
286
288
|
{
|
|
287
|
-
"
|
|
289
|
+
"default": "owner",
|
|
290
|
+
"description": "最小仓库权限,默认owner。Minima repository permissions, default(owner)",
|
|
288
291
|
"enum": [
|
|
289
292
|
"Reporter",
|
|
290
293
|
"Developer",
|
|
@@ -296,7 +299,7 @@
|
|
|
296
299
|
"type": "string"
|
|
297
300
|
},
|
|
298
301
|
{
|
|
299
|
-
"description": "
|
|
302
|
+
"description": "Order field,default(last_updated_at)",
|
|
300
303
|
"enum": [
|
|
301
304
|
"created_at",
|
|
302
305
|
"last_updated_at",
|
|
@@ -310,7 +313,7 @@
|
|
|
310
313
|
},
|
|
311
314
|
{
|
|
312
315
|
"default": false,
|
|
313
|
-
"description": "
|
|
316
|
+
"description": "排序顺序。Ordering.",
|
|
314
317
|
"in": "query",
|
|
315
318
|
"name": "desc",
|
|
316
319
|
"type": "boolean"
|
|
@@ -331,43 +334,43 @@
|
|
|
331
334
|
"method": "get"
|
|
332
335
|
},
|
|
333
336
|
"user.staredRepos.list": {
|
|
334
|
-
"description": "
|
|
337
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
335
338
|
"operationId": "GetUserAllStaredRepos",
|
|
336
339
|
"tags": [
|
|
337
340
|
"Repositories"
|
|
338
341
|
],
|
|
339
|
-
"summary": "获取当前用户 star
|
|
342
|
+
"summary": "获取当前用户 star 的仓库列表。List all stared repositories.",
|
|
340
343
|
"parameters": [
|
|
341
344
|
{
|
|
342
345
|
"default": 1,
|
|
343
|
-
"description": "
|
|
346
|
+
"description": "Pagination page number",
|
|
344
347
|
"in": "query",
|
|
345
348
|
"name": "page",
|
|
346
349
|
"type": "integer"
|
|
347
350
|
},
|
|
348
351
|
{
|
|
349
352
|
"default": 10,
|
|
350
|
-
"description": "
|
|
353
|
+
"description": "Pagination page size",
|
|
351
354
|
"in": "query",
|
|
352
355
|
"name": "page_size",
|
|
353
356
|
"type": "integer"
|
|
354
357
|
},
|
|
355
358
|
{
|
|
356
359
|
"default": "",
|
|
357
|
-
"description": "
|
|
360
|
+
"description": "Filter by repositories",
|
|
358
361
|
"in": "query",
|
|
359
362
|
"name": "search",
|
|
360
363
|
"type": "string"
|
|
361
364
|
},
|
|
362
365
|
{
|
|
363
366
|
"default": false,
|
|
364
|
-
"description": "
|
|
367
|
+
"description": "排序顺序。Ordering.",
|
|
365
368
|
"in": "query",
|
|
366
369
|
"name": "desc",
|
|
367
370
|
"type": "boolean"
|
|
368
371
|
},
|
|
369
372
|
{
|
|
370
|
-
"description": "
|
|
373
|
+
"description": "Order field,default(last_updated_at)",
|
|
371
374
|
"enum": [
|
|
372
375
|
"created_at",
|
|
373
376
|
"last_updated_at",
|
|
@@ -384,7 +387,7 @@
|
|
|
384
387
|
"description": "OK",
|
|
385
388
|
"schema": {
|
|
386
389
|
"items": {
|
|
387
|
-
"$ref": "#/definitions/dto.
|
|
390
|
+
"$ref": "#/definitions/dto.Repos4User"
|
|
388
391
|
},
|
|
389
392
|
"type": "array"
|
|
390
393
|
}
|
|
@@ -394,12 +397,12 @@
|
|
|
394
397
|
"method": "get"
|
|
395
398
|
},
|
|
396
399
|
"users.get": {
|
|
397
|
-
"description": "
|
|
400
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
|
|
398
401
|
"operationId": "GetUserInfoByName",
|
|
399
402
|
"tags": [
|
|
400
403
|
"Users"
|
|
401
404
|
],
|
|
402
|
-
"summary": "
|
|
405
|
+
"summary": "获取指定用户的详情信息。Get detailed information for a specified user.",
|
|
403
406
|
"parameters": [
|
|
404
407
|
{
|
|
405
408
|
"default": "someone",
|
|
@@ -421,13 +424,48 @@
|
|
|
421
424
|
"path": "/users/{username}",
|
|
422
425
|
"method": "get"
|
|
423
426
|
},
|
|
427
|
+
"users.activities.get": {
|
|
428
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
429
|
+
"operationId": "GetUserActivitiesByDate",
|
|
430
|
+
"tags": [
|
|
431
|
+
"Activities"
|
|
432
|
+
],
|
|
433
|
+
"summary": "获取个人动态活跃详情汇总",
|
|
434
|
+
"parameters": [
|
|
435
|
+
{
|
|
436
|
+
"default": "someone",
|
|
437
|
+
"description": "UserName",
|
|
438
|
+
"in": "path",
|
|
439
|
+
"name": "username",
|
|
440
|
+
"required": true,
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"default": "",
|
|
445
|
+
"description": "查询日期,格式 yyyyMM,或者 yyyyMMdd",
|
|
446
|
+
"in": "query",
|
|
447
|
+
"name": "date",
|
|
448
|
+
"type": "string"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"responses": {
|
|
452
|
+
"200": {
|
|
453
|
+
"description": "OK",
|
|
454
|
+
"schema": {
|
|
455
|
+
"$ref": "#/definitions/dto.ActivityDate"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"path": "/users/{username}/activities",
|
|
460
|
+
"method": "get"
|
|
461
|
+
},
|
|
424
462
|
"users.avatar.get": {
|
|
425
|
-
"description": "
|
|
463
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-profile:r",
|
|
426
464
|
"operationId": "GetUserAvatar",
|
|
427
465
|
"tags": [
|
|
428
466
|
"Assets"
|
|
429
467
|
],
|
|
430
|
-
"summary": "
|
|
468
|
+
"summary": "获取指定用户的用户头像。Get the user's avatar.",
|
|
431
469
|
"parameters": [
|
|
432
470
|
{
|
|
433
471
|
"default": "someone",
|
|
@@ -438,7 +476,7 @@
|
|
|
438
476
|
"type": "string"
|
|
439
477
|
},
|
|
440
478
|
{
|
|
441
|
-
"description": "
|
|
479
|
+
"description": "Size of the avatar. s or l",
|
|
442
480
|
"in": "path",
|
|
443
481
|
"name": "size",
|
|
444
482
|
"required": true,
|
|
@@ -450,12 +488,12 @@
|
|
|
450
488
|
"method": "get"
|
|
451
489
|
},
|
|
452
490
|
"users.followers.list": {
|
|
453
|
-
"description": "
|
|
491
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
454
492
|
"operationId": "GetFollowersByUserID",
|
|
455
493
|
"tags": [
|
|
456
494
|
"Followers"
|
|
457
495
|
],
|
|
458
|
-
"summary": "
|
|
496
|
+
"summary": "获取指定用户的粉丝列表。Get the followers list of specified user.",
|
|
459
497
|
"parameters": [
|
|
460
498
|
{
|
|
461
499
|
"default": "someone",
|
|
@@ -467,14 +505,14 @@
|
|
|
467
505
|
},
|
|
468
506
|
{
|
|
469
507
|
"default": 1,
|
|
470
|
-
"description": "
|
|
508
|
+
"description": "Pagination page number",
|
|
471
509
|
"in": "query",
|
|
472
510
|
"name": "page",
|
|
473
511
|
"type": "integer"
|
|
474
512
|
},
|
|
475
513
|
{
|
|
476
514
|
"default": 10,
|
|
477
|
-
"description": "
|
|
515
|
+
"description": "Pagination page size",
|
|
478
516
|
"in": "query",
|
|
479
517
|
"name": "page_size",
|
|
480
518
|
"type": "integer"
|
|
@@ -495,12 +533,12 @@
|
|
|
495
533
|
"method": "get"
|
|
496
534
|
},
|
|
497
535
|
"users.following.list": {
|
|
498
|
-
"description": "
|
|
536
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
499
537
|
"operationId": "GetFollowingByUserID",
|
|
500
538
|
"tags": [
|
|
501
539
|
"Followers"
|
|
502
540
|
],
|
|
503
|
-
"summary": "
|
|
541
|
+
"summary": "获取指定用户的关注人列表。Get the list of users that the specified user is following.",
|
|
504
542
|
"parameters": [
|
|
505
543
|
{
|
|
506
544
|
"default": "someone",
|
|
@@ -512,14 +550,14 @@
|
|
|
512
550
|
},
|
|
513
551
|
{
|
|
514
552
|
"default": 1,
|
|
515
|
-
"description": "
|
|
553
|
+
"description": "Pagination page number",
|
|
516
554
|
"in": "query",
|
|
517
555
|
"name": "page",
|
|
518
556
|
"type": "integer"
|
|
519
557
|
},
|
|
520
558
|
{
|
|
521
559
|
"default": 10,
|
|
522
|
-
"description": "
|
|
560
|
+
"description": "Pagination page size",
|
|
523
561
|
"in": "query",
|
|
524
562
|
"name": "page_size",
|
|
525
563
|
"type": "integer"
|
|
@@ -540,12 +578,12 @@
|
|
|
540
578
|
"method": "get"
|
|
541
579
|
},
|
|
542
580
|
"users.groups.get": {
|
|
543
|
-
"description": "
|
|
581
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
544
582
|
"operationId": "GetGroupsByUserID",
|
|
545
583
|
"tags": [
|
|
546
584
|
"Organizations"
|
|
547
585
|
],
|
|
548
|
-
"summary": "
|
|
586
|
+
"summary": "获取指定用户拥有权限的顶层组织列表。 Get a list of top-level organizations that the specified user has permissions to access.",
|
|
549
587
|
"parameters": [
|
|
550
588
|
{
|
|
551
589
|
"default": "someone",
|
|
@@ -557,34 +595,34 @@
|
|
|
557
595
|
},
|
|
558
596
|
{
|
|
559
597
|
"default": "",
|
|
560
|
-
"description": "
|
|
598
|
+
"description": "Filter organizations.",
|
|
561
599
|
"in": "query",
|
|
562
600
|
"name": "search",
|
|
563
601
|
"type": "string"
|
|
564
602
|
},
|
|
565
603
|
{
|
|
566
604
|
"default": 1,
|
|
567
|
-
"description": "
|
|
605
|
+
"description": "Pagination page number",
|
|
568
606
|
"in": "query",
|
|
569
607
|
"name": "page",
|
|
570
608
|
"type": "integer"
|
|
571
609
|
},
|
|
572
610
|
{
|
|
573
611
|
"default": 10,
|
|
574
|
-
"description": "
|
|
612
|
+
"description": "Pagination page size",
|
|
575
613
|
"in": "query",
|
|
576
614
|
"name": "page_size",
|
|
577
615
|
"type": "integer"
|
|
578
616
|
},
|
|
579
617
|
{
|
|
580
618
|
"default": false,
|
|
581
|
-
"description": "
|
|
619
|
+
"description": "Sort order.",
|
|
582
620
|
"in": "query",
|
|
583
621
|
"name": "desc",
|
|
584
622
|
"type": "boolean"
|
|
585
623
|
},
|
|
586
624
|
{
|
|
587
|
-
"description": "
|
|
625
|
+
"description": "Sort type, defaults to created_at",
|
|
588
626
|
"enum": [
|
|
589
627
|
"join_time",
|
|
590
628
|
"created_at"
|
|
@@ -606,12 +644,12 @@
|
|
|
606
644
|
"method": "get"
|
|
607
645
|
},
|
|
608
646
|
"users.pinnedRepos.list": {
|
|
609
|
-
"description": "
|
|
647
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
610
648
|
"operationId": "GetPinnedRepoByID",
|
|
611
649
|
"tags": [
|
|
612
650
|
"Repositories"
|
|
613
651
|
],
|
|
614
|
-
"summary": "
|
|
652
|
+
"summary": "获取指定用户的用户仓库墙。 Get a list of repositories that the specified user has pinned.",
|
|
615
653
|
"parameters": [
|
|
616
654
|
{
|
|
617
655
|
"default": "someone",
|
|
@@ -636,13 +674,70 @@
|
|
|
636
674
|
"path": "/users/{username}/pinned-repos",
|
|
637
675
|
"method": "get"
|
|
638
676
|
},
|
|
677
|
+
"users.repoActivities.list": {
|
|
678
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
679
|
+
"operationId": "GetUserRepoActivityDetails",
|
|
680
|
+
"tags": [
|
|
681
|
+
"Activities"
|
|
682
|
+
],
|
|
683
|
+
"summary": "个人仓库动态详情列表",
|
|
684
|
+
"parameters": [
|
|
685
|
+
{
|
|
686
|
+
"default": "someone",
|
|
687
|
+
"description": "UserName",
|
|
688
|
+
"in": "path",
|
|
689
|
+
"name": "username",
|
|
690
|
+
"required": true,
|
|
691
|
+
"type": "string"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"description": "activity type",
|
|
695
|
+
"enum": [
|
|
696
|
+
"issue",
|
|
697
|
+
"pull_request",
|
|
698
|
+
"code_review"
|
|
699
|
+
],
|
|
700
|
+
"in": "path",
|
|
701
|
+
"name": "activityType",
|
|
702
|
+
"required": true,
|
|
703
|
+
"type": "string"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"default": "",
|
|
707
|
+
"description": "仓库路径",
|
|
708
|
+
"in": "query",
|
|
709
|
+
"name": "slug",
|
|
710
|
+
"required": true,
|
|
711
|
+
"type": "string"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"default": "",
|
|
715
|
+
"description": "查询日期,格式 yyyyMM,或者 yyyyMMdd",
|
|
716
|
+
"in": "query",
|
|
717
|
+
"name": "date",
|
|
718
|
+
"required": true,
|
|
719
|
+
"type": "string"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"responses": {
|
|
723
|
+
"200": {
|
|
724
|
+
"description": "返回 []dto.ActivityPullRequestDetail|[]dto.ActivityIssueDetail",
|
|
725
|
+
"schema": {
|
|
726
|
+
"items": {},
|
|
727
|
+
"type": "array"
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
"path": "/users/{username}/repo-activities/{activityType}",
|
|
732
|
+
"method": "get"
|
|
733
|
+
},
|
|
639
734
|
"users.repos.list": {
|
|
640
|
-
"description": "
|
|
735
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
641
736
|
"operationId": "GetReposByUserName",
|
|
642
737
|
"tags": [
|
|
643
738
|
"Repositories"
|
|
644
739
|
],
|
|
645
|
-
"summary": "
|
|
740
|
+
"summary": "获取指定用户有指定以上权限并且客人态可见的仓库。List repositories where the specified user has the specified permission level or higher and are visible to guests.",
|
|
646
741
|
"parameters": [
|
|
647
742
|
{
|
|
648
743
|
"default": "someone",
|
|
@@ -654,13 +749,14 @@
|
|
|
654
749
|
},
|
|
655
750
|
{
|
|
656
751
|
"default": "",
|
|
657
|
-
"description": "
|
|
752
|
+
"description": "Filter by repositories",
|
|
658
753
|
"in": "query",
|
|
659
754
|
"name": "search",
|
|
660
755
|
"type": "string"
|
|
661
756
|
},
|
|
662
757
|
{
|
|
663
|
-
"
|
|
758
|
+
"default": "owner",
|
|
759
|
+
"description": "最小仓库权限,默认owner。Minima repository permissions, default(owner).",
|
|
664
760
|
"enum": [
|
|
665
761
|
"Reporter",
|
|
666
762
|
"Developer",
|
|
@@ -673,27 +769,27 @@
|
|
|
673
769
|
},
|
|
674
770
|
{
|
|
675
771
|
"default": 1,
|
|
676
|
-
"description": "
|
|
772
|
+
"description": "Pagination page number",
|
|
677
773
|
"in": "query",
|
|
678
774
|
"name": "page",
|
|
679
775
|
"type": "integer"
|
|
680
776
|
},
|
|
681
777
|
{
|
|
682
778
|
"default": 10,
|
|
683
|
-
"description": "
|
|
779
|
+
"description": "Pagination page size",
|
|
684
780
|
"in": "query",
|
|
685
781
|
"name": "page_size",
|
|
686
782
|
"type": "integer"
|
|
687
783
|
},
|
|
688
784
|
{
|
|
689
785
|
"default": false,
|
|
690
|
-
"description": "
|
|
786
|
+
"description": "排序顺序。Ordering.",
|
|
691
787
|
"in": "query",
|
|
692
788
|
"name": "desc",
|
|
693
789
|
"type": "boolean"
|
|
694
790
|
},
|
|
695
791
|
{
|
|
696
|
-
"description": "
|
|
792
|
+
"description": "Order field,default(last_updated_at)",
|
|
697
793
|
"enum": [
|
|
698
794
|
"created_at",
|
|
699
795
|
"last_updated_at",
|
|
@@ -721,12 +817,12 @@
|
|
|
721
817
|
"method": "get"
|
|
722
818
|
},
|
|
723
819
|
"users.staredRepos.list": {
|
|
724
|
-
"description": "
|
|
820
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
725
821
|
"operationId": "GetUserStaredRepos",
|
|
726
822
|
"tags": [
|
|
727
823
|
"Starring"
|
|
728
824
|
],
|
|
729
|
-
"summary": "获取指定用户的 star
|
|
825
|
+
"summary": "获取指定用户的 star 仓库列表。Get the list of repositories starred by the specified user.",
|
|
730
826
|
"parameters": [
|
|
731
827
|
{
|
|
732
828
|
"default": "someone",
|
|
@@ -738,34 +834,34 @@
|
|
|
738
834
|
},
|
|
739
835
|
{
|
|
740
836
|
"default": "",
|
|
741
|
-
"description": "
|
|
837
|
+
"description": "过滤仓库。Filter by repositories",
|
|
742
838
|
"in": "query",
|
|
743
839
|
"name": "search",
|
|
744
840
|
"type": "string"
|
|
745
841
|
},
|
|
746
842
|
{
|
|
747
843
|
"default": 1,
|
|
748
|
-
"description": "
|
|
844
|
+
"description": "Pagination page number",
|
|
749
845
|
"in": "query",
|
|
750
846
|
"name": "page",
|
|
751
847
|
"type": "integer"
|
|
752
848
|
},
|
|
753
849
|
{
|
|
754
850
|
"default": 10,
|
|
755
|
-
"description": "
|
|
851
|
+
"description": "Pagination page size",
|
|
756
852
|
"in": "query",
|
|
757
853
|
"name": "page_size",
|
|
758
854
|
"type": "integer"
|
|
759
855
|
},
|
|
760
856
|
{
|
|
761
857
|
"default": false,
|
|
762
|
-
"description": "
|
|
858
|
+
"description": "Ordering",
|
|
763
859
|
"in": "query",
|
|
764
860
|
"name": "desc",
|
|
765
861
|
"type": "boolean"
|
|
766
862
|
},
|
|
767
863
|
{
|
|
768
|
-
"description": "
|
|
864
|
+
"description": "Order field,default(last_updated_at)",
|
|
769
865
|
"enum": [
|
|
770
866
|
"created_at",
|
|
771
867
|
"last_updated_at",
|
|
@@ -792,15 +888,15 @@
|
|
|
792
888
|
"method": "get"
|
|
793
889
|
},
|
|
794
890
|
"workspace.delete.post": {
|
|
795
|
-
"description": "
|
|
891
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:rw",
|
|
796
892
|
"operationId": "DeleteWorkspace",
|
|
797
893
|
"tags": [
|
|
798
894
|
"Workspace"
|
|
799
895
|
],
|
|
800
|
-
"summary": "
|
|
896
|
+
"summary": "删除我的云原生开发环境。Delete my workspace.",
|
|
801
897
|
"parameters": [
|
|
802
898
|
{
|
|
803
|
-
"description": "
|
|
899
|
+
"description": "params",
|
|
804
900
|
"in": "body",
|
|
805
901
|
"name": "request",
|
|
806
902
|
"required": true,
|
|
@@ -821,51 +917,51 @@
|
|
|
821
917
|
"method": "post"
|
|
822
918
|
},
|
|
823
919
|
"workspace.list.get": {
|
|
824
|
-
"description": "
|
|
920
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \naccount-engage:r",
|
|
825
921
|
"operationId": "ListWorkspaces",
|
|
826
922
|
"tags": [
|
|
827
923
|
"Workspace"
|
|
828
924
|
],
|
|
829
|
-
"summary": "
|
|
925
|
+
"summary": "获取我的云原生开发环境列表。List my workspaces.",
|
|
830
926
|
"parameters": [
|
|
831
927
|
{
|
|
832
|
-
"description": "
|
|
928
|
+
"description": "Git branch name, e.g. \"main\"",
|
|
833
929
|
"in": "query",
|
|
834
930
|
"name": "branch",
|
|
835
931
|
"type": "string"
|
|
836
932
|
},
|
|
837
933
|
{
|
|
838
|
-
"description": "
|
|
934
|
+
"description": "查询结束时间。Query end time. format YYYY-MM-DD HH:mm:ssZZ, e.g. 2024-12-01 00:00:00+0800",
|
|
839
935
|
"in": "query",
|
|
840
936
|
"name": "end",
|
|
841
937
|
"type": "string"
|
|
842
938
|
},
|
|
843
939
|
{
|
|
844
|
-
"description": "
|
|
940
|
+
"description": "Pagination page number, default(1)",
|
|
845
941
|
"in": "query",
|
|
846
942
|
"name": "page",
|
|
847
943
|
"type": "integer"
|
|
848
944
|
},
|
|
849
945
|
{
|
|
850
|
-
"description": "
|
|
946
|
+
"description": "Pagination page size, default(20), max(100)",
|
|
851
947
|
"in": "query",
|
|
852
948
|
"name": "pageSize",
|
|
853
949
|
"type": "integer"
|
|
854
950
|
},
|
|
855
951
|
{
|
|
856
|
-
"description": "
|
|
952
|
+
"description": "Repository path, e.g. \"groupname/reponame\"",
|
|
857
953
|
"in": "query",
|
|
858
954
|
"name": "slug",
|
|
859
955
|
"type": "string"
|
|
860
956
|
},
|
|
861
957
|
{
|
|
862
|
-
"description": "
|
|
958
|
+
"description": "查询开始时间。Query start time. format YYYY-MM-DD HH:mm:ssZZ, e.g. 2024-12-01 00:00:00+0800",
|
|
863
959
|
"in": "query",
|
|
864
960
|
"name": "start",
|
|
865
961
|
"type": "string"
|
|
866
962
|
},
|
|
867
963
|
{
|
|
868
|
-
"description": "开发环境状态,running: 开发环境已启动,closed
|
|
964
|
+
"description": "开发环境状态,running: 开发环境已启动,closed:开发环境已关闭。Workspace status: \"running\" for started, \"closed\" for stopped.",
|
|
869
965
|
"in": "query",
|
|
870
966
|
"name": "status",
|
|
871
967
|
"type": "string"
|
|
@@ -883,12 +979,12 @@
|
|
|
883
979
|
"method": "get"
|
|
884
980
|
},
|
|
885
981
|
"group.delete": {
|
|
886
|
-
"description": "
|
|
982
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-delete:rw",
|
|
887
983
|
"operationId": "DeleteOrganization",
|
|
888
984
|
"tags": [
|
|
889
985
|
"Organizations"
|
|
890
986
|
],
|
|
891
|
-
"summary": "
|
|
987
|
+
"summary": "删除指定组织。Delete the specified organization.",
|
|
892
988
|
"parameters": [
|
|
893
989
|
{
|
|
894
990
|
"description": "group path",
|
|
@@ -898,7 +994,7 @@
|
|
|
898
994
|
"type": "string"
|
|
899
995
|
},
|
|
900
996
|
{
|
|
901
|
-
"description": "
|
|
997
|
+
"description": "微信身份验证票据,首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
|
|
902
998
|
"in": "header",
|
|
903
999
|
"name": "x-cnb-identity-ticket",
|
|
904
1000
|
"type": "string"
|
|
@@ -913,12 +1009,12 @@
|
|
|
913
1009
|
"method": "delete"
|
|
914
1010
|
},
|
|
915
1011
|
"group.get": {
|
|
916
|
-
"description": "
|
|
1012
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
|
|
917
1013
|
"operationId": "GetGroup",
|
|
918
1014
|
"tags": [
|
|
919
1015
|
"Organizations"
|
|
920
1016
|
],
|
|
921
|
-
"summary": "
|
|
1017
|
+
"summary": "获取指定组织信息。Get information for the specified organization.",
|
|
922
1018
|
"parameters": [
|
|
923
1019
|
{
|
|
924
1020
|
"description": "group path",
|
|
@@ -940,12 +1036,12 @@
|
|
|
940
1036
|
"method": "get"
|
|
941
1037
|
},
|
|
942
1038
|
"group.put": {
|
|
943
|
-
"description": "
|
|
1039
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
944
1040
|
"operationId": "UpdateOrganization",
|
|
945
1041
|
"tags": [
|
|
946
1042
|
"Organizations"
|
|
947
1043
|
],
|
|
948
|
-
"summary": "更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站,
|
|
1044
|
+
"summary": "更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱。Updates organization information including: description, display name, website URL and contact email.",
|
|
949
1045
|
"parameters": [
|
|
950
1046
|
{
|
|
951
1047
|
"description": "slug",
|
|
@@ -973,12 +1069,12 @@
|
|
|
973
1069
|
"method": "put"
|
|
974
1070
|
},
|
|
975
1071
|
"group.avatar.put": {
|
|
976
|
-
"description": "
|
|
1072
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
977
1073
|
"operationId": "UpdateGroupAvatar",
|
|
978
1074
|
"tags": [
|
|
979
1075
|
"Organizations"
|
|
980
1076
|
],
|
|
981
|
-
"summary": "更新组织头像 URL
|
|
1077
|
+
"summary": "更新组织头像 URL 地址。Updates the organization avatar URL.",
|
|
982
1078
|
"parameters": [
|
|
983
1079
|
{
|
|
984
1080
|
"description": "slug",
|
|
@@ -1006,12 +1102,12 @@
|
|
|
1006
1102
|
"method": "put"
|
|
1007
1103
|
},
|
|
1008
1104
|
"group.inheritMembers.list": {
|
|
1009
|
-
"description": "
|
|
1105
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1010
1106
|
"operationId": "ListInheritMembersOfGroup",
|
|
1011
1107
|
"tags": [
|
|
1012
1108
|
"Collaborators"
|
|
1013
1109
|
],
|
|
1014
|
-
"summary": "
|
|
1110
|
+
"summary": "获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。",
|
|
1015
1111
|
"parameters": [
|
|
1016
1112
|
{
|
|
1017
1113
|
"description": "slug",
|
|
@@ -1022,13 +1118,13 @@
|
|
|
1022
1118
|
},
|
|
1023
1119
|
{
|
|
1024
1120
|
"default": "",
|
|
1025
|
-
"description": "
|
|
1121
|
+
"description": "过滤成员。Filter by member",
|
|
1026
1122
|
"in": "query",
|
|
1027
1123
|
"name": "search",
|
|
1028
1124
|
"type": "string"
|
|
1029
1125
|
},
|
|
1030
1126
|
{
|
|
1031
|
-
"description": "
|
|
1127
|
+
"description": "Role",
|
|
1032
1128
|
"enum": [
|
|
1033
1129
|
"Guest",
|
|
1034
1130
|
"Reporter",
|
|
@@ -1042,14 +1138,14 @@
|
|
|
1042
1138
|
},
|
|
1043
1139
|
{
|
|
1044
1140
|
"default": 1,
|
|
1045
|
-
"description": "
|
|
1141
|
+
"description": "Pagination page number",
|
|
1046
1142
|
"in": "query",
|
|
1047
1143
|
"name": "page",
|
|
1048
1144
|
"type": "integer"
|
|
1049
1145
|
},
|
|
1050
1146
|
{
|
|
1051
1147
|
"default": 10,
|
|
1052
|
-
"description": "
|
|
1148
|
+
"description": "Pagination page size",
|
|
1053
1149
|
"in": "query",
|
|
1054
1150
|
"name": "page_size",
|
|
1055
1151
|
"type": "integer"
|
|
@@ -1070,12 +1166,12 @@
|
|
|
1070
1166
|
"method": "get"
|
|
1071
1167
|
},
|
|
1072
1168
|
"group.logos.put": {
|
|
1073
|
-
"description": "
|
|
1169
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1074
1170
|
"operationId": "PutLogos",
|
|
1075
1171
|
"tags": [
|
|
1076
1172
|
"Assets"
|
|
1077
1173
|
],
|
|
1078
|
-
"summary": "确认上传的logo",
|
|
1174
|
+
"summary": "确认上传的logo。Confirms the uploaded logo.",
|
|
1079
1175
|
"parameters": [
|
|
1080
1176
|
{
|
|
1081
1177
|
"default": "test-group/test-repo",
|
|
@@ -1086,7 +1182,7 @@
|
|
|
1086
1182
|
"type": "string"
|
|
1087
1183
|
},
|
|
1088
1184
|
{
|
|
1089
|
-
"description": "获取 uploadurl 时返回的token",
|
|
1185
|
+
"description": "获取 uploadurl 时返回的token。The token returned when getting the uploadurl.",
|
|
1090
1186
|
"in": "query",
|
|
1091
1187
|
"name": "token",
|
|
1092
1188
|
"required": true,
|
|
@@ -1102,12 +1198,12 @@
|
|
|
1102
1198
|
"method": "put"
|
|
1103
1199
|
},
|
|
1104
1200
|
"group.logos.get": {
|
|
1105
|
-
"description": "
|
|
1201
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
|
|
1106
1202
|
"operationId": "GetLogos",
|
|
1107
1203
|
"tags": [
|
|
1108
1204
|
"Assets"
|
|
1109
1205
|
],
|
|
1110
|
-
"summary": "发起一个获取 logo 的请求,返回内容或者 302
|
|
1206
|
+
"summary": "发起一个获取 logo 的请求,返回内容或者 302 到某个地址。Post a request to fetch a logo and returns the content directly or a 302 redirect to the logo URL.",
|
|
1111
1207
|
"parameters": [
|
|
1112
1208
|
{
|
|
1113
1209
|
"default": "test-group",
|
|
@@ -1133,12 +1229,12 @@
|
|
|
1133
1229
|
"method": "get"
|
|
1134
1230
|
},
|
|
1135
1231
|
"group.members.list": {
|
|
1136
|
-
"description": "
|
|
1232
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1137
1233
|
"operationId": "ListMembersOfGroup",
|
|
1138
1234
|
"tags": [
|
|
1139
1235
|
"Collaborators"
|
|
1140
1236
|
],
|
|
1141
|
-
"summary": "
|
|
1237
|
+
"summary": "获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.",
|
|
1142
1238
|
"parameters": [
|
|
1143
1239
|
{
|
|
1144
1240
|
"description": "slug",
|
|
@@ -1149,20 +1245,20 @@
|
|
|
1149
1245
|
},
|
|
1150
1246
|
{
|
|
1151
1247
|
"default": 1,
|
|
1152
|
-
"description": "
|
|
1248
|
+
"description": "Pagination page number",
|
|
1153
1249
|
"in": "query",
|
|
1154
1250
|
"name": "page",
|
|
1155
1251
|
"type": "integer"
|
|
1156
1252
|
},
|
|
1157
1253
|
{
|
|
1158
1254
|
"default": 10,
|
|
1159
|
-
"description": "
|
|
1255
|
+
"description": "Pagination page size",
|
|
1160
1256
|
"in": "query",
|
|
1161
1257
|
"name": "page_size",
|
|
1162
1258
|
"type": "integer"
|
|
1163
1259
|
},
|
|
1164
1260
|
{
|
|
1165
|
-
"description": "
|
|
1261
|
+
"description": "Role",
|
|
1166
1262
|
"enum": [
|
|
1167
1263
|
"Guest",
|
|
1168
1264
|
"Reporter",
|
|
@@ -1176,7 +1272,7 @@
|
|
|
1176
1272
|
},
|
|
1177
1273
|
{
|
|
1178
1274
|
"default": "",
|
|
1179
|
-
"description": "
|
|
1275
|
+
"description": "过滤成员。Filter by member.",
|
|
1180
1276
|
"in": "query",
|
|
1181
1277
|
"name": "search",
|
|
1182
1278
|
"type": "string"
|
|
@@ -1197,12 +1293,12 @@
|
|
|
1197
1293
|
"method": "get"
|
|
1198
1294
|
},
|
|
1199
1295
|
"group.members.accessLevel.get": {
|
|
1200
|
-
"description": "
|
|
1296
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1201
1297
|
"operationId": "GetMemberAccessLevelOfGroup",
|
|
1202
1298
|
"tags": [
|
|
1203
1299
|
"Contributors"
|
|
1204
1300
|
],
|
|
1205
|
-
"summary": "获取指定组织或仓库内,
|
|
1301
|
+
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.",
|
|
1206
1302
|
"parameters": [
|
|
1207
1303
|
{
|
|
1208
1304
|
"description": "slug",
|
|
@@ -1213,7 +1309,7 @@
|
|
|
1213
1309
|
},
|
|
1214
1310
|
{
|
|
1215
1311
|
"default": true,
|
|
1216
|
-
"description": "
|
|
1312
|
+
"description": "是否包含继承的权限。If inherited permissions are included.",
|
|
1217
1313
|
"in": "query",
|
|
1218
1314
|
"name": "include_inherit",
|
|
1219
1315
|
"type": "boolean"
|
|
@@ -1231,12 +1327,12 @@
|
|
|
1231
1327
|
"method": "get"
|
|
1232
1328
|
},
|
|
1233
1329
|
"group.members.delete": {
|
|
1234
|
-
"description": "
|
|
1330
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1235
1331
|
"operationId": "DeleteMembersOfGroup",
|
|
1236
1332
|
"tags": [
|
|
1237
1333
|
"Collaborators"
|
|
1238
1334
|
],
|
|
1239
|
-
"summary": "
|
|
1335
|
+
"summary": "删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.",
|
|
1240
1336
|
"parameters": [
|
|
1241
1337
|
{
|
|
1242
1338
|
"description": "slug",
|
|
@@ -1262,12 +1358,12 @@
|
|
|
1262
1358
|
"method": "delete"
|
|
1263
1359
|
},
|
|
1264
1360
|
"group.members.post": {
|
|
1265
|
-
"description": "
|
|
1361
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1266
1362
|
"operationId": "AddMembersOfGroup",
|
|
1267
1363
|
"tags": [
|
|
1268
1364
|
"Collaborators"
|
|
1269
1365
|
],
|
|
1270
|
-
"summary": "
|
|
1366
|
+
"summary": "添加成员。Add members.",
|
|
1271
1367
|
"parameters": [
|
|
1272
1368
|
{
|
|
1273
1369
|
"description": "slug",
|
|
@@ -1302,12 +1398,12 @@
|
|
|
1302
1398
|
"method": "post"
|
|
1303
1399
|
},
|
|
1304
1400
|
"group.members.put": {
|
|
1305
|
-
"description": "
|
|
1401
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1306
1402
|
"operationId": "UpdateMembersOfGroup",
|
|
1307
1403
|
"tags": [
|
|
1308
1404
|
"Collaborators"
|
|
1309
1405
|
],
|
|
1310
|
-
"summary": "
|
|
1406
|
+
"summary": "更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.",
|
|
1311
1407
|
"parameters": [
|
|
1312
1408
|
{
|
|
1313
1409
|
"description": "slug",
|
|
@@ -1342,12 +1438,12 @@
|
|
|
1342
1438
|
"method": "put"
|
|
1343
1439
|
},
|
|
1344
1440
|
"group.members.accessLevel.list": {
|
|
1345
|
-
"description": "
|
|
1441
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1346
1442
|
"operationId": "ListMemberAccessLevelOfGroup",
|
|
1347
1443
|
"tags": [
|
|
1348
1444
|
"Contributors"
|
|
1349
1445
|
],
|
|
1350
|
-
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示,
|
|
1446
|
+
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.",
|
|
1351
1447
|
"parameters": [
|
|
1352
1448
|
{
|
|
1353
1449
|
"description": "slug",
|
|
@@ -1379,12 +1475,12 @@
|
|
|
1379
1475
|
"method": "get"
|
|
1380
1476
|
},
|
|
1381
1477
|
"group.pinnedRepos.list": {
|
|
1382
|
-
"description": "
|
|
1478
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1383
1479
|
"operationId": "GetPinnedRepoByGroup",
|
|
1384
1480
|
"tags": [
|
|
1385
1481
|
"Repositories"
|
|
1386
1482
|
],
|
|
1387
|
-
"summary": "
|
|
1483
|
+
"summary": "获取指定组织的仓库墙列表。List the pinned repositories of a group.",
|
|
1388
1484
|
"parameters": [
|
|
1389
1485
|
{
|
|
1390
1486
|
"description": "slug",
|
|
@@ -1409,12 +1505,12 @@
|
|
|
1409
1505
|
"method": "get"
|
|
1410
1506
|
},
|
|
1411
1507
|
"group.pinnedRepos.put": {
|
|
1412
|
-
"description": "
|
|
1508
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1413
1509
|
"operationId": "SetPinnedRepoByGroup",
|
|
1414
1510
|
"tags": [
|
|
1415
1511
|
"Repositories"
|
|
1416
1512
|
],
|
|
1417
|
-
"summary": "
|
|
1513
|
+
"summary": "更新指定组织仓库墙。Update the pinned repositories of a group.",
|
|
1418
1514
|
"parameters": [
|
|
1419
1515
|
{
|
|
1420
1516
|
"description": "slug",
|
|
@@ -1451,15 +1547,15 @@
|
|
|
1451
1547
|
"method": "put"
|
|
1452
1548
|
},
|
|
1453
1549
|
"group.repos.list": {
|
|
1454
|
-
"description": "
|
|
1550
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
|
|
1455
1551
|
"operationId": "GetGroupSubRepos",
|
|
1456
1552
|
"tags": [
|
|
1457
1553
|
"Repositories"
|
|
1458
1554
|
],
|
|
1459
|
-
"summary": "
|
|
1555
|
+
"summary": "查询组织下访问用户有权限查看到仓库。List the repositories that the user has access to.",
|
|
1460
1556
|
"parameters": [
|
|
1461
1557
|
{
|
|
1462
|
-
"description": "
|
|
1558
|
+
"description": "slug",
|
|
1463
1559
|
"in": "path",
|
|
1464
1560
|
"name": "group",
|
|
1465
1561
|
"required": true,
|
|
@@ -1467,20 +1563,20 @@
|
|
|
1467
1563
|
},
|
|
1468
1564
|
{
|
|
1469
1565
|
"default": 1,
|
|
1470
|
-
"description": "
|
|
1566
|
+
"description": "Pagination page number",
|
|
1471
1567
|
"in": "query",
|
|
1472
1568
|
"name": "page",
|
|
1473
1569
|
"type": "integer"
|
|
1474
1570
|
},
|
|
1475
1571
|
{
|
|
1476
1572
|
"default": 10,
|
|
1477
|
-
"description": "
|
|
1573
|
+
"description": "Pagination page size",
|
|
1478
1574
|
"in": "query",
|
|
1479
1575
|
"name": "page_size",
|
|
1480
1576
|
"type": "integer"
|
|
1481
1577
|
},
|
|
1482
1578
|
{
|
|
1483
|
-
"description": "
|
|
1579
|
+
"description": "Repositories type",
|
|
1484
1580
|
"enum": [
|
|
1485
1581
|
"private",
|
|
1486
1582
|
"public",
|
|
@@ -1491,7 +1587,7 @@
|
|
|
1491
1587
|
"type": "string"
|
|
1492
1588
|
},
|
|
1493
1589
|
{
|
|
1494
|
-
"description": "
|
|
1590
|
+
"description": "Order field,default(last_updated_at)",
|
|
1495
1591
|
"enum": [
|
|
1496
1592
|
"created_at",
|
|
1497
1593
|
"last_updated_at",
|
|
@@ -1504,13 +1600,13 @@
|
|
|
1504
1600
|
},
|
|
1505
1601
|
{
|
|
1506
1602
|
"default": false,
|
|
1507
|
-
"description": "
|
|
1603
|
+
"description": "Ordering",
|
|
1508
1604
|
"in": "query",
|
|
1509
1605
|
"name": "desc",
|
|
1510
1606
|
"type": "boolean"
|
|
1511
1607
|
},
|
|
1512
1608
|
{
|
|
1513
|
-
"description": "
|
|
1609
|
+
"description": "查全部/查询直接属于当前组织的仓库/查询子组织的仓库。Get all/Get repos belong to current org or sub-organization",
|
|
1514
1610
|
"enum": [
|
|
1515
1611
|
"all",
|
|
1516
1612
|
"sub",
|
|
@@ -1521,7 +1617,7 @@
|
|
|
1521
1617
|
"type": "string"
|
|
1522
1618
|
},
|
|
1523
1619
|
{
|
|
1524
|
-
"description": "
|
|
1620
|
+
"description": "Key word",
|
|
1525
1621
|
"in": "query",
|
|
1526
1622
|
"name": "search",
|
|
1527
1623
|
"type": "string"
|
|
@@ -1532,7 +1628,7 @@
|
|
|
1532
1628
|
"description": "OK",
|
|
1533
1629
|
"schema": {
|
|
1534
1630
|
"items": {
|
|
1535
|
-
"$ref": "#/definitions/dto.
|
|
1631
|
+
"$ref": "#/definitions/dto.Repos4User"
|
|
1536
1632
|
},
|
|
1537
1633
|
"type": "array"
|
|
1538
1634
|
}
|
|
@@ -1542,12 +1638,12 @@
|
|
|
1542
1638
|
"method": "get"
|
|
1543
1639
|
},
|
|
1544
1640
|
"group.repos.post": {
|
|
1545
|
-
"description": "
|
|
1641
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:rw",
|
|
1546
1642
|
"operationId": "CreateRepo",
|
|
1547
1643
|
"tags": [
|
|
1548
1644
|
"Repositories"
|
|
1549
1645
|
],
|
|
1550
|
-
"summary": "
|
|
1646
|
+
"summary": "创建仓库。Create repositories.",
|
|
1551
1647
|
"parameters": [
|
|
1552
1648
|
{
|
|
1553
1649
|
"default": "hello",
|
|
@@ -1576,12 +1672,12 @@
|
|
|
1576
1672
|
"method": "post"
|
|
1577
1673
|
},
|
|
1578
1674
|
"group.settings.get": {
|
|
1579
|
-
"description": "
|
|
1675
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:r",
|
|
1580
1676
|
"operationId": "GetGroupSetting",
|
|
1581
1677
|
"tags": [
|
|
1582
1678
|
"Organizations"
|
|
1583
1679
|
],
|
|
1584
|
-
"summary": "
|
|
1680
|
+
"summary": "获取指定组织的配置详情。Get the configuration details for the specified organization.",
|
|
1585
1681
|
"parameters": [
|
|
1586
1682
|
{
|
|
1587
1683
|
"description": "group path",
|
|
@@ -1603,12 +1699,12 @@
|
|
|
1603
1699
|
"method": "get"
|
|
1604
1700
|
},
|
|
1605
1701
|
"group.settings.put": {
|
|
1606
|
-
"description": "
|
|
1702
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1607
1703
|
"operationId": "UpdateGroupSetting",
|
|
1608
1704
|
"tags": [
|
|
1609
1705
|
"Organizations"
|
|
1610
1706
|
],
|
|
1611
|
-
"summary": "
|
|
1707
|
+
"summary": "更新指定组织的配置。Updates the configuration for the specified organization.",
|
|
1612
1708
|
"parameters": [
|
|
1613
1709
|
{
|
|
1614
1710
|
"description": "slug",
|
|
@@ -1636,12 +1732,12 @@
|
|
|
1636
1732
|
"method": "put"
|
|
1637
1733
|
},
|
|
1638
1734
|
"group.subGroups.list": {
|
|
1639
|
-
"description": "
|
|
1735
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:r",
|
|
1640
1736
|
"operationId": "ListSubgroups",
|
|
1641
1737
|
"tags": [
|
|
1642
1738
|
"Organizations"
|
|
1643
1739
|
],
|
|
1644
|
-
"summary": "
|
|
1740
|
+
"summary": "获取指定组织下的子组织列表。Get the list of sub-organizations under the specified organization.",
|
|
1645
1741
|
"parameters": [
|
|
1646
1742
|
{
|
|
1647
1743
|
"description": "Slug",
|
|
@@ -1652,14 +1748,14 @@
|
|
|
1652
1748
|
},
|
|
1653
1749
|
{
|
|
1654
1750
|
"default": "",
|
|
1655
|
-
"description": "
|
|
1751
|
+
"description": "Filter organization",
|
|
1656
1752
|
"in": "query",
|
|
1657
1753
|
"name": "search",
|
|
1658
1754
|
"type": "string"
|
|
1659
1755
|
},
|
|
1660
1756
|
{
|
|
1661
1757
|
"default": 1,
|
|
1662
|
-
"description": "page",
|
|
1758
|
+
"description": "Pagination page number",
|
|
1663
1759
|
"in": "query",
|
|
1664
1760
|
"name": "page",
|
|
1665
1761
|
"required": true,
|
|
@@ -1667,7 +1763,7 @@
|
|
|
1667
1763
|
},
|
|
1668
1764
|
{
|
|
1669
1765
|
"default": 10,
|
|
1670
|
-
"description": "page",
|
|
1766
|
+
"description": "Pagination page size",
|
|
1671
1767
|
"in": "query",
|
|
1672
1768
|
"name": "page_size",
|
|
1673
1769
|
"required": true,
|
|
@@ -1689,12 +1785,12 @@
|
|
|
1689
1785
|
"method": "get"
|
|
1690
1786
|
},
|
|
1691
1787
|
"group.upload.logos.post": {
|
|
1692
|
-
"description": "
|
|
1788
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1693
1789
|
"operationId": "UploadLogos",
|
|
1694
1790
|
"tags": [
|
|
1695
1791
|
"Assets"
|
|
1696
1792
|
],
|
|
1697
|
-
"summary": "发起一个上传 logo 的请求,返回上传 cos 的 url 和 form
|
|
1793
|
+
"summary": "发起一个上传 logo 的请求,返回上传 cos 的 url 和 form 内容。Post a request to upload a logo.",
|
|
1698
1794
|
"parameters": [
|
|
1699
1795
|
{
|
|
1700
1796
|
"default": "test-group",
|
|
@@ -1726,12 +1822,12 @@
|
|
|
1726
1822
|
"method": "post"
|
|
1727
1823
|
},
|
|
1728
1824
|
"mission.delete": {
|
|
1729
|
-
"description": "
|
|
1825
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-delete:rw",
|
|
1730
1826
|
"operationId": "DeleteMission",
|
|
1731
1827
|
"tags": [
|
|
1732
1828
|
"Missions"
|
|
1733
1829
|
],
|
|
1734
|
-
"summary": "
|
|
1830
|
+
"summary": "删除指定任务集。Delete the specified mission.",
|
|
1735
1831
|
"parameters": [
|
|
1736
1832
|
{
|
|
1737
1833
|
"description": "mission path",
|
|
@@ -1741,7 +1837,7 @@
|
|
|
1741
1837
|
"type": "string"
|
|
1742
1838
|
},
|
|
1743
1839
|
{
|
|
1744
|
-
"description": "
|
|
1840
|
+
"description": "微信身份验证票据,首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
|
|
1745
1841
|
"in": "header",
|
|
1746
1842
|
"name": "x-cnb-identity-ticket",
|
|
1747
1843
|
"type": "string"
|
|
@@ -1756,12 +1852,12 @@
|
|
|
1756
1852
|
"method": "delete"
|
|
1757
1853
|
},
|
|
1758
1854
|
"mission.members.post": {
|
|
1759
|
-
"description": "
|
|
1855
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nmission-manage:rw",
|
|
1760
1856
|
"operationId": "AddMembersOfMission",
|
|
1761
1857
|
"tags": [
|
|
1762
1858
|
"Collaborators"
|
|
1763
1859
|
],
|
|
1764
|
-
"summary": "
|
|
1860
|
+
"summary": "添加成员。Add members.",
|
|
1765
1861
|
"parameters": [
|
|
1766
1862
|
{
|
|
1767
1863
|
"description": "slug",
|
|
@@ -1796,12 +1892,12 @@
|
|
|
1796
1892
|
"method": "post"
|
|
1797
1893
|
},
|
|
1798
1894
|
"registry.delete": {
|
|
1799
|
-
"description": "
|
|
1895
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-delete:rw",
|
|
1800
1896
|
"operationId": "DeleteRegistry",
|
|
1801
1897
|
"tags": [
|
|
1802
1898
|
"Artifactory"
|
|
1803
1899
|
],
|
|
1804
|
-
"summary": "
|
|
1900
|
+
"summary": "删除制品仓库。Delete the artifact repository.",
|
|
1805
1901
|
"parameters": [
|
|
1806
1902
|
{
|
|
1807
1903
|
"description": "registry path",
|
|
@@ -1811,7 +1907,7 @@
|
|
|
1811
1907
|
"type": "string"
|
|
1812
1908
|
},
|
|
1813
1909
|
{
|
|
1814
|
-
"description": "
|
|
1910
|
+
"description": "微信身份验证票据,首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
|
|
1815
1911
|
"in": "header",
|
|
1816
1912
|
"name": "x-cnb-identity-ticket",
|
|
1817
1913
|
"type": "string"
|
|
@@ -1826,12 +1922,12 @@
|
|
|
1826
1922
|
"method": "delete"
|
|
1827
1923
|
},
|
|
1828
1924
|
"registry.members.post": {
|
|
1829
|
-
"description": "
|
|
1925
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-manage:rw",
|
|
1830
1926
|
"operationId": "AddMembersOfRegistry",
|
|
1831
1927
|
"tags": [
|
|
1832
1928
|
"Collaborators"
|
|
1833
1929
|
],
|
|
1834
|
-
"summary": "
|
|
1930
|
+
"summary": "添加成员。Add members.",
|
|
1835
1931
|
"parameters": [
|
|
1836
1932
|
{
|
|
1837
1933
|
"description": "slug",
|
|
@@ -1866,12 +1962,12 @@
|
|
|
1866
1962
|
"method": "post"
|
|
1867
1963
|
},
|
|
1868
1964
|
"repo.delete": {
|
|
1869
|
-
"description": "
|
|
1965
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-delete:rw",
|
|
1870
1966
|
"operationId": "DeleteRepo",
|
|
1871
1967
|
"tags": [
|
|
1872
1968
|
"Repositories"
|
|
1873
1969
|
],
|
|
1874
|
-
"summary": "
|
|
1970
|
+
"summary": "删除指定仓库。Delete the specified repository.",
|
|
1875
1971
|
"parameters": [
|
|
1876
1972
|
{
|
|
1877
1973
|
"description": "repo path",
|
|
@@ -1881,7 +1977,7 @@
|
|
|
1881
1977
|
"type": "string"
|
|
1882
1978
|
},
|
|
1883
1979
|
{
|
|
1884
|
-
"description": "
|
|
1980
|
+
"description": "微信身份验证票据,首次请求不传会返回新票据。WeChat auth ticket, will return new ticket if not provided in first request.",
|
|
1885
1981
|
"in": "header",
|
|
1886
1982
|
"name": "x-cnb-identity-ticket",
|
|
1887
1983
|
"type": "string"
|
|
@@ -1896,12 +1992,12 @@
|
|
|
1896
1992
|
"method": "delete"
|
|
1897
1993
|
},
|
|
1898
1994
|
"repo.get": {
|
|
1899
|
-
"description": "
|
|
1995
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
|
|
1900
1996
|
"operationId": "GetRepo",
|
|
1901
1997
|
"tags": [
|
|
1902
1998
|
"Repositories"
|
|
1903
1999
|
],
|
|
1904
|
-
"summary": "
|
|
2000
|
+
"summary": "获取指定仓库信息。Get information for the specified repository.",
|
|
1905
2001
|
"parameters": [
|
|
1906
2002
|
{
|
|
1907
2003
|
"description": "repo path",
|
|
@@ -1923,22 +2019,22 @@
|
|
|
1923
2019
|
"method": "get"
|
|
1924
2020
|
},
|
|
1925
2021
|
"repo.patch": {
|
|
1926
|
-
"description": "
|
|
2022
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
1927
2023
|
"operationId": "UpdateRepo",
|
|
1928
2024
|
"tags": [
|
|
1929
2025
|
"Repositories"
|
|
1930
2026
|
],
|
|
1931
|
-
"summary": "更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题,
|
|
2027
|
+
"summary": "更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证。updates repository details including description, website URL,topics and license type.",
|
|
1932
2028
|
"parameters": [
|
|
1933
2029
|
{
|
|
1934
|
-
"description": "
|
|
2030
|
+
"description": "repo path",
|
|
1935
2031
|
"in": "path",
|
|
1936
2032
|
"name": "repo",
|
|
1937
2033
|
"required": true,
|
|
1938
2034
|
"type": "string"
|
|
1939
2035
|
},
|
|
1940
2036
|
{
|
|
1941
|
-
"description": "
|
|
2037
|
+
"description": "request body",
|
|
1942
2038
|
"in": "body",
|
|
1943
2039
|
"name": "request",
|
|
1944
2040
|
"required": true,
|
|
@@ -1956,88 +2052,88 @@
|
|
|
1956
2052
|
"method": "patch"
|
|
1957
2053
|
},
|
|
1958
2054
|
"repo.build.logs.get": {
|
|
1959
|
-
"description": "
|
|
2055
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
|
|
1960
2056
|
"operationId": "GetBuildLogs",
|
|
1961
2057
|
"tags": [
|
|
1962
2058
|
"Build"
|
|
1963
2059
|
],
|
|
1964
|
-
"summary": "
|
|
2060
|
+
"summary": "查询流水线构建列表。List pipeline builds.",
|
|
1965
2061
|
"parameters": [
|
|
1966
2062
|
{
|
|
1967
|
-
"description": "
|
|
2063
|
+
"description": "Repo path",
|
|
1968
2064
|
"in": "path",
|
|
1969
2065
|
"name": "repo",
|
|
1970
2066
|
"required": true,
|
|
1971
2067
|
"type": "string"
|
|
1972
2068
|
},
|
|
1973
2069
|
{
|
|
1974
|
-
"description": "
|
|
2070
|
+
"description": "Start date in \"YYYY-MM-DD\" format, e.g. \"2024-12-01\"",
|
|
1975
2071
|
"in": "query",
|
|
1976
2072
|
"name": "createTime",
|
|
1977
2073
|
"type": "string"
|
|
1978
2074
|
},
|
|
1979
2075
|
{
|
|
1980
|
-
"description": "
|
|
2076
|
+
"description": "End date in \"YYYY-MM-DD\" format, e.g. \"2024-12-01\"",
|
|
1981
2077
|
"in": "query",
|
|
1982
2078
|
"name": "endTime",
|
|
1983
2079
|
"type": "string"
|
|
1984
2080
|
},
|
|
1985
2081
|
{
|
|
1986
|
-
"description": "
|
|
2082
|
+
"description": "Event name, e.g. \"push\"",
|
|
1987
2083
|
"in": "query",
|
|
1988
2084
|
"name": "event",
|
|
1989
2085
|
"type": "string"
|
|
1990
2086
|
},
|
|
1991
2087
|
{
|
|
1992
|
-
"description": "
|
|
2088
|
+
"description": "Pagination page number, default(1)",
|
|
1993
2089
|
"in": "query",
|
|
1994
2090
|
"name": "page",
|
|
1995
2091
|
"type": "integer"
|
|
1996
2092
|
},
|
|
1997
2093
|
{
|
|
1998
|
-
"description": "
|
|
2094
|
+
"description": "Pagination page size, default(20), max(100)",
|
|
1999
2095
|
"in": "query",
|
|
2000
2096
|
"name": "pagesize",
|
|
2001
2097
|
"type": "integer"
|
|
2002
2098
|
},
|
|
2003
2099
|
{
|
|
2004
|
-
"description": "
|
|
2100
|
+
"description": "Commit ID, e.g. \"2221d4535ec0c921bcd0858627c5025a871dd2b5\"",
|
|
2005
2101
|
"in": "query",
|
|
2006
2102
|
"name": "sha",
|
|
2007
2103
|
"type": "string"
|
|
2008
2104
|
},
|
|
2009
2105
|
{
|
|
2010
|
-
"description": "
|
|
2106
|
+
"description": "Build SN, e.g. \"cnb-1qa-1i3f5ecau",
|
|
2011
2107
|
"in": "query",
|
|
2012
2108
|
"name": "sn",
|
|
2013
2109
|
"type": "string"
|
|
2014
2110
|
},
|
|
2015
2111
|
{
|
|
2016
|
-
"description": "
|
|
2112
|
+
"description": "Source branch name, e.g. \"dev\"",
|
|
2017
2113
|
"in": "query",
|
|
2018
2114
|
"name": "sourceRef",
|
|
2019
2115
|
"type": "string"
|
|
2020
2116
|
},
|
|
2021
2117
|
{
|
|
2022
|
-
"description": "
|
|
2118
|
+
"description": "Build status: \"pending\", \"success\", \"error\", \"cancel\"",
|
|
2023
2119
|
"in": "query",
|
|
2024
2120
|
"name": "status",
|
|
2025
2121
|
"type": "string"
|
|
2026
2122
|
},
|
|
2027
2123
|
{
|
|
2028
|
-
"description": "
|
|
2124
|
+
"description": "Target branch name, e.g. \"main\"",
|
|
2029
2125
|
"in": "query",
|
|
2030
2126
|
"name": "targetRef",
|
|
2031
2127
|
"type": "string"
|
|
2032
2128
|
},
|
|
2033
2129
|
{
|
|
2034
|
-
"description": "
|
|
2130
|
+
"description": "User ID",
|
|
2035
2131
|
"in": "query",
|
|
2036
2132
|
"name": "userId",
|
|
2037
2133
|
"type": "string"
|
|
2038
2134
|
},
|
|
2039
2135
|
{
|
|
2040
|
-
"description": "
|
|
2136
|
+
"description": "Username",
|
|
2041
2137
|
"in": "query",
|
|
2042
2138
|
"name": "userName",
|
|
2043
2139
|
"type": "string"
|
|
@@ -2055,12 +2151,12 @@
|
|
|
2055
2151
|
"method": "get"
|
|
2056
2152
|
},
|
|
2057
2153
|
"repo.build.start.post": {
|
|
2058
|
-
"description": "
|
|
2154
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
|
|
2059
2155
|
"operationId": "StartBuild",
|
|
2060
2156
|
"tags": [
|
|
2061
2157
|
"Build"
|
|
2062
2158
|
],
|
|
2063
|
-
"summary": "
|
|
2159
|
+
"summary": "开始一个构建。Start a build.",
|
|
2064
2160
|
"parameters": [
|
|
2065
2161
|
{
|
|
2066
2162
|
"description": "repo",
|
|
@@ -2070,7 +2166,7 @@
|
|
|
2070
2166
|
"type": "string"
|
|
2071
2167
|
},
|
|
2072
2168
|
{
|
|
2073
|
-
"description": "
|
|
2169
|
+
"description": "Build params",
|
|
2074
2170
|
"in": "body",
|
|
2075
2171
|
"name": "request",
|
|
2076
2172
|
"required": true,
|
|
@@ -2094,22 +2190,22 @@
|
|
|
2094
2190
|
"method": "post"
|
|
2095
2191
|
},
|
|
2096
2192
|
"repo.build.status.get": {
|
|
2097
|
-
"description": "
|
|
2193
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:r",
|
|
2098
2194
|
"operationId": "GetBuildStatus",
|
|
2099
2195
|
"tags": [
|
|
2100
2196
|
"Build"
|
|
2101
2197
|
],
|
|
2102
|
-
"summary": "
|
|
2198
|
+
"summary": "查询流水线构建状态。Get pipeline build status.",
|
|
2103
2199
|
"parameters": [
|
|
2104
2200
|
{
|
|
2105
|
-
"description": "
|
|
2201
|
+
"description": "Repo path",
|
|
2106
2202
|
"in": "path",
|
|
2107
2203
|
"name": "repo",
|
|
2108
2204
|
"required": true,
|
|
2109
2205
|
"type": "string"
|
|
2110
2206
|
},
|
|
2111
2207
|
{
|
|
2112
|
-
"description": "
|
|
2208
|
+
"description": "SN",
|
|
2113
2209
|
"in": "path",
|
|
2114
2210
|
"name": "sn",
|
|
2115
2211
|
"required": true,
|
|
@@ -2128,12 +2224,12 @@
|
|
|
2128
2224
|
"method": "get"
|
|
2129
2225
|
},
|
|
2130
2226
|
"repo.build.stop.post": {
|
|
2131
|
-
"description": "
|
|
2227
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-trigger:rw",
|
|
2132
2228
|
"operationId": "StopBuild",
|
|
2133
2229
|
"tags": [
|
|
2134
2230
|
"Build"
|
|
2135
2231
|
],
|
|
2136
|
-
"summary": "
|
|
2232
|
+
"summary": "停止一个构建。 Stop a build.",
|
|
2137
2233
|
"parameters": [
|
|
2138
2234
|
{
|
|
2139
2235
|
"description": "repo",
|
|
@@ -2143,7 +2239,7 @@
|
|
|
2143
2239
|
"type": "string"
|
|
2144
2240
|
},
|
|
2145
2241
|
{
|
|
2146
|
-
"description": "
|
|
2242
|
+
"description": "SN",
|
|
2147
2243
|
"in": "path",
|
|
2148
2244
|
"name": "sn",
|
|
2149
2245
|
"required": true,
|
|
@@ -2165,12 +2261,12 @@
|
|
|
2165
2261
|
"method": "post"
|
|
2166
2262
|
},
|
|
2167
2263
|
"repo.commitAssets.download.get": {
|
|
2168
|
-
"description": "
|
|
2264
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
2169
2265
|
"operationId": "GetCommitAssets",
|
|
2170
2266
|
"tags": [
|
|
2171
2267
|
"Assets"
|
|
2172
2268
|
],
|
|
2173
|
-
"summary": "发起一个获取 commits 附件的请求,返回内容或者 302
|
|
2269
|
+
"summary": "发起一个获取 commits 附件的请求,返回内容或者 302 到某个地址。Get a request to fetch a commit assets and returns the content directly or a 302 redirect to the assets URL.",
|
|
2174
2270
|
"parameters": [
|
|
2175
2271
|
{
|
|
2176
2272
|
"default": "test-group/test-repo",
|
|
@@ -2181,7 +2277,7 @@
|
|
|
2181
2277
|
"type": "string"
|
|
2182
2278
|
},
|
|
2183
2279
|
{
|
|
2184
|
-
"description": "
|
|
2280
|
+
"description": "File path that contain commit hash,eg: 3bba1ce6a8c35ee1264c7449f4f0b512bd751eac/test.png",
|
|
2185
2281
|
"in": "path",
|
|
2186
2282
|
"name": "fileName",
|
|
2187
2283
|
"required": true,
|
|
@@ -2197,12 +2293,12 @@
|
|
|
2197
2293
|
"method": "get"
|
|
2198
2294
|
},
|
|
2199
2295
|
"repo.contributor.trend.get": {
|
|
2200
|
-
"description": "
|
|
2296
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2201
2297
|
"operationId": "GetRepoContributorTrend",
|
|
2202
2298
|
"tags": [
|
|
2203
2299
|
"RepoContributor"
|
|
2204
2300
|
],
|
|
2205
|
-
"summary": "查询仓库贡献者前 100
|
|
2301
|
+
"summary": "查询仓库贡献者前 100 名的详细趋势数据。Query detailed trend data for top 100 contributors of the repository.",
|
|
2206
2302
|
"parameters": [
|
|
2207
2303
|
{
|
|
2208
2304
|
"description": "slug",
|
|
@@ -2250,12 +2346,12 @@
|
|
|
2250
2346
|
"method": "get"
|
|
2251
2347
|
},
|
|
2252
2348
|
"repo.files.get": {
|
|
2253
|
-
"description": "
|
|
2349
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
2254
2350
|
"operationId": "GetFiles",
|
|
2255
2351
|
"tags": [
|
|
2256
2352
|
"Assets"
|
|
2257
2353
|
],
|
|
2258
|
-
"summary": "发起一个获取 files 的请求,返回内容或者 302
|
|
2354
|
+
"summary": "发起一个获取 files 的请求,返回内容或者 302 到某个地址。Initiate a request to retrieve files, returns content or 302 redirect.",
|
|
2259
2355
|
"parameters": [
|
|
2260
2356
|
{
|
|
2261
2357
|
"default": "test-group/test-repo",
|
|
@@ -2296,12 +2392,12 @@
|
|
|
2296
2392
|
"method": "get"
|
|
2297
2393
|
},
|
|
2298
2394
|
"repo.files.put": {
|
|
2299
|
-
"description": "
|
|
2395
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
2300
2396
|
"operationId": "PutFiles",
|
|
2301
2397
|
"tags": [
|
|
2302
2398
|
"Assets"
|
|
2303
2399
|
],
|
|
2304
|
-
"summary": "发起一个确认 files
|
|
2400
|
+
"summary": "发起一个确认 files 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm files, uploaded images need to call this API to take effect.",
|
|
2305
2401
|
"parameters": [
|
|
2306
2402
|
{
|
|
2307
2403
|
"default": "test-group/test-repo",
|
|
@@ -2333,7 +2429,7 @@
|
|
|
2333
2429
|
"type": "string"
|
|
2334
2430
|
},
|
|
2335
2431
|
{
|
|
2336
|
-
"description": "获取 uploadurl 时返回的token",
|
|
2432
|
+
"description": "获取 uploadurl 时返回的token。Token returned when getting upload URL.",
|
|
2337
2433
|
"in": "query",
|
|
2338
2434
|
"name": "token",
|
|
2339
2435
|
"required": true,
|
|
@@ -2348,13 +2444,13 @@
|
|
|
2348
2444
|
"path": "/{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}",
|
|
2349
2445
|
"method": "put"
|
|
2350
2446
|
},
|
|
2351
|
-
"repo.forks.
|
|
2352
|
-
"description": "
|
|
2447
|
+
"repo.forks.get": {
|
|
2448
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
|
|
2353
2449
|
"operationId": "ListForksRepos",
|
|
2354
2450
|
"tags": [
|
|
2355
2451
|
"Repositories"
|
|
2356
2452
|
],
|
|
2357
|
-
"summary": "获取指定仓库的 fork
|
|
2453
|
+
"summary": "获取指定仓库的 fork 列表。Get fork list for specified repository.",
|
|
2358
2454
|
"parameters": [
|
|
2359
2455
|
{
|
|
2360
2456
|
"description": "slug",
|
|
@@ -2363,9 +2459,16 @@
|
|
|
2363
2459
|
"required": true,
|
|
2364
2460
|
"type": "string"
|
|
2365
2461
|
},
|
|
2462
|
+
{
|
|
2463
|
+
"default": false,
|
|
2464
|
+
"description": "从fork根节点开始展示",
|
|
2465
|
+
"in": "query",
|
|
2466
|
+
"name": "start_from_root",
|
|
2467
|
+
"type": "boolean"
|
|
2468
|
+
},
|
|
2366
2469
|
{
|
|
2367
2470
|
"default": 1,
|
|
2368
|
-
"description": "page",
|
|
2471
|
+
"description": "Pagination page number",
|
|
2369
2472
|
"in": "query",
|
|
2370
2473
|
"name": "page",
|
|
2371
2474
|
"required": true,
|
|
@@ -2373,7 +2476,7 @@
|
|
|
2373
2476
|
},
|
|
2374
2477
|
{
|
|
2375
2478
|
"default": 10,
|
|
2376
|
-
"description": "page",
|
|
2479
|
+
"description": "Pagination page size",
|
|
2377
2480
|
"in": "query",
|
|
2378
2481
|
"name": "page_size",
|
|
2379
2482
|
"required": true,
|
|
@@ -2384,10 +2487,7 @@
|
|
|
2384
2487
|
"200": {
|
|
2385
2488
|
"description": "OK",
|
|
2386
2489
|
"schema": {
|
|
2387
|
-
"
|
|
2388
|
-
"$ref": "#/definitions/dto.Forks"
|
|
2389
|
-
},
|
|
2390
|
-
"type": "array"
|
|
2490
|
+
"$ref": "#/definitions/dto.ListForks"
|
|
2391
2491
|
}
|
|
2392
2492
|
}
|
|
2393
2493
|
},
|
|
@@ -2395,12 +2495,12 @@
|
|
|
2395
2495
|
"method": "get"
|
|
2396
2496
|
},
|
|
2397
2497
|
"repo.forks.post": {
|
|
2398
|
-
"description": "
|
|
2498
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-resource:rw",
|
|
2399
2499
|
"operationId": "CreateAFork",
|
|
2400
2500
|
"tags": [
|
|
2401
2501
|
"Repositories"
|
|
2402
2502
|
],
|
|
2403
|
-
"summary": "fork
|
|
2503
|
+
"summary": "fork 仓库。Fork a repository.",
|
|
2404
2504
|
"parameters": [
|
|
2405
2505
|
{
|
|
2406
2506
|
"description": "slug",
|
|
@@ -2428,12 +2528,12 @@
|
|
|
2428
2528
|
"method": "post"
|
|
2429
2529
|
},
|
|
2430
2530
|
"repo.git.archiveCommitChangedFiles.get": {
|
|
2431
|
-
"description": "
|
|
2531
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2432
2532
|
"operationId": "GetArchiveCommitChangedFiles",
|
|
2433
2533
|
"tags": [
|
|
2434
2534
|
"Git"
|
|
2435
2535
|
],
|
|
2436
|
-
"summary": "打包下载 commit
|
|
2536
|
+
"summary": "打包下载 commit 变更文件。Download archive of changed files for a commit.",
|
|
2437
2537
|
"parameters": [
|
|
2438
2538
|
{
|
|
2439
2539
|
"description": "repo",
|
|
@@ -2467,12 +2567,12 @@
|
|
|
2467
2567
|
"method": "get"
|
|
2468
2568
|
},
|
|
2469
2569
|
"repo.git.archiveCompareChangedFiles.get": {
|
|
2470
|
-
"description": "
|
|
2570
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2471
2571
|
"operationId": "GetArchiveCompareChangedFiles",
|
|
2472
2572
|
"tags": [
|
|
2473
2573
|
"Git"
|
|
2474
2574
|
],
|
|
2475
|
-
"summary": "打包下载两次 ref
|
|
2575
|
+
"summary": "打包下载两次 ref 之间的变更文件。Download archive of changed files for a compare.",
|
|
2476
2576
|
"parameters": [
|
|
2477
2577
|
{
|
|
2478
2578
|
"description": "repo",
|
|
@@ -2507,12 +2607,12 @@
|
|
|
2507
2607
|
"method": "get"
|
|
2508
2608
|
},
|
|
2509
2609
|
"repo.git.blobs.post": {
|
|
2510
|
-
"description": "
|
|
2610
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2511
2611
|
"operationId": "CreateBlob",
|
|
2512
2612
|
"tags": [
|
|
2513
2613
|
"Git"
|
|
2514
2614
|
],
|
|
2515
|
-
"summary": "创建一个 blob",
|
|
2615
|
+
"summary": "创建一个 blob。Create a blob.",
|
|
2516
2616
|
"parameters": [
|
|
2517
2617
|
{
|
|
2518
2618
|
"description": "repo",
|
|
@@ -2555,12 +2655,12 @@
|
|
|
2555
2655
|
"method": "post"
|
|
2556
2656
|
},
|
|
2557
2657
|
"repo.git.branches.list": {
|
|
2558
|
-
"description": "
|
|
2658
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2559
2659
|
"operationId": "ListBranches",
|
|
2560
2660
|
"tags": [
|
|
2561
2661
|
"Git"
|
|
2562
2662
|
],
|
|
2563
|
-
"summary": "
|
|
2663
|
+
"summary": "查询分支列表。List branches.",
|
|
2564
2664
|
"parameters": [
|
|
2565
2665
|
{
|
|
2566
2666
|
"description": "repo",
|
|
@@ -2611,12 +2711,12 @@
|
|
|
2611
2711
|
"method": "get"
|
|
2612
2712
|
},
|
|
2613
2713
|
"repo.git.branches.post": {
|
|
2614
|
-
"description": "
|
|
2714
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2615
2715
|
"operationId": "CreateBranch",
|
|
2616
2716
|
"tags": [
|
|
2617
2717
|
"Git"
|
|
2618
2718
|
],
|
|
2619
|
-
"summary": "
|
|
2719
|
+
"summary": "创建新分支。Create a new branch based on a start point.",
|
|
2620
2720
|
"parameters": [
|
|
2621
2721
|
{
|
|
2622
2722
|
"description": "repo",
|
|
@@ -2656,12 +2756,12 @@
|
|
|
2656
2756
|
"method": "post"
|
|
2657
2757
|
},
|
|
2658
2758
|
"repo.git.branches.delete": {
|
|
2659
|
-
"description": "
|
|
2759
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2660
2760
|
"operationId": "DeleteBranch",
|
|
2661
2761
|
"tags": [
|
|
2662
2762
|
"Git"
|
|
2663
2763
|
],
|
|
2664
|
-
"summary": "
|
|
2764
|
+
"summary": "删除指定分支。Delete the specified branch.",
|
|
2665
2765
|
"parameters": [
|
|
2666
2766
|
{
|
|
2667
2767
|
"description": "repo",
|
|
@@ -2699,12 +2799,12 @@
|
|
|
2699
2799
|
"method": "delete"
|
|
2700
2800
|
},
|
|
2701
2801
|
"repo.git.branches.get": {
|
|
2702
|
-
"description": "
|
|
2802
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2703
2803
|
"operationId": "GetBranch",
|
|
2704
2804
|
"tags": [
|
|
2705
2805
|
"Git"
|
|
2706
2806
|
],
|
|
2707
|
-
"summary": "
|
|
2807
|
+
"summary": "查询指定分支。Get a branch.",
|
|
2708
2808
|
"parameters": [
|
|
2709
2809
|
{
|
|
2710
2810
|
"description": "repo",
|
|
@@ -2744,12 +2844,12 @@
|
|
|
2744
2844
|
"method": "get"
|
|
2745
2845
|
},
|
|
2746
2846
|
"repo.git.commitAnnotationsInBatch.post": {
|
|
2747
|
-
"description": "
|
|
2847
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2748
2848
|
"operationId": "GetCommitAnnotationsInBatch",
|
|
2749
2849
|
"tags": [
|
|
2750
2850
|
"Git"
|
|
2751
2851
|
],
|
|
2752
|
-
"summary": "查询指定 commit
|
|
2852
|
+
"summary": "查询指定 commit 的元数据。Get commit annotations in batch.",
|
|
2753
2853
|
"parameters": [
|
|
2754
2854
|
{
|
|
2755
2855
|
"description": "repo",
|
|
@@ -2795,12 +2895,12 @@
|
|
|
2795
2895
|
"method": "post"
|
|
2796
2896
|
},
|
|
2797
2897
|
"repo.git.commitAnnotations.list": {
|
|
2798
|
-
"description": "
|
|
2898
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2799
2899
|
"operationId": "GetCommitAnnotations",
|
|
2800
2900
|
"tags": [
|
|
2801
2901
|
"Git"
|
|
2802
2902
|
],
|
|
2803
|
-
"summary": "查询指定 commit
|
|
2903
|
+
"summary": "查询指定 commit 的元数据。Get commit annotations.",
|
|
2804
2904
|
"parameters": [
|
|
2805
2905
|
{
|
|
2806
2906
|
"description": "repo",
|
|
@@ -2844,12 +2944,12 @@
|
|
|
2844
2944
|
"method": "get"
|
|
2845
2945
|
},
|
|
2846
2946
|
"repo.git.commitAnnotations.put": {
|
|
2847
|
-
"description": "
|
|
2947
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2848
2948
|
"operationId": "PutCommitAnnotations",
|
|
2849
2949
|
"tags": [
|
|
2850
2950
|
"Git"
|
|
2851
2951
|
],
|
|
2852
|
-
"summary": "设定指定 commit
|
|
2952
|
+
"summary": "设定指定 commit 的元数据。Put commit annotations.",
|
|
2853
2953
|
"parameters": [
|
|
2854
2954
|
{
|
|
2855
2955
|
"description": "repo",
|
|
@@ -2896,12 +2996,12 @@
|
|
|
2896
2996
|
"method": "put"
|
|
2897
2997
|
},
|
|
2898
2998
|
"repo.git.commitAnnotations.delete": {
|
|
2899
|
-
"description": "
|
|
2999
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2900
3000
|
"operationId": "DeleteCommitAnnotation",
|
|
2901
3001
|
"tags": [
|
|
2902
3002
|
"Git"
|
|
2903
3003
|
],
|
|
2904
|
-
"summary": "删除指定 commit
|
|
3004
|
+
"summary": "删除指定 commit 的元数据。Delete commit annotation.",
|
|
2905
3005
|
"parameters": [
|
|
2906
3006
|
{
|
|
2907
3007
|
"description": "repo",
|
|
@@ -2946,12 +3046,12 @@
|
|
|
2946
3046
|
"method": "delete"
|
|
2947
3047
|
},
|
|
2948
3048
|
"repo.git.commitAssets.list": {
|
|
2949
|
-
"description": "
|
|
3049
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
2950
3050
|
"operationId": "GetCommitAssetsBySha",
|
|
2951
3051
|
"tags": [
|
|
2952
3052
|
"Git"
|
|
2953
3053
|
],
|
|
2954
|
-
"summary": "查询指定 commit
|
|
3054
|
+
"summary": "查询指定 commit 的附件。List commit assets.",
|
|
2955
3055
|
"parameters": [
|
|
2956
3056
|
{
|
|
2957
3057
|
"description": "repo",
|
|
@@ -2995,12 +3095,12 @@
|
|
|
2995
3095
|
"method": "get"
|
|
2996
3096
|
},
|
|
2997
3097
|
"repo.git.commitAssets.assetUploadConfirmation.post": {
|
|
2998
|
-
"description": "
|
|
3098
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
2999
3099
|
"operationId": "PostCommitAssetUploadConfirmation",
|
|
3000
3100
|
"tags": [
|
|
3001
3101
|
"Git"
|
|
3002
3102
|
],
|
|
3003
|
-
"summary": "确认 Commit asset
|
|
3103
|
+
"summary": "确认 Commit asset 上传完成。Confirm commit asset upload.",
|
|
3004
3104
|
"parameters": [
|
|
3005
3105
|
{
|
|
3006
3106
|
"description": "repo",
|
|
@@ -3014,7 +3114,7 @@
|
|
|
3014
3114
|
"in": "path",
|
|
3015
3115
|
"name": "sha1",
|
|
3016
3116
|
"required": true,
|
|
3017
|
-
"type": "
|
|
3117
|
+
"type": "string"
|
|
3018
3118
|
},
|
|
3019
3119
|
{
|
|
3020
3120
|
"description": "upload token",
|
|
@@ -3052,12 +3152,12 @@
|
|
|
3052
3152
|
"method": "post"
|
|
3053
3153
|
},
|
|
3054
3154
|
"repo.git.commitAssets.assetUploadUrl.post": {
|
|
3055
|
-
"description": "
|
|
3155
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
3056
3156
|
"operationId": "PostCommitAssetUploadURL",
|
|
3057
3157
|
"tags": [
|
|
3058
3158
|
"Git"
|
|
3059
3159
|
],
|
|
3060
|
-
"summary": "新增一个 Commit asset",
|
|
3160
|
+
"summary": "新增一个 Commit asset。Create a commit asset.",
|
|
3061
3161
|
"parameters": [
|
|
3062
3162
|
{
|
|
3063
3163
|
"description": "repo",
|
|
@@ -3071,7 +3171,7 @@
|
|
|
3071
3171
|
"in": "path",
|
|
3072
3172
|
"name": "sha1",
|
|
3073
3173
|
"required": true,
|
|
3074
|
-
"type": "
|
|
3174
|
+
"type": "string"
|
|
3075
3175
|
},
|
|
3076
3176
|
{
|
|
3077
3177
|
"description": "Post Commit Asset Upload URL Form",
|
|
@@ -3107,12 +3207,12 @@
|
|
|
3107
3207
|
"method": "post"
|
|
3108
3208
|
},
|
|
3109
3209
|
"repo.git.commitAssets.delete": {
|
|
3110
|
-
"description": "
|
|
3210
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
3111
3211
|
"operationId": "DeleteCommitAsset",
|
|
3112
3212
|
"tags": [
|
|
3113
3213
|
"Git"
|
|
3114
3214
|
],
|
|
3115
|
-
"summary": "删除指定 commit
|
|
3215
|
+
"summary": "删除指定 commit 的附件。Delete commit asset.",
|
|
3116
3216
|
"parameters": [
|
|
3117
3217
|
{
|
|
3118
3218
|
"description": "repo",
|
|
@@ -3133,7 +3233,7 @@
|
|
|
3133
3233
|
"in": "path",
|
|
3134
3234
|
"name": "asset_id",
|
|
3135
3235
|
"required": true,
|
|
3136
|
-
"type": "
|
|
3236
|
+
"type": "string"
|
|
3137
3237
|
}
|
|
3138
3238
|
],
|
|
3139
3239
|
"responses": {
|
|
@@ -3157,12 +3257,12 @@
|
|
|
3157
3257
|
"method": "delete"
|
|
3158
3258
|
},
|
|
3159
3259
|
"repo.git.commitStatuses.list": {
|
|
3160
|
-
"description": "
|
|
3260
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3161
3261
|
"operationId": "GetCommitStatuses",
|
|
3162
3262
|
"tags": [
|
|
3163
3263
|
"Git"
|
|
3164
3264
|
],
|
|
3165
|
-
"summary": "查询指定 commit 的 check statuses",
|
|
3265
|
+
"summary": "查询指定 commit 的 check statuses。List commit check statuses.",
|
|
3166
3266
|
"parameters": [
|
|
3167
3267
|
{
|
|
3168
3268
|
"description": "repo",
|
|
@@ -3206,12 +3306,12 @@
|
|
|
3206
3306
|
"method": "get"
|
|
3207
3307
|
},
|
|
3208
3308
|
"repo.git.commits.list": {
|
|
3209
|
-
"description": "
|
|
3309
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3210
3310
|
"operationId": "ListCommits",
|
|
3211
3311
|
"tags": [
|
|
3212
3312
|
"Git"
|
|
3213
3313
|
],
|
|
3214
|
-
"summary": "查询 commit
|
|
3314
|
+
"summary": "查询 commit 列表。List commits.",
|
|
3215
3315
|
"parameters": [
|
|
3216
3316
|
{
|
|
3217
3317
|
"description": "repo",
|
|
@@ -3292,12 +3392,12 @@
|
|
|
3292
3392
|
"method": "get"
|
|
3293
3393
|
},
|
|
3294
3394
|
"repo.git.commits.get": {
|
|
3295
|
-
"description": "
|
|
3395
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3296
3396
|
"operationId": "GetCommit",
|
|
3297
3397
|
"tags": [
|
|
3298
3398
|
"Git"
|
|
3299
3399
|
],
|
|
3300
|
-
"summary": "查询指定 commit",
|
|
3400
|
+
"summary": "查询指定 commit。Get a commit.",
|
|
3301
3401
|
"parameters": [
|
|
3302
3402
|
{
|
|
3303
3403
|
"description": "repo",
|
|
@@ -3338,12 +3438,12 @@
|
|
|
3338
3438
|
"method": "get"
|
|
3339
3439
|
},
|
|
3340
3440
|
"repo.git.compare.get": {
|
|
3341
|
-
"description": "
|
|
3441
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3342
3442
|
"operationId": "GetCompareCommits",
|
|
3343
3443
|
"tags": [
|
|
3344
3444
|
"Git"
|
|
3345
3445
|
],
|
|
3346
|
-
"summary": "对比 base...head",
|
|
3446
|
+
"summary": "对比 base...head。Compare two commits.",
|
|
3347
3447
|
"parameters": [
|
|
3348
3448
|
{
|
|
3349
3449
|
"description": "repo",
|
|
@@ -3384,12 +3484,12 @@
|
|
|
3384
3484
|
"method": "get"
|
|
3385
3485
|
},
|
|
3386
3486
|
"repo.git.contents.get": {
|
|
3387
|
-
"description": "
|
|
3487
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3388
3488
|
"operationId": "GetContent",
|
|
3389
3489
|
"tags": [
|
|
3390
3490
|
"Git"
|
|
3391
3491
|
],
|
|
3392
|
-
"summary": "
|
|
3492
|
+
"summary": "查询仓库文件列表或文件。List repository files or file.",
|
|
3393
3493
|
"parameters": [
|
|
3394
3494
|
{
|
|
3395
3495
|
"description": "repo",
|
|
@@ -3435,13 +3535,62 @@
|
|
|
3435
3535
|
"path": "/{repo}/-/git/contents/{file_path}",
|
|
3436
3536
|
"method": "get"
|
|
3437
3537
|
},
|
|
3538
|
+
"repo.git.deferredCommits.list": {
|
|
3539
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3540
|
+
"operationId": "ListDeferredCommits",
|
|
3541
|
+
"tags": [
|
|
3542
|
+
"Git"
|
|
3543
|
+
],
|
|
3544
|
+
"summary": "查询 deferred commit 列表",
|
|
3545
|
+
"parameters": [
|
|
3546
|
+
{
|
|
3547
|
+
"description": "repo",
|
|
3548
|
+
"in": "path",
|
|
3549
|
+
"name": "repo",
|
|
3550
|
+
"required": true,
|
|
3551
|
+
"type": "string"
|
|
3552
|
+
},
|
|
3553
|
+
{
|
|
3554
|
+
"description": "commit sha",
|
|
3555
|
+
"in": "query",
|
|
3556
|
+
"name": "cs",
|
|
3557
|
+
"required": true,
|
|
3558
|
+
"type": "string"
|
|
3559
|
+
}
|
|
3560
|
+
],
|
|
3561
|
+
"responses": {
|
|
3562
|
+
"200": {
|
|
3563
|
+
"description": "OK",
|
|
3564
|
+
"schema": {
|
|
3565
|
+
"items": {
|
|
3566
|
+
"$ref": "#/definitions/web.DeferredCommit"
|
|
3567
|
+
},
|
|
3568
|
+
"type": "array"
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
"404": {
|
|
3572
|
+
"description": "Not Found",
|
|
3573
|
+
"schema": {
|
|
3574
|
+
"$ref": "#/definitions/die.WebError"
|
|
3575
|
+
}
|
|
3576
|
+
},
|
|
3577
|
+
"500": {
|
|
3578
|
+
"description": "Internal Server Error",
|
|
3579
|
+
"schema": {
|
|
3580
|
+
"$ref": "#/definitions/die.WebError"
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
},
|
|
3584
|
+
"path": "/{repo}/-/git/deferred-commits",
|
|
3585
|
+
"method": "get"
|
|
3586
|
+
},
|
|
3438
3587
|
"repo.git.head.get": {
|
|
3439
|
-
"description": "
|
|
3588
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
3440
3589
|
"operationId": "GetHead",
|
|
3441
3590
|
"tags": [
|
|
3442
3591
|
"Git"
|
|
3443
3592
|
],
|
|
3444
|
-
"summary": "
|
|
3593
|
+
"summary": "获取仓库默认分支。Get the default branch of the repository.",
|
|
3445
3594
|
"parameters": [
|
|
3446
3595
|
{
|
|
3447
3596
|
"description": "repo",
|
|
@@ -3475,12 +3624,12 @@
|
|
|
3475
3624
|
"method": "get"
|
|
3476
3625
|
},
|
|
3477
3626
|
"repo.git.tagAnnotations.delete": {
|
|
3478
|
-
"description": "
|
|
3627
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
3479
3628
|
"operationId": "DeleteTagAnnotation",
|
|
3480
3629
|
"tags": [
|
|
3481
3630
|
"Git"
|
|
3482
3631
|
],
|
|
3483
|
-
"summary": "删除指定 tag
|
|
3632
|
+
"summary": "删除指定 tag 的元数据。Delete the metadata of the specified tag.",
|
|
3484
3633
|
"parameters": [
|
|
3485
3634
|
{
|
|
3486
3635
|
"description": "repo",
|
|
@@ -3518,12 +3667,12 @@
|
|
|
3518
3667
|
"method": "delete"
|
|
3519
3668
|
},
|
|
3520
3669
|
"repo.git.tagAnnotations.list": {
|
|
3521
|
-
"description": "
|
|
3670
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
3522
3671
|
"operationId": "GetTagAnnotations",
|
|
3523
3672
|
"tags": [
|
|
3524
3673
|
"Git"
|
|
3525
3674
|
],
|
|
3526
|
-
"summary": "查询指定 tag
|
|
3675
|
+
"summary": "查询指定 tag 的元数据。Query the metadata of the specified tag.",
|
|
3527
3676
|
"parameters": [
|
|
3528
3677
|
{
|
|
3529
3678
|
"description": "repo",
|
|
@@ -3567,12 +3716,12 @@
|
|
|
3567
3716
|
"method": "get"
|
|
3568
3717
|
},
|
|
3569
3718
|
"repo.git.tagAnnotations.put": {
|
|
3570
|
-
"description": "
|
|
3719
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
3571
3720
|
"operationId": "PutTagAnnotations",
|
|
3572
3721
|
"tags": [
|
|
3573
3722
|
"Git"
|
|
3574
3723
|
],
|
|
3575
|
-
"summary": "设定指定 tag
|
|
3724
|
+
"summary": "设定指定 tag 的元数据。Set the metadata of the specified tag.",
|
|
3576
3725
|
"parameters": [
|
|
3577
3726
|
{
|
|
3578
3727
|
"description": "repo",
|
|
@@ -3619,12 +3768,12 @@
|
|
|
3619
3768
|
"method": "put"
|
|
3620
3769
|
},
|
|
3621
3770
|
"repo.git.tags.list": {
|
|
3622
|
-
"description": "
|
|
3771
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
3623
3772
|
"operationId": "ListTags",
|
|
3624
3773
|
"tags": [
|
|
3625
3774
|
"Git"
|
|
3626
3775
|
],
|
|
3627
|
-
"summary": "
|
|
3776
|
+
"summary": "查询标签列表。List tags.",
|
|
3628
3777
|
"parameters": [
|
|
3629
3778
|
{
|
|
3630
3779
|
"description": "repo",
|
|
@@ -3675,12 +3824,12 @@
|
|
|
3675
3824
|
"method": "get"
|
|
3676
3825
|
},
|
|
3677
3826
|
"repo.git.tags.post": {
|
|
3678
|
-
"description": "
|
|
3827
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
3679
3828
|
"operationId": "CreateTag",
|
|
3680
3829
|
"tags": [
|
|
3681
3830
|
"Git"
|
|
3682
3831
|
],
|
|
3683
|
-
"summary": "创建一个 tag",
|
|
3832
|
+
"summary": "创建一个 tag。Create a tag.",
|
|
3684
3833
|
"parameters": [
|
|
3685
3834
|
{
|
|
3686
3835
|
"description": "repo",
|
|
@@ -3723,12 +3872,12 @@
|
|
|
3723
3872
|
"method": "post"
|
|
3724
3873
|
},
|
|
3725
3874
|
"repo.git.tags.delete": {
|
|
3726
|
-
"description": "
|
|
3875
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
3727
3876
|
"operationId": "DeleteTag",
|
|
3728
3877
|
"tags": [
|
|
3729
3878
|
"Git"
|
|
3730
3879
|
],
|
|
3731
|
-
"summary": "
|
|
3880
|
+
"summary": "删除指定标签。Delete the specified tag.",
|
|
3732
3881
|
"parameters": [
|
|
3733
3882
|
{
|
|
3734
3883
|
"description": "repo",
|
|
@@ -3766,12 +3915,12 @@
|
|
|
3766
3915
|
"method": "delete"
|
|
3767
3916
|
},
|
|
3768
3917
|
"repo.git.tags.get": {
|
|
3769
|
-
"description": "
|
|
3918
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
3770
3919
|
"operationId": "GetTag",
|
|
3771
3920
|
"tags": [
|
|
3772
3921
|
"Git"
|
|
3773
3922
|
],
|
|
3774
|
-
"summary": "查询指定 Tag",
|
|
3923
|
+
"summary": "查询指定 Tag。Get a tag.",
|
|
3775
3924
|
"parameters": [
|
|
3776
3925
|
{
|
|
3777
3926
|
"description": "repo",
|
|
@@ -3812,12 +3961,12 @@
|
|
|
3812
3961
|
"method": "get"
|
|
3813
3962
|
},
|
|
3814
3963
|
"repo.imgs.get": {
|
|
3815
|
-
"description": "
|
|
3964
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
3816
3965
|
"operationId": "GetImgs",
|
|
3817
3966
|
"tags": [
|
|
3818
3967
|
"Assets"
|
|
3819
3968
|
],
|
|
3820
|
-
"summary": "发起一个获取 imgs 的请求,返回内容或者 302
|
|
3969
|
+
"summary": "发起一个获取 imgs 的请求,返回内容或者 302 到某个地址。Initiate a request to get images, returns content or 302 redirect.",
|
|
3821
3970
|
"parameters": [
|
|
3822
3971
|
{
|
|
3823
3972
|
"default": "test-group/test-repo",
|
|
@@ -3851,12 +4000,12 @@
|
|
|
3851
4000
|
"method": "get"
|
|
3852
4001
|
},
|
|
3853
4002
|
"repo.imgs.put": {
|
|
3854
|
-
"description": "
|
|
4003
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
3855
4004
|
"operationId": "PutImgs",
|
|
3856
4005
|
"tags": [
|
|
3857
4006
|
"Assets"
|
|
3858
4007
|
],
|
|
3859
|
-
"summary": "发起一个确认 imgs
|
|
4008
|
+
"summary": "发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm images, uploaded images need to call this API to take effect.",
|
|
3860
4009
|
"parameters": [
|
|
3861
4010
|
{
|
|
3862
4011
|
"default": "test-group/test-repo",
|
|
@@ -3881,7 +4030,7 @@
|
|
|
3881
4030
|
"type": "string"
|
|
3882
4031
|
},
|
|
3883
4032
|
{
|
|
3884
|
-
"description": "获取 uploadurl 时返回的token",
|
|
4033
|
+
"description": "获取 uploadurl 时返回的token。Token returned when getting upload URL.",
|
|
3885
4034
|
"in": "query",
|
|
3886
4035
|
"name": "token",
|
|
3887
4036
|
"required": true,
|
|
@@ -3897,12 +4046,12 @@
|
|
|
3897
4046
|
"method": "put"
|
|
3898
4047
|
},
|
|
3899
4048
|
"repo.inheritMembers.list": {
|
|
3900
|
-
"description": "
|
|
4049
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
3901
4050
|
"operationId": "ListInheritMembersOfRepo",
|
|
3902
4051
|
"tags": [
|
|
3903
4052
|
"Collaborators"
|
|
3904
4053
|
],
|
|
3905
|
-
"summary": "
|
|
4054
|
+
"summary": "获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。",
|
|
3906
4055
|
"parameters": [
|
|
3907
4056
|
{
|
|
3908
4057
|
"description": "slug",
|
|
@@ -3913,13 +4062,13 @@
|
|
|
3913
4062
|
},
|
|
3914
4063
|
{
|
|
3915
4064
|
"default": "",
|
|
3916
|
-
"description": "
|
|
4065
|
+
"description": "过滤成员。Filter by member",
|
|
3917
4066
|
"in": "query",
|
|
3918
4067
|
"name": "search",
|
|
3919
4068
|
"type": "string"
|
|
3920
4069
|
},
|
|
3921
4070
|
{
|
|
3922
|
-
"description": "
|
|
4071
|
+
"description": "Role",
|
|
3923
4072
|
"enum": [
|
|
3924
4073
|
"Guest",
|
|
3925
4074
|
"Reporter",
|
|
@@ -3933,14 +4082,14 @@
|
|
|
3933
4082
|
},
|
|
3934
4083
|
{
|
|
3935
4084
|
"default": 1,
|
|
3936
|
-
"description": "
|
|
4085
|
+
"description": "Pagination page number",
|
|
3937
4086
|
"in": "query",
|
|
3938
4087
|
"name": "page",
|
|
3939
4088
|
"type": "integer"
|
|
3940
4089
|
},
|
|
3941
4090
|
{
|
|
3942
4091
|
"default": 10,
|
|
3943
|
-
"description": "
|
|
4092
|
+
"description": "Pagination page size",
|
|
3944
4093
|
"in": "query",
|
|
3945
4094
|
"name": "page_size",
|
|
3946
4095
|
"type": "integer"
|
|
@@ -3961,12 +4110,12 @@
|
|
|
3961
4110
|
"method": "get"
|
|
3962
4111
|
},
|
|
3963
4112
|
"repo.issues.list": {
|
|
3964
|
-
"description": "
|
|
4113
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
3965
4114
|
"operationId": "ListIssues",
|
|
3966
4115
|
"tags": [
|
|
3967
4116
|
"Issues"
|
|
3968
4117
|
],
|
|
3969
|
-
"summary": "查询仓库的 Issues",
|
|
4118
|
+
"summary": "查询仓库的 Issues。List issues.",
|
|
3970
4119
|
"parameters": [
|
|
3971
4120
|
{
|
|
3972
4121
|
"description": "repo",
|
|
@@ -4037,6 +4186,18 @@
|
|
|
4037
4186
|
"name": "updated_time_end",
|
|
4038
4187
|
"type": "string"
|
|
4039
4188
|
},
|
|
4189
|
+
{
|
|
4190
|
+
"description": "issue filter close time begin example: 2022-01-31",
|
|
4191
|
+
"in": "query",
|
|
4192
|
+
"name": "close_time_begin",
|
|
4193
|
+
"type": "string"
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
"description": "issue filter close time end, example: 2022-01-31",
|
|
4197
|
+
"in": "query",
|
|
4198
|
+
"name": "close_time_end",
|
|
4199
|
+
"type": "string"
|
|
4200
|
+
},
|
|
4040
4201
|
{
|
|
4041
4202
|
"description": "issue order, example: created_at, -updated_at, reference_count。‘-’ prefix means descending order",
|
|
4042
4203
|
"in": "query",
|
|
@@ -4071,12 +4232,12 @@
|
|
|
4071
4232
|
"method": "get"
|
|
4072
4233
|
},
|
|
4073
4234
|
"repo.issues.post": {
|
|
4074
|
-
"description": "
|
|
4235
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4075
4236
|
"operationId": "CreateIssue",
|
|
4076
4237
|
"tags": [
|
|
4077
4238
|
"Issues"
|
|
4078
4239
|
],
|
|
4079
|
-
"summary": "创建一个 Issue",
|
|
4240
|
+
"summary": "创建一个 Issue。Create an issue.",
|
|
4080
4241
|
"parameters": [
|
|
4081
4242
|
{
|
|
4082
4243
|
"description": "repo",
|
|
@@ -4119,12 +4280,12 @@
|
|
|
4119
4280
|
"method": "post"
|
|
4120
4281
|
},
|
|
4121
4282
|
"repo.issues.get": {
|
|
4122
|
-
"description": "
|
|
4283
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4123
4284
|
"operationId": "GetIssue",
|
|
4124
4285
|
"tags": [
|
|
4125
4286
|
"Issues"
|
|
4126
4287
|
],
|
|
4127
|
-
"summary": "查询指定的 Issues",
|
|
4288
|
+
"summary": "查询指定的 Issues。Get an issue.",
|
|
4128
4289
|
"parameters": [
|
|
4129
4290
|
{
|
|
4130
4291
|
"description": "repo",
|
|
@@ -4165,12 +4326,12 @@
|
|
|
4165
4326
|
"method": "get"
|
|
4166
4327
|
},
|
|
4167
4328
|
"repo.issues.patch": {
|
|
4168
|
-
"description": "
|
|
4329
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4169
4330
|
"operationId": "UpdateIssue",
|
|
4170
4331
|
"tags": [
|
|
4171
4332
|
"Issues"
|
|
4172
4333
|
],
|
|
4173
|
-
"summary": "更新一个 Issue",
|
|
4334
|
+
"summary": "更新一个 Issue。Update an issue.",
|
|
4174
4335
|
"parameters": [
|
|
4175
4336
|
{
|
|
4176
4337
|
"description": "repo",
|
|
@@ -4219,13 +4380,120 @@
|
|
|
4219
4380
|
"path": "/{repo}/-/issues/{number}",
|
|
4220
4381
|
"method": "patch"
|
|
4221
4382
|
},
|
|
4383
|
+
"repo.issues.assignees.list": {
|
|
4384
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4385
|
+
"operationId": "ListIssueAssignees",
|
|
4386
|
+
"tags": [
|
|
4387
|
+
"Issues"
|
|
4388
|
+
],
|
|
4389
|
+
"summary": "查询指定 Issue 的 Assignees。 List repository issue assignees.",
|
|
4390
|
+
"parameters": [
|
|
4391
|
+
{
|
|
4392
|
+
"description": "repo",
|
|
4393
|
+
"in": "path",
|
|
4394
|
+
"name": "repo",
|
|
4395
|
+
"required": true,
|
|
4396
|
+
"type": "string"
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
"description": "issue number",
|
|
4400
|
+
"in": "path",
|
|
4401
|
+
"name": "number",
|
|
4402
|
+
"required": true,
|
|
4403
|
+
"type": "string"
|
|
4404
|
+
}
|
|
4405
|
+
],
|
|
4406
|
+
"responses": {
|
|
4407
|
+
"200": {
|
|
4408
|
+
"description": "OK",
|
|
4409
|
+
"schema": {
|
|
4410
|
+
"items": {
|
|
4411
|
+
"$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_vcs_service_bff_api.UserInfo"
|
|
4412
|
+
},
|
|
4413
|
+
"type": "array"
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
"404": {
|
|
4417
|
+
"description": "Not Found",
|
|
4418
|
+
"schema": {
|
|
4419
|
+
"$ref": "#/definitions/die.WebError"
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"500": {
|
|
4423
|
+
"description": "Internal Server Error",
|
|
4424
|
+
"schema": {
|
|
4425
|
+
"$ref": "#/definitions/die.WebError"
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4429
|
+
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4430
|
+
"method": "get"
|
|
4431
|
+
},
|
|
4432
|
+
"repo.issues.assignees.post": {
|
|
4433
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4434
|
+
"operationId": "PostIssueAssignees",
|
|
4435
|
+
"tags": [
|
|
4436
|
+
"Issues"
|
|
4437
|
+
],
|
|
4438
|
+
"summary": "添加 Assignees 到指定的 Issue。 Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.",
|
|
4439
|
+
"parameters": [
|
|
4440
|
+
{
|
|
4441
|
+
"description": "repo",
|
|
4442
|
+
"in": "path",
|
|
4443
|
+
"name": "repo",
|
|
4444
|
+
"required": true,
|
|
4445
|
+
"type": "string"
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"description": "issue number",
|
|
4449
|
+
"in": "path",
|
|
4450
|
+
"name": "number",
|
|
4451
|
+
"required": true,
|
|
4452
|
+
"type": "string"
|
|
4453
|
+
},
|
|
4454
|
+
{
|
|
4455
|
+
"description": "Post Issue Assignees Form",
|
|
4456
|
+
"in": "body",
|
|
4457
|
+
"name": "post_issue_assignees_form",
|
|
4458
|
+
"required": true,
|
|
4459
|
+
"schema": {
|
|
4460
|
+
"$ref": "#/definitions/api.PostIssueAssigneesForm"
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4463
|
+
],
|
|
4464
|
+
"responses": {
|
|
4465
|
+
"201": {
|
|
4466
|
+
"description": "Created",
|
|
4467
|
+
"schema": {
|
|
4468
|
+
"items": {
|
|
4469
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4470
|
+
},
|
|
4471
|
+
"type": "array"
|
|
4472
|
+
}
|
|
4473
|
+
},
|
|
4474
|
+
"404": {
|
|
4475
|
+
"description": "Not Found",
|
|
4476
|
+
"schema": {
|
|
4477
|
+
"$ref": "#/definitions/die.WebError"
|
|
4478
|
+
}
|
|
4479
|
+
},
|
|
4480
|
+
"500": {
|
|
4481
|
+
"description": "Internal Server Error",
|
|
4482
|
+
"schema": {
|
|
4483
|
+
"$ref": "#/definitions/die.WebError"
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4486
|
+
},
|
|
4487
|
+
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4488
|
+
"method": "post"
|
|
4489
|
+
},
|
|
4222
4490
|
"repo.issues.comments.list": {
|
|
4223
|
-
"description": "
|
|
4491
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4224
4492
|
"operationId": "ListIssueComments",
|
|
4225
4493
|
"tags": [
|
|
4226
4494
|
"Issues"
|
|
4227
4495
|
],
|
|
4228
|
-
"summary": "查询仓库的 Issue
|
|
4496
|
+
"summary": "查询仓库的 Issue 评论列表。List repository issue comments.",
|
|
4229
4497
|
"parameters": [
|
|
4230
4498
|
{
|
|
4231
4499
|
"description": "repo",
|
|
@@ -4283,12 +4551,12 @@
|
|
|
4283
4551
|
"method": "get"
|
|
4284
4552
|
},
|
|
4285
4553
|
"repo.issues.comments.post": {
|
|
4286
|
-
"description": "
|
|
4554
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4287
4555
|
"operationId": "PostIssueComment",
|
|
4288
4556
|
"tags": [
|
|
4289
4557
|
"Issues"
|
|
4290
4558
|
],
|
|
4291
|
-
"summary": "创建一个 Issue Comment",
|
|
4559
|
+
"summary": "创建一个 Issue Comment。Create an issue comment.",
|
|
4292
4560
|
"parameters": [
|
|
4293
4561
|
{
|
|
4294
4562
|
"description": "repo",
|
|
@@ -4338,12 +4606,12 @@
|
|
|
4338
4606
|
"method": "post"
|
|
4339
4607
|
},
|
|
4340
4608
|
"repo.issues.comments.get": {
|
|
4341
|
-
"description": "
|
|
4609
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4342
4610
|
"operationId": "GetIssueComment",
|
|
4343
4611
|
"tags": [
|
|
4344
4612
|
"Issues"
|
|
4345
4613
|
],
|
|
4346
|
-
"summary": "获取一个 Issue Comment",
|
|
4614
|
+
"summary": "获取一个 Issue Comment。Get an issue comment.",
|
|
4347
4615
|
"parameters": [
|
|
4348
4616
|
{
|
|
4349
4617
|
"description": "repo",
|
|
@@ -4357,14 +4625,14 @@
|
|
|
4357
4625
|
"in": "path",
|
|
4358
4626
|
"name": "number",
|
|
4359
4627
|
"required": true,
|
|
4360
|
-
"type": "
|
|
4628
|
+
"type": "string"
|
|
4361
4629
|
},
|
|
4362
4630
|
{
|
|
4363
4631
|
"description": "comment_id",
|
|
4364
4632
|
"in": "path",
|
|
4365
4633
|
"name": "comment_id",
|
|
4366
4634
|
"required": true,
|
|
4367
|
-
"type": "
|
|
4635
|
+
"type": "string"
|
|
4368
4636
|
}
|
|
4369
4637
|
],
|
|
4370
4638
|
"responses": {
|
|
@@ -4391,12 +4659,12 @@
|
|
|
4391
4659
|
"method": "get"
|
|
4392
4660
|
},
|
|
4393
4661
|
"repo.issues.comments.patch": {
|
|
4394
|
-
"description": "
|
|
4662
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4395
4663
|
"operationId": "PatchIssueComment",
|
|
4396
4664
|
"tags": [
|
|
4397
4665
|
"Issues"
|
|
4398
4666
|
],
|
|
4399
|
-
"summary": "修改一个 Issue Comment",
|
|
4667
|
+
"summary": "修改一个 Issue Comment。Update an issue comment.",
|
|
4400
4668
|
"parameters": [
|
|
4401
4669
|
{
|
|
4402
4670
|
"description": "repo",
|
|
@@ -4453,12 +4721,12 @@
|
|
|
4453
4721
|
"method": "patch"
|
|
4454
4722
|
},
|
|
4455
4723
|
"repo.issues.labels.delete": {
|
|
4456
|
-
"description": "
|
|
4724
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4457
4725
|
"operationId": "DeleteIssueLabels",
|
|
4458
4726
|
"tags": [
|
|
4459
4727
|
"Issues"
|
|
4460
4728
|
],
|
|
4461
|
-
"summary": "清空 Issue
|
|
4729
|
+
"summary": "清空 Issue 标签。Remove all labels from an issue.",
|
|
4462
4730
|
"parameters": [
|
|
4463
4731
|
{
|
|
4464
4732
|
"description": "repo",
|
|
@@ -4496,12 +4764,12 @@
|
|
|
4496
4764
|
"method": "delete"
|
|
4497
4765
|
},
|
|
4498
4766
|
"repo.issues.labels.list": {
|
|
4499
|
-
"description": "
|
|
4767
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4500
4768
|
"operationId": "ListIssueLabels",
|
|
4501
4769
|
"tags": [
|
|
4502
4770
|
"Issues"
|
|
4503
4771
|
],
|
|
4504
|
-
"summary": "查询 Issue 的标签(label)
|
|
4772
|
+
"summary": "查询 Issue 的标签(label) 列表。List labels for an issue.",
|
|
4505
4773
|
"parameters": [
|
|
4506
4774
|
{
|
|
4507
4775
|
"description": "repo",
|
|
@@ -4559,12 +4827,12 @@
|
|
|
4559
4827
|
"method": "get"
|
|
4560
4828
|
},
|
|
4561
4829
|
"repo.issues.labels.post": {
|
|
4562
|
-
"description": "
|
|
4830
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4563
4831
|
"operationId": "PostIssueLabels",
|
|
4564
4832
|
"tags": [
|
|
4565
4833
|
"Issues"
|
|
4566
4834
|
],
|
|
4567
|
-
"summary": "新增 Issue
|
|
4835
|
+
"summary": "新增 Issue 标签。Add labels to an issue.",
|
|
4568
4836
|
"parameters": [
|
|
4569
4837
|
{
|
|
4570
4838
|
"description": "repo",
|
|
@@ -4614,12 +4882,12 @@
|
|
|
4614
4882
|
"method": "post"
|
|
4615
4883
|
},
|
|
4616
4884
|
"repo.issues.labels.put": {
|
|
4617
|
-
"description": "
|
|
4885
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4618
4886
|
"operationId": "PutIssueLabels",
|
|
4619
4887
|
"tags": [
|
|
4620
4888
|
"Issues"
|
|
4621
4889
|
],
|
|
4622
|
-
"summary": "设置 Issue
|
|
4890
|
+
"summary": "设置 Issue 标签。 Set the new labels for an issue.",
|
|
4623
4891
|
"parameters": [
|
|
4624
4892
|
{
|
|
4625
4893
|
"description": "repo",
|
|
@@ -4669,12 +4937,12 @@
|
|
|
4669
4937
|
"method": "put"
|
|
4670
4938
|
},
|
|
4671
4939
|
"repo.issues.labels.deleteByName": {
|
|
4672
|
-
"description": "
|
|
4940
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4673
4941
|
"operationId": "DeleteIssueLabel",
|
|
4674
4942
|
"tags": [
|
|
4675
4943
|
"Issues"
|
|
4676
4944
|
],
|
|
4677
|
-
"summary": "删除 Issue
|
|
4945
|
+
"summary": "删除 Issue 标签。Remove a label from an issue.",
|
|
4678
4946
|
"parameters": [
|
|
4679
4947
|
{
|
|
4680
4948
|
"description": "repo",
|
|
@@ -4722,12 +4990,12 @@
|
|
|
4722
4990
|
"method": "delete"
|
|
4723
4991
|
},
|
|
4724
4992
|
"repo.labels.list": {
|
|
4725
|
-
"description": "
|
|
4993
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4726
4994
|
"operationId": "ListLabels",
|
|
4727
4995
|
"tags": [
|
|
4728
4996
|
"RepoLabels"
|
|
4729
4997
|
],
|
|
4730
|
-
"summary": "查询仓库的标签(label)
|
|
4998
|
+
"summary": "查询仓库的标签(label) 列表。List repository labels.",
|
|
4731
4999
|
"parameters": [
|
|
4732
5000
|
{
|
|
4733
5001
|
"description": "repo",
|
|
@@ -4784,12 +5052,12 @@
|
|
|
4784
5052
|
"method": "get"
|
|
4785
5053
|
},
|
|
4786
5054
|
"repo.labels.post": {
|
|
4787
|
-
"description": "
|
|
5055
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4788
5056
|
"operationId": "PostLabel",
|
|
4789
5057
|
"tags": [
|
|
4790
5058
|
"RepoLabels"
|
|
4791
5059
|
],
|
|
4792
|
-
"summary": "创建一个
|
|
5060
|
+
"summary": "创建一个 标签。Create a label.",
|
|
4793
5061
|
"parameters": [
|
|
4794
5062
|
{
|
|
4795
5063
|
"description": "repo",
|
|
@@ -4832,12 +5100,12 @@
|
|
|
4832
5100
|
"method": "post"
|
|
4833
5101
|
},
|
|
4834
5102
|
"repo.labels.delete": {
|
|
4835
|
-
"description": "
|
|
5103
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4836
5104
|
"operationId": "DeleteLabel",
|
|
4837
5105
|
"tags": [
|
|
4838
5106
|
"RepoLabels"
|
|
4839
5107
|
],
|
|
4840
|
-
"summary": "删除指定的仓库标签 label",
|
|
5108
|
+
"summary": "删除指定的仓库标签 label。Delete the specified repository label.",
|
|
4841
5109
|
"parameters": [
|
|
4842
5110
|
{
|
|
4843
5111
|
"description": "repo",
|
|
@@ -4875,12 +5143,12 @@
|
|
|
4875
5143
|
"method": "delete"
|
|
4876
5144
|
},
|
|
4877
5145
|
"repo.labels.patch": {
|
|
4878
|
-
"description": "
|
|
5146
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4879
5147
|
"operationId": "PatchLabel",
|
|
4880
5148
|
"tags": [
|
|
4881
5149
|
"RepoLabels"
|
|
4882
5150
|
],
|
|
4883
|
-
"summary": "
|
|
5151
|
+
"summary": "更新标签信息。Update label information.",
|
|
4884
5152
|
"parameters": [
|
|
4885
5153
|
{
|
|
4886
5154
|
"description": "repo",
|
|
@@ -4930,12 +5198,12 @@
|
|
|
4930
5198
|
"method": "patch"
|
|
4931
5199
|
},
|
|
4932
5200
|
"repo.listMembers.list": {
|
|
4933
|
-
"description": "
|
|
5201
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
4934
5202
|
"operationId": "ListAllMembers",
|
|
4935
5203
|
"tags": [
|
|
4936
5204
|
"Collaborators"
|
|
4937
5205
|
],
|
|
4938
|
-
"summary": "
|
|
5206
|
+
"summary": "获取指定仓库内的有效成员列表,包含继承成员。List active members in specified repository including inherited members.",
|
|
4939
5207
|
"parameters": [
|
|
4940
5208
|
{
|
|
4941
5209
|
"description": "slug",
|
|
@@ -4946,20 +5214,20 @@
|
|
|
4946
5214
|
},
|
|
4947
5215
|
{
|
|
4948
5216
|
"default": 1,
|
|
4949
|
-
"description": "
|
|
5217
|
+
"description": "Pagination page number",
|
|
4950
5218
|
"in": "query",
|
|
4951
5219
|
"name": "page",
|
|
4952
5220
|
"type": "integer"
|
|
4953
5221
|
},
|
|
4954
5222
|
{
|
|
4955
5223
|
"default": 10,
|
|
4956
|
-
"description": "
|
|
5224
|
+
"description": "Pagination page size",
|
|
4957
5225
|
"in": "query",
|
|
4958
5226
|
"name": "page_size",
|
|
4959
5227
|
"type": "integer"
|
|
4960
5228
|
},
|
|
4961
5229
|
{
|
|
4962
|
-
"description": "
|
|
5230
|
+
"description": "Role",
|
|
4963
5231
|
"enum": [
|
|
4964
5232
|
"Guest",
|
|
4965
5233
|
"Reporter",
|
|
@@ -4973,20 +5241,20 @@
|
|
|
4973
5241
|
},
|
|
4974
5242
|
{
|
|
4975
5243
|
"default": "",
|
|
4976
|
-
"description": "
|
|
5244
|
+
"description": "过滤成员。Filter by member",
|
|
4977
5245
|
"in": "query",
|
|
4978
5246
|
"name": "search",
|
|
4979
5247
|
"type": "string"
|
|
4980
5248
|
},
|
|
4981
5249
|
{
|
|
4982
5250
|
"default": "",
|
|
4983
|
-
"description": "
|
|
5251
|
+
"description": "精准匹配用户名,多个用户名用逗号间隔。Exact username matching, multiple usernames separated by commas.",
|
|
4984
5252
|
"in": "query",
|
|
4985
5253
|
"name": "names",
|
|
4986
5254
|
"type": "string"
|
|
4987
5255
|
},
|
|
4988
5256
|
{
|
|
4989
|
-
"description": "
|
|
5257
|
+
"description": "Order field,default(created_at)",
|
|
4990
5258
|
"enum": [
|
|
4991
5259
|
"created_at",
|
|
4992
5260
|
"stars",
|
|
@@ -4998,7 +5266,7 @@
|
|
|
4998
5266
|
},
|
|
4999
5267
|
{
|
|
5000
5268
|
"default": false,
|
|
5001
|
-
"description": "
|
|
5269
|
+
"description": "Ordering",
|
|
5002
5270
|
"in": "query",
|
|
5003
5271
|
"name": "desc",
|
|
5004
5272
|
"type": "boolean"
|
|
@@ -5019,12 +5287,12 @@
|
|
|
5019
5287
|
"method": "get"
|
|
5020
5288
|
},
|
|
5021
5289
|
"repo.members.list": {
|
|
5022
|
-
"description": "
|
|
5290
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5023
5291
|
"operationId": "ListMembersOfRepo",
|
|
5024
5292
|
"tags": [
|
|
5025
5293
|
"Collaborators"
|
|
5026
5294
|
],
|
|
5027
|
-
"summary": "
|
|
5295
|
+
"summary": "获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.",
|
|
5028
5296
|
"parameters": [
|
|
5029
5297
|
{
|
|
5030
5298
|
"description": "slug",
|
|
@@ -5035,20 +5303,20 @@
|
|
|
5035
5303
|
},
|
|
5036
5304
|
{
|
|
5037
5305
|
"default": 1,
|
|
5038
|
-
"description": "
|
|
5306
|
+
"description": "Pagination page number",
|
|
5039
5307
|
"in": "query",
|
|
5040
5308
|
"name": "page",
|
|
5041
5309
|
"type": "integer"
|
|
5042
5310
|
},
|
|
5043
5311
|
{
|
|
5044
5312
|
"default": 10,
|
|
5045
|
-
"description": "
|
|
5313
|
+
"description": "Pagination page size",
|
|
5046
5314
|
"in": "query",
|
|
5047
5315
|
"name": "page_size",
|
|
5048
5316
|
"type": "integer"
|
|
5049
5317
|
},
|
|
5050
5318
|
{
|
|
5051
|
-
"description": "
|
|
5319
|
+
"description": "Role",
|
|
5052
5320
|
"enum": [
|
|
5053
5321
|
"Guest",
|
|
5054
5322
|
"Reporter",
|
|
@@ -5062,7 +5330,7 @@
|
|
|
5062
5330
|
},
|
|
5063
5331
|
{
|
|
5064
5332
|
"default": "",
|
|
5065
|
-
"description": "
|
|
5333
|
+
"description": "过滤成员。Filter by member.",
|
|
5066
5334
|
"in": "query",
|
|
5067
5335
|
"name": "search",
|
|
5068
5336
|
"type": "string"
|
|
@@ -5083,12 +5351,12 @@
|
|
|
5083
5351
|
"method": "get"
|
|
5084
5352
|
},
|
|
5085
5353
|
"repo.members.accessLevel.get": {
|
|
5086
|
-
"description": "
|
|
5354
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5087
5355
|
"operationId": "GetMemberAccessLevelOfRepo",
|
|
5088
5356
|
"tags": [
|
|
5089
5357
|
"Contributors"
|
|
5090
5358
|
],
|
|
5091
|
-
"summary": "获取指定组织或仓库内,
|
|
5359
|
+
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.",
|
|
5092
5360
|
"parameters": [
|
|
5093
5361
|
{
|
|
5094
5362
|
"description": "slug",
|
|
@@ -5099,7 +5367,7 @@
|
|
|
5099
5367
|
},
|
|
5100
5368
|
{
|
|
5101
5369
|
"default": true,
|
|
5102
|
-
"description": "
|
|
5370
|
+
"description": "是否包含继承的权限。If inherited permissions are included.",
|
|
5103
5371
|
"in": "query",
|
|
5104
5372
|
"name": "include_inherit",
|
|
5105
5373
|
"type": "boolean"
|
|
@@ -5117,12 +5385,12 @@
|
|
|
5117
5385
|
"method": "get"
|
|
5118
5386
|
},
|
|
5119
5387
|
"repo.members.delete": {
|
|
5120
|
-
"description": "
|
|
5388
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
5121
5389
|
"operationId": "DeleteMembersOfRepo",
|
|
5122
5390
|
"tags": [
|
|
5123
5391
|
"Collaborators"
|
|
5124
5392
|
],
|
|
5125
|
-
"summary": "
|
|
5393
|
+
"summary": "删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.",
|
|
5126
5394
|
"parameters": [
|
|
5127
5395
|
{
|
|
5128
5396
|
"description": "slug",
|
|
@@ -5148,12 +5416,12 @@
|
|
|
5148
5416
|
"method": "delete"
|
|
5149
5417
|
},
|
|
5150
5418
|
"repo.members.post": {
|
|
5151
|
-
"description": "
|
|
5419
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
5152
5420
|
"operationId": "AddMembersOfRepo",
|
|
5153
5421
|
"tags": [
|
|
5154
5422
|
"Collaborators"
|
|
5155
5423
|
],
|
|
5156
|
-
"summary": "
|
|
5424
|
+
"summary": "添加成员。Add members.",
|
|
5157
5425
|
"parameters": [
|
|
5158
5426
|
{
|
|
5159
5427
|
"description": "slug",
|
|
@@ -5188,12 +5456,12 @@
|
|
|
5188
5456
|
"method": "post"
|
|
5189
5457
|
},
|
|
5190
5458
|
"repo.members.put": {
|
|
5191
|
-
"description": "
|
|
5459
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
5192
5460
|
"operationId": "UpdateMembersOfRepo",
|
|
5193
5461
|
"tags": [
|
|
5194
5462
|
"Collaborators"
|
|
5195
5463
|
],
|
|
5196
|
-
"summary": "
|
|
5464
|
+
"summary": "更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.",
|
|
5197
5465
|
"parameters": [
|
|
5198
5466
|
{
|
|
5199
5467
|
"description": "slug",
|
|
@@ -5228,12 +5496,12 @@
|
|
|
5228
5496
|
"method": "put"
|
|
5229
5497
|
},
|
|
5230
5498
|
"repo.members.accessLevel.list": {
|
|
5231
|
-
"description": "
|
|
5499
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5232
5500
|
"operationId": "ListMemberAccessLevelOfRepo",
|
|
5233
5501
|
"tags": [
|
|
5234
5502
|
"Contributors"
|
|
5235
5503
|
],
|
|
5236
|
-
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示,
|
|
5504
|
+
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.",
|
|
5237
5505
|
"parameters": [
|
|
5238
5506
|
{
|
|
5239
5507
|
"description": "slug",
|
|
@@ -5265,12 +5533,12 @@
|
|
|
5265
5533
|
"method": "get"
|
|
5266
5534
|
},
|
|
5267
5535
|
"repo.outsideCollaborators.list": {
|
|
5268
|
-
"description": "
|
|
5536
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5269
5537
|
"operationId": "ListOutsideCollaborators",
|
|
5270
5538
|
"tags": [
|
|
5271
5539
|
"Collaborators"
|
|
5272
5540
|
],
|
|
5273
|
-
"summary": "
|
|
5541
|
+
"summary": "获取指定仓库内的外部贡献者。List external contributors in specified repository.",
|
|
5274
5542
|
"parameters": [
|
|
5275
5543
|
{
|
|
5276
5544
|
"description": "slug",
|
|
@@ -5281,20 +5549,20 @@
|
|
|
5281
5549
|
},
|
|
5282
5550
|
{
|
|
5283
5551
|
"default": 1,
|
|
5284
|
-
"description": "
|
|
5552
|
+
"description": "Pagination page number",
|
|
5285
5553
|
"in": "query",
|
|
5286
5554
|
"name": "page",
|
|
5287
5555
|
"type": "integer"
|
|
5288
5556
|
},
|
|
5289
5557
|
{
|
|
5290
5558
|
"default": 10,
|
|
5291
|
-
"description": "
|
|
5559
|
+
"description": "Pagination page size",
|
|
5292
5560
|
"in": "query",
|
|
5293
5561
|
"name": "page_size",
|
|
5294
5562
|
"type": "integer"
|
|
5295
5563
|
},
|
|
5296
5564
|
{
|
|
5297
|
-
"description": "
|
|
5565
|
+
"description": "Role",
|
|
5298
5566
|
"enum": [
|
|
5299
5567
|
"Guest",
|
|
5300
5568
|
"Reporter",
|
|
@@ -5307,7 +5575,7 @@
|
|
|
5307
5575
|
},
|
|
5308
5576
|
{
|
|
5309
5577
|
"default": "",
|
|
5310
|
-
"description": "
|
|
5578
|
+
"description": "过滤成员。Filter by member.",
|
|
5311
5579
|
"in": "query",
|
|
5312
5580
|
"name": "search",
|
|
5313
5581
|
"type": "string"
|
|
@@ -5328,12 +5596,12 @@
|
|
|
5328
5596
|
"method": "get"
|
|
5329
5597
|
},
|
|
5330
5598
|
"repo.outsideCollaborators.delete": {
|
|
5331
|
-
"description": "
|
|
5599
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
5332
5600
|
"operationId": "DeleteOutsideCollaborators",
|
|
5333
5601
|
"tags": [
|
|
5334
5602
|
"Collaborators"
|
|
5335
5603
|
],
|
|
5336
|
-
"summary": "
|
|
5604
|
+
"summary": "删除指定仓库的外部贡献者。Removes external contributors from specified repository.",
|
|
5337
5605
|
"parameters": [
|
|
5338
5606
|
{
|
|
5339
5607
|
"description": "slug",
|
|
@@ -5359,12 +5627,12 @@
|
|
|
5359
5627
|
"method": "delete"
|
|
5360
5628
|
},
|
|
5361
5629
|
"repo.outsideCollaborators.put": {
|
|
5362
|
-
"description": "
|
|
5630
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
5363
5631
|
"operationId": "UpdateOutsideCollaborators",
|
|
5364
5632
|
"tags": [
|
|
5365
5633
|
"Collaborators"
|
|
5366
5634
|
],
|
|
5367
|
-
"summary": "
|
|
5635
|
+
"summary": "更新指定仓库的外部贡献者权限信息。 Update permission information for external contributors in specified repository.",
|
|
5368
5636
|
"parameters": [
|
|
5369
5637
|
{
|
|
5370
5638
|
"description": "slug",
|
|
@@ -5381,7 +5649,7 @@
|
|
|
5381
5649
|
"type": "string"
|
|
5382
5650
|
},
|
|
5383
5651
|
{
|
|
5384
|
-
"description": "
|
|
5652
|
+
"description": "Role",
|
|
5385
5653
|
"enum": [
|
|
5386
5654
|
"Guest",
|
|
5387
5655
|
"Reporter",
|
|
@@ -5402,12 +5670,12 @@
|
|
|
5402
5670
|
"method": "put"
|
|
5403
5671
|
},
|
|
5404
5672
|
"repo.pullInBatch.list": {
|
|
5405
|
-
"description": "
|
|
5673
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
|
|
5406
5674
|
"operationId": "ListPullsByNumbers",
|
|
5407
5675
|
"tags": [
|
|
5408
5676
|
"Pulls"
|
|
5409
5677
|
],
|
|
5410
|
-
"summary": "
|
|
5678
|
+
"summary": "根据numbers查询 Pull 列表。List pull requests by numbers.",
|
|
5411
5679
|
"parameters": [
|
|
5412
5680
|
{
|
|
5413
5681
|
"description": "repo",
|
|
@@ -5451,12 +5719,12 @@
|
|
|
5451
5719
|
"method": "get"
|
|
5452
5720
|
},
|
|
5453
5721
|
"repo.pulls.list": {
|
|
5454
|
-
"description": "
|
|
5722
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
|
|
5455
5723
|
"operationId": "ListPulls",
|
|
5456
5724
|
"tags": [
|
|
5457
5725
|
"Pulls"
|
|
5458
5726
|
],
|
|
5459
|
-
"summary": "
|
|
5727
|
+
"summary": "查询 Pull 列表。List pull requests.",
|
|
5460
5728
|
"parameters": [
|
|
5461
5729
|
{
|
|
5462
5730
|
"description": "repo",
|
|
@@ -5538,12 +5806,12 @@
|
|
|
5538
5806
|
"method": "get"
|
|
5539
5807
|
},
|
|
5540
5808
|
"repo.pulls.post": {
|
|
5541
|
-
"description": "
|
|
5809
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
|
|
5542
5810
|
"operationId": "PostPull",
|
|
5543
5811
|
"tags": [
|
|
5544
5812
|
"Pulls"
|
|
5545
5813
|
],
|
|
5546
|
-
"summary": "
|
|
5814
|
+
"summary": "新增一个 Pull。Create a pull request.",
|
|
5547
5815
|
"parameters": [
|
|
5548
5816
|
{
|
|
5549
5817
|
"description": "repo",
|
|
@@ -5586,12 +5854,12 @@
|
|
|
5586
5854
|
"method": "post"
|
|
5587
5855
|
},
|
|
5588
5856
|
"repo.pulls.get": {
|
|
5589
|
-
"description": "
|
|
5857
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:r",
|
|
5590
5858
|
"operationId": "GetPull",
|
|
5591
5859
|
"tags": [
|
|
5592
5860
|
"Pulls"
|
|
5593
5861
|
],
|
|
5594
|
-
"summary": "
|
|
5862
|
+
"summary": "查询指定 Pull。Get a pull request.",
|
|
5595
5863
|
"parameters": [
|
|
5596
5864
|
{
|
|
5597
5865
|
"description": "repo",
|
|
@@ -5605,7 +5873,7 @@
|
|
|
5605
5873
|
"in": "path",
|
|
5606
5874
|
"name": "number",
|
|
5607
5875
|
"required": true,
|
|
5608
|
-
"type": "
|
|
5876
|
+
"type": "string"
|
|
5609
5877
|
}
|
|
5610
5878
|
],
|
|
5611
5879
|
"responses": {
|
|
@@ -5632,12 +5900,12 @@
|
|
|
5632
5900
|
"method": "get"
|
|
5633
5901
|
},
|
|
5634
5902
|
"repo.pulls.patch": {
|
|
5635
|
-
"description": "
|
|
5903
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
|
|
5636
5904
|
"operationId": "PatchPull",
|
|
5637
5905
|
"tags": [
|
|
5638
5906
|
"Pulls"
|
|
5639
5907
|
],
|
|
5640
|
-
"summary": "
|
|
5908
|
+
"summary": "更新一个 Pull Request。Update a pull request.",
|
|
5641
5909
|
"parameters": [
|
|
5642
5910
|
{
|
|
5643
5911
|
"description": "repo",
|
|
@@ -5651,7 +5919,7 @@
|
|
|
5651
5919
|
"in": "path",
|
|
5652
5920
|
"name": "number",
|
|
5653
5921
|
"required": true,
|
|
5654
|
-
"type": "
|
|
5922
|
+
"type": "string"
|
|
5655
5923
|
},
|
|
5656
5924
|
{
|
|
5657
5925
|
"description": "Update Pull Request Form",
|
|
@@ -5686,13 +5954,117 @@
|
|
|
5686
5954
|
"path": "/{repo}/-/pulls/{number}",
|
|
5687
5955
|
"method": "patch"
|
|
5688
5956
|
},
|
|
5957
|
+
"repo.pulls.assignees.list": {
|
|
5958
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
5959
|
+
"operationId": "ListPullAssignees",
|
|
5960
|
+
"tags": [
|
|
5961
|
+
"Pulls"
|
|
5962
|
+
],
|
|
5963
|
+
"summary": "查询指定 PullRequest 的 Assignees。List repository pull request assignees.",
|
|
5964
|
+
"parameters": [
|
|
5965
|
+
{
|
|
5966
|
+
"description": "repo",
|
|
5967
|
+
"in": "path",
|
|
5968
|
+
"name": "repo",
|
|
5969
|
+
"required": true,
|
|
5970
|
+
"type": "string"
|
|
5971
|
+
},
|
|
5972
|
+
{
|
|
5973
|
+
"description": "pull request number",
|
|
5974
|
+
"in": "path",
|
|
5975
|
+
"name": "number",
|
|
5976
|
+
"required": true,
|
|
5977
|
+
"type": "string"
|
|
5978
|
+
}
|
|
5979
|
+
],
|
|
5980
|
+
"responses": {
|
|
5981
|
+
"200": {
|
|
5982
|
+
"description": "OK",
|
|
5983
|
+
"schema": {
|
|
5984
|
+
"items": {
|
|
5985
|
+
"$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_git_service_bff_api.UserInfo"
|
|
5986
|
+
},
|
|
5987
|
+
"type": "array"
|
|
5988
|
+
}
|
|
5989
|
+
},
|
|
5990
|
+
"404": {
|
|
5991
|
+
"description": "Not Found",
|
|
5992
|
+
"schema": {
|
|
5993
|
+
"$ref": "#/definitions/die.WebError"
|
|
5994
|
+
}
|
|
5995
|
+
},
|
|
5996
|
+
"500": {
|
|
5997
|
+
"description": "Internal Server Error",
|
|
5998
|
+
"schema": {
|
|
5999
|
+
"$ref": "#/definitions/die.WebError"
|
|
6000
|
+
}
|
|
6001
|
+
}
|
|
6002
|
+
},
|
|
6003
|
+
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6004
|
+
"method": "get"
|
|
6005
|
+
},
|
|
6006
|
+
"repo.pulls.assignees.post": {
|
|
6007
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6008
|
+
"operationId": "PostPullAssignees",
|
|
6009
|
+
"tags": [
|
|
6010
|
+
"Pulls"
|
|
6011
|
+
],
|
|
6012
|
+
"summary": "添加 Assignees 到指定的 PullRequest。 Adds up to 10 assignees to a pull request. Users already assigned to an issue are not replaced.",
|
|
6013
|
+
"parameters": [
|
|
6014
|
+
{
|
|
6015
|
+
"description": "repo",
|
|
6016
|
+
"in": "path",
|
|
6017
|
+
"name": "repo",
|
|
6018
|
+
"required": true,
|
|
6019
|
+
"type": "string"
|
|
6020
|
+
},
|
|
6021
|
+
{
|
|
6022
|
+
"description": "number",
|
|
6023
|
+
"in": "path",
|
|
6024
|
+
"name": "number",
|
|
6025
|
+
"required": true,
|
|
6026
|
+
"type": "string"
|
|
6027
|
+
},
|
|
6028
|
+
{
|
|
6029
|
+
"description": "Post Pull Assignees Form",
|
|
6030
|
+
"in": "body",
|
|
6031
|
+
"name": "post_pull_assignees_form",
|
|
6032
|
+
"required": true,
|
|
6033
|
+
"schema": {
|
|
6034
|
+
"$ref": "#/definitions/api.PostPullAssigneesForm"
|
|
6035
|
+
}
|
|
6036
|
+
}
|
|
6037
|
+
],
|
|
6038
|
+
"responses": {
|
|
6039
|
+
"201": {
|
|
6040
|
+
"description": "Created",
|
|
6041
|
+
"schema": {
|
|
6042
|
+
"$ref": "#/definitions/api.Pull"
|
|
6043
|
+
}
|
|
6044
|
+
},
|
|
6045
|
+
"404": {
|
|
6046
|
+
"description": "Not Found",
|
|
6047
|
+
"schema": {
|
|
6048
|
+
"$ref": "#/definitions/die.WebError"
|
|
6049
|
+
}
|
|
6050
|
+
},
|
|
6051
|
+
"500": {
|
|
6052
|
+
"description": "Internal Server Error",
|
|
6053
|
+
"schema": {
|
|
6054
|
+
"$ref": "#/definitions/die.WebError"
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
},
|
|
6058
|
+
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6059
|
+
"method": "post"
|
|
6060
|
+
},
|
|
5689
6061
|
"repo.pulls.comments.list": {
|
|
5690
|
-
"description": "
|
|
6062
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
5691
6063
|
"operationId": "ListPullComments",
|
|
5692
6064
|
"tags": [
|
|
5693
6065
|
"Pulls"
|
|
5694
6066
|
],
|
|
5695
|
-
"summary": "
|
|
6067
|
+
"summary": "查询 Pull Comments 列表。List pull comments requests.",
|
|
5696
6068
|
"parameters": [
|
|
5697
6069
|
{
|
|
5698
6070
|
"description": "repo",
|
|
@@ -5750,12 +6122,12 @@
|
|
|
5750
6122
|
"method": "get"
|
|
5751
6123
|
},
|
|
5752
6124
|
"repo.pulls.comments.post": {
|
|
5753
|
-
"description": "
|
|
6125
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
5754
6126
|
"operationId": "PostPullComment",
|
|
5755
6127
|
"tags": [
|
|
5756
6128
|
"Pulls"
|
|
5757
6129
|
],
|
|
5758
|
-
"summary": "
|
|
6130
|
+
"summary": "新增一个 Pull Comment。Create a pull comment.",
|
|
5759
6131
|
"parameters": [
|
|
5760
6132
|
{
|
|
5761
6133
|
"description": "repo",
|
|
@@ -5769,7 +6141,7 @@
|
|
|
5769
6141
|
"in": "path",
|
|
5770
6142
|
"name": "number",
|
|
5771
6143
|
"required": true,
|
|
5772
|
-
"type": "
|
|
6144
|
+
"type": "string"
|
|
5773
6145
|
},
|
|
5774
6146
|
{
|
|
5775
6147
|
"description": "Post Pull Request Comment Form",
|
|
@@ -5802,12 +6174,12 @@
|
|
|
5802
6174
|
"method": "post"
|
|
5803
6175
|
},
|
|
5804
6176
|
"repo.pulls.labels.delete": {
|
|
5805
|
-
"description": "
|
|
6177
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
5806
6178
|
"operationId": "DeletePullLabels",
|
|
5807
6179
|
"tags": [
|
|
5808
6180
|
"Pulls"
|
|
5809
6181
|
],
|
|
5810
|
-
"summary": "清空 Pull
|
|
6182
|
+
"summary": "清空 Pull 标签。Remove all labels from a pull.",
|
|
5811
6183
|
"parameters": [
|
|
5812
6184
|
{
|
|
5813
6185
|
"description": "repo",
|
|
@@ -5821,7 +6193,7 @@
|
|
|
5821
6193
|
"in": "path",
|
|
5822
6194
|
"name": "number",
|
|
5823
6195
|
"required": true,
|
|
5824
|
-
"type": "
|
|
6196
|
+
"type": "string"
|
|
5825
6197
|
}
|
|
5826
6198
|
],
|
|
5827
6199
|
"responses": {
|
|
@@ -5845,12 +6217,12 @@
|
|
|
5845
6217
|
"method": "delete"
|
|
5846
6218
|
},
|
|
5847
6219
|
"repo.pulls.labels.list": {
|
|
5848
|
-
"description": "
|
|
6220
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
5849
6221
|
"operationId": "ListPullLabels",
|
|
5850
6222
|
"tags": [
|
|
5851
6223
|
"Pulls"
|
|
5852
6224
|
],
|
|
5853
|
-
"summary": "查询 Pull 的标签(label)
|
|
6225
|
+
"summary": "查询 Pull 的标签(label) 列表。List labels for a pull.",
|
|
5854
6226
|
"parameters": [
|
|
5855
6227
|
{
|
|
5856
6228
|
"description": "repo",
|
|
@@ -5864,7 +6236,7 @@
|
|
|
5864
6236
|
"in": "path",
|
|
5865
6237
|
"name": "number",
|
|
5866
6238
|
"required": true,
|
|
5867
|
-
"type": "
|
|
6239
|
+
"type": "string"
|
|
5868
6240
|
},
|
|
5869
6241
|
{
|
|
5870
6242
|
"default": 1,
|
|
@@ -5908,12 +6280,12 @@
|
|
|
5908
6280
|
"method": "get"
|
|
5909
6281
|
},
|
|
5910
6282
|
"repo.pulls.labels.post": {
|
|
5911
|
-
"description": "
|
|
6283
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
5912
6284
|
"operationId": "PostPullLabels",
|
|
5913
6285
|
"tags": [
|
|
5914
6286
|
"Pulls"
|
|
5915
6287
|
],
|
|
5916
|
-
"summary": "新增 Pull
|
|
6288
|
+
"summary": "新增 Pull 标签。Add labels to a pull.",
|
|
5917
6289
|
"parameters": [
|
|
5918
6290
|
{
|
|
5919
6291
|
"description": "repo",
|
|
@@ -5927,7 +6299,7 @@
|
|
|
5927
6299
|
"in": "path",
|
|
5928
6300
|
"name": "number",
|
|
5929
6301
|
"required": true,
|
|
5930
|
-
"type": "
|
|
6302
|
+
"type": "string"
|
|
5931
6303
|
},
|
|
5932
6304
|
{
|
|
5933
6305
|
"description": "Post Pull Labels Form",
|
|
@@ -5963,12 +6335,12 @@
|
|
|
5963
6335
|
"method": "post"
|
|
5964
6336
|
},
|
|
5965
6337
|
"repo.pulls.labels.put": {
|
|
5966
|
-
"description": "
|
|
6338
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
5967
6339
|
"operationId": "PutPullLabels",
|
|
5968
6340
|
"tags": [
|
|
5969
6341
|
"Pulls"
|
|
5970
6342
|
],
|
|
5971
|
-
"summary": "设置 Pull
|
|
6343
|
+
"summary": "设置 Pull 标签。Set the new labels for a pull.",
|
|
5972
6344
|
"parameters": [
|
|
5973
6345
|
{
|
|
5974
6346
|
"description": "repo",
|
|
@@ -5982,7 +6354,7 @@
|
|
|
5982
6354
|
"in": "path",
|
|
5983
6355
|
"name": "number",
|
|
5984
6356
|
"required": true,
|
|
5985
|
-
"type": "
|
|
6357
|
+
"type": "string"
|
|
5986
6358
|
},
|
|
5987
6359
|
{
|
|
5988
6360
|
"description": "Put Pull Labels Form",
|
|
@@ -6018,12 +6390,12 @@
|
|
|
6018
6390
|
"method": "put"
|
|
6019
6391
|
},
|
|
6020
6392
|
"repo.pulls.labels.deleteByName": {
|
|
6021
|
-
"description": "
|
|
6393
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6022
6394
|
"operationId": "DeletePullLabel",
|
|
6023
6395
|
"tags": [
|
|
6024
6396
|
"Pulls"
|
|
6025
6397
|
],
|
|
6026
|
-
"summary": "删除 Pull
|
|
6398
|
+
"summary": "删除 Pull 标签。Remove a label from a pull.",
|
|
6027
6399
|
"parameters": [
|
|
6028
6400
|
{
|
|
6029
6401
|
"description": "repo",
|
|
@@ -6037,7 +6409,7 @@
|
|
|
6037
6409
|
"in": "path",
|
|
6038
6410
|
"name": "number",
|
|
6039
6411
|
"required": true,
|
|
6040
|
-
"type": "
|
|
6412
|
+
"type": "string"
|
|
6041
6413
|
},
|
|
6042
6414
|
{
|
|
6043
6415
|
"description": "label name",
|
|
@@ -6071,12 +6443,12 @@
|
|
|
6071
6443
|
"method": "delete"
|
|
6072
6444
|
},
|
|
6073
6445
|
"repo.pulls.merge.put": {
|
|
6074
|
-
"description": "
|
|
6446
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
|
|
6075
6447
|
"operationId": "MergePull",
|
|
6076
6448
|
"tags": [
|
|
6077
6449
|
"Pulls"
|
|
6078
6450
|
],
|
|
6079
|
-
"summary": "
|
|
6451
|
+
"summary": "合并一个 Pull Request。Merge a pull request.",
|
|
6080
6452
|
"parameters": [
|
|
6081
6453
|
{
|
|
6082
6454
|
"description": "repo",
|
|
@@ -6090,7 +6462,7 @@
|
|
|
6090
6462
|
"in": "path",
|
|
6091
6463
|
"name": "number",
|
|
6092
6464
|
"required": true,
|
|
6093
|
-
"type": "
|
|
6465
|
+
"type": "string"
|
|
6094
6466
|
},
|
|
6095
6467
|
{
|
|
6096
6468
|
"description": "Merge Pull Request Form",
|
|
@@ -6126,12 +6498,12 @@
|
|
|
6126
6498
|
"method": "put"
|
|
6127
6499
|
},
|
|
6128
6500
|
"repo.pulls.reviews.post": {
|
|
6129
|
-
"description": "
|
|
6501
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6130
6502
|
"operationId": "PostPullReview",
|
|
6131
6503
|
"tags": [
|
|
6132
6504
|
"Pulls"
|
|
6133
6505
|
],
|
|
6134
|
-
"summary": "新增一次 pull request
|
|
6506
|
+
"summary": "新增一次 pull request 评审。Create a pull review.",
|
|
6135
6507
|
"parameters": [
|
|
6136
6508
|
{
|
|
6137
6509
|
"description": "repo",
|
|
@@ -6145,7 +6517,7 @@
|
|
|
6145
6517
|
"in": "path",
|
|
6146
6518
|
"name": "number",
|
|
6147
6519
|
"required": true,
|
|
6148
|
-
"type": "
|
|
6520
|
+
"type": "string"
|
|
6149
6521
|
},
|
|
6150
6522
|
{
|
|
6151
6523
|
"description": "Post Pull Review Form",
|
|
@@ -6184,12 +6556,12 @@
|
|
|
6184
6556
|
"method": "post"
|
|
6185
6557
|
},
|
|
6186
6558
|
"repo.releases.list": {
|
|
6187
|
-
"description": "
|
|
6559
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
6188
6560
|
"operationId": "ListReleases",
|
|
6189
6561
|
"tags": [
|
|
6190
6562
|
"Releases"
|
|
6191
6563
|
],
|
|
6192
|
-
"summary": "
|
|
6564
|
+
"summary": "查询 release 列表。List releases.",
|
|
6193
6565
|
"parameters": [
|
|
6194
6566
|
{
|
|
6195
6567
|
"description": "repo",
|
|
@@ -6240,12 +6612,12 @@
|
|
|
6240
6612
|
"method": "get"
|
|
6241
6613
|
},
|
|
6242
6614
|
"repo.releases.post": {
|
|
6243
|
-
"description": "
|
|
6615
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6244
6616
|
"operationId": "PostRelease",
|
|
6245
6617
|
"tags": [
|
|
6246
6618
|
"Releases"
|
|
6247
6619
|
],
|
|
6248
|
-
"summary": "
|
|
6620
|
+
"summary": "新增一个 Release。Create a release.",
|
|
6249
6621
|
"parameters": [
|
|
6250
6622
|
{
|
|
6251
6623
|
"description": "repo",
|
|
@@ -6288,12 +6660,12 @@
|
|
|
6288
6660
|
"method": "post"
|
|
6289
6661
|
},
|
|
6290
6662
|
"repo.releases.download.get": {
|
|
6291
|
-
"description": "
|
|
6663
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
6292
6664
|
"operationId": "GetReleasesAsset",
|
|
6293
6665
|
"tags": [
|
|
6294
6666
|
"Assets"
|
|
6295
6667
|
],
|
|
6296
|
-
"summary": "发起一个获取 release 附件的请求,返回内容或者 302
|
|
6668
|
+
"summary": "发起一个获取 release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get release attachments, returns content or 302 redirect.",
|
|
6297
6669
|
"parameters": [
|
|
6298
6670
|
{
|
|
6299
6671
|
"default": "test-group/test-repo",
|
|
@@ -6304,7 +6676,7 @@
|
|
|
6304
6676
|
"type": "string"
|
|
6305
6677
|
},
|
|
6306
6678
|
{
|
|
6307
|
-
"description": "
|
|
6679
|
+
"description": "Including tag name and filename (e.g. v1.0/test.png)",
|
|
6308
6680
|
"in": "path",
|
|
6309
6681
|
"name": "fileName",
|
|
6310
6682
|
"required": true,
|
|
@@ -6319,13 +6691,84 @@
|
|
|
6319
6691
|
"path": "/{repo}/-/releases/download/{fileName}",
|
|
6320
6692
|
"method": "get"
|
|
6321
6693
|
},
|
|
6694
|
+
"repo.releases.latest.get": {
|
|
6695
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
6696
|
+
"operationId": "GetLatestRelease",
|
|
6697
|
+
"tags": [
|
|
6698
|
+
"Releases"
|
|
6699
|
+
],
|
|
6700
|
+
"summary": "查询 latest release。Query the latest release.",
|
|
6701
|
+
"parameters": [
|
|
6702
|
+
{
|
|
6703
|
+
"description": "repo",
|
|
6704
|
+
"in": "path",
|
|
6705
|
+
"name": "repo",
|
|
6706
|
+
"required": true,
|
|
6707
|
+
"type": "string"
|
|
6708
|
+
}
|
|
6709
|
+
],
|
|
6710
|
+
"responses": {
|
|
6711
|
+
"200": {
|
|
6712
|
+
"description": "OK",
|
|
6713
|
+
"schema": {
|
|
6714
|
+
"$ref": "#/definitions/api.Release"
|
|
6715
|
+
}
|
|
6716
|
+
},
|
|
6717
|
+
"404": {
|
|
6718
|
+
"description": "Not Found",
|
|
6719
|
+
"schema": {
|
|
6720
|
+
"$ref": "#/definitions/die.WebError"
|
|
6721
|
+
}
|
|
6722
|
+
},
|
|
6723
|
+
"500": {
|
|
6724
|
+
"description": "Internal Server Error",
|
|
6725
|
+
"schema": {
|
|
6726
|
+
"$ref": "#/definitions/die.WebError"
|
|
6727
|
+
}
|
|
6728
|
+
}
|
|
6729
|
+
},
|
|
6730
|
+
"path": "/{repo}/-/releases/latest",
|
|
6731
|
+
"method": "get"
|
|
6732
|
+
},
|
|
6733
|
+
"repo.releases.latest.download.get": {
|
|
6734
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:r",
|
|
6735
|
+
"operationId": "GetLatestReleasesAsset",
|
|
6736
|
+
"tags": [
|
|
6737
|
+
"Assets"
|
|
6738
|
+
],
|
|
6739
|
+
"summary": "发起一个获取 latest release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get latest release attachments, returns content or 302 redirect.",
|
|
6740
|
+
"parameters": [
|
|
6741
|
+
{
|
|
6742
|
+
"default": "test-group/test-repo",
|
|
6743
|
+
"description": "Repo",
|
|
6744
|
+
"in": "path",
|
|
6745
|
+
"name": "repo",
|
|
6746
|
+
"required": true,
|
|
6747
|
+
"type": "string"
|
|
6748
|
+
},
|
|
6749
|
+
{
|
|
6750
|
+
"description": "File name, eg: test.png",
|
|
6751
|
+
"in": "path",
|
|
6752
|
+
"name": "fileName",
|
|
6753
|
+
"required": true,
|
|
6754
|
+
"type": "string"
|
|
6755
|
+
}
|
|
6756
|
+
],
|
|
6757
|
+
"responses": {
|
|
6758
|
+
"302": {
|
|
6759
|
+
"description": "Found"
|
|
6760
|
+
}
|
|
6761
|
+
},
|
|
6762
|
+
"path": "/{repo}/-/releases/latest/download/{fileName}",
|
|
6763
|
+
"method": "get"
|
|
6764
|
+
},
|
|
6322
6765
|
"repo.releases.tags.get": {
|
|
6323
|
-
"description": "
|
|
6766
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
6324
6767
|
"operationId": "GetReleaseByTag",
|
|
6325
6768
|
"tags": [
|
|
6326
6769
|
"Releases"
|
|
6327
6770
|
],
|
|
6328
|
-
"summary": "
|
|
6771
|
+
"summary": "通过 tag 查询指定 release。Get a release by tag.",
|
|
6329
6772
|
"parameters": [
|
|
6330
6773
|
{
|
|
6331
6774
|
"description": "repo",
|
|
@@ -6366,12 +6809,12 @@
|
|
|
6366
6809
|
"method": "get"
|
|
6367
6810
|
},
|
|
6368
6811
|
"repo.releases.delete": {
|
|
6369
|
-
"description": "
|
|
6812
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6370
6813
|
"operationId": "DeleteRelease",
|
|
6371
6814
|
"tags": [
|
|
6372
6815
|
"Releases"
|
|
6373
6816
|
],
|
|
6374
|
-
"summary": "
|
|
6817
|
+
"summary": "删除指定的 release。Delete a release.",
|
|
6375
6818
|
"parameters": [
|
|
6376
6819
|
{
|
|
6377
6820
|
"description": "repo",
|
|
@@ -6385,7 +6828,7 @@
|
|
|
6385
6828
|
"in": "path",
|
|
6386
6829
|
"name": "release_id",
|
|
6387
6830
|
"required": true,
|
|
6388
|
-
"type": "
|
|
6831
|
+
"type": "string"
|
|
6389
6832
|
}
|
|
6390
6833
|
],
|
|
6391
6834
|
"responses": {
|
|
@@ -6409,12 +6852,12 @@
|
|
|
6409
6852
|
"method": "delete"
|
|
6410
6853
|
},
|
|
6411
6854
|
"repo.releases.get": {
|
|
6412
|
-
"description": "
|
|
6855
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
6413
6856
|
"operationId": "GetReleaseByID",
|
|
6414
6857
|
"tags": [
|
|
6415
6858
|
"Releases"
|
|
6416
6859
|
],
|
|
6417
|
-
"summary": "
|
|
6860
|
+
"summary": "根据 id\t查询指定 release。Get a release by id.",
|
|
6418
6861
|
"parameters": [
|
|
6419
6862
|
{
|
|
6420
6863
|
"description": "repo",
|
|
@@ -6428,7 +6871,7 @@
|
|
|
6428
6871
|
"in": "path",
|
|
6429
6872
|
"name": "release_id",
|
|
6430
6873
|
"required": true,
|
|
6431
|
-
"type": "
|
|
6874
|
+
"type": "string"
|
|
6432
6875
|
}
|
|
6433
6876
|
],
|
|
6434
6877
|
"responses": {
|
|
@@ -6455,12 +6898,12 @@
|
|
|
6455
6898
|
"method": "get"
|
|
6456
6899
|
},
|
|
6457
6900
|
"repo.releases.patch": {
|
|
6458
|
-
"description": "
|
|
6901
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6459
6902
|
"operationId": "PatchRelease",
|
|
6460
6903
|
"tags": [
|
|
6461
6904
|
"Releases"
|
|
6462
6905
|
],
|
|
6463
|
-
"summary": "
|
|
6906
|
+
"summary": "更新 release。Update a release.",
|
|
6464
6907
|
"parameters": [
|
|
6465
6908
|
{
|
|
6466
6909
|
"description": "repo",
|
|
@@ -6474,7 +6917,7 @@
|
|
|
6474
6917
|
"in": "path",
|
|
6475
6918
|
"name": "release_id",
|
|
6476
6919
|
"required": true,
|
|
6477
|
-
"type": "
|
|
6920
|
+
"type": "string"
|
|
6478
6921
|
},
|
|
6479
6922
|
{
|
|
6480
6923
|
"description": "patch release form",
|
|
@@ -6507,12 +6950,12 @@
|
|
|
6507
6950
|
"method": "patch"
|
|
6508
6951
|
},
|
|
6509
6952
|
"repo.releases.assetUploadConfirmation.post": {
|
|
6510
|
-
"description": "
|
|
6953
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6511
6954
|
"operationId": "PostReleaseAssetUploadConfirmation",
|
|
6512
6955
|
"tags": [
|
|
6513
6956
|
"Releases"
|
|
6514
6957
|
],
|
|
6515
|
-
"summary": "
|
|
6958
|
+
"summary": "确认 Release asset 上传完成。Confirm release asset upload.",
|
|
6516
6959
|
"parameters": [
|
|
6517
6960
|
{
|
|
6518
6961
|
"description": "repo",
|
|
@@ -6526,7 +6969,7 @@
|
|
|
6526
6969
|
"in": "path",
|
|
6527
6970
|
"name": "release_id",
|
|
6528
6971
|
"required": true,
|
|
6529
|
-
"type": "
|
|
6972
|
+
"type": "string"
|
|
6530
6973
|
},
|
|
6531
6974
|
{
|
|
6532
6975
|
"description": "upload token",
|
|
@@ -6564,12 +7007,12 @@
|
|
|
6564
7007
|
"method": "post"
|
|
6565
7008
|
},
|
|
6566
7009
|
"repo.releases.assetUploadUrl.post": {
|
|
6567
|
-
"description": "
|
|
7010
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6568
7011
|
"operationId": "PostReleaseAssetUploadURL",
|
|
6569
7012
|
"tags": [
|
|
6570
7013
|
"Releases"
|
|
6571
7014
|
],
|
|
6572
|
-
"summary": "
|
|
7015
|
+
"summary": "新增一个 Release asset。Create a release asset.",
|
|
6573
7016
|
"parameters": [
|
|
6574
7017
|
{
|
|
6575
7018
|
"description": "repo",
|
|
@@ -6583,7 +7026,7 @@
|
|
|
6583
7026
|
"in": "path",
|
|
6584
7027
|
"name": "release_id",
|
|
6585
7028
|
"required": true,
|
|
6586
|
-
"type": "
|
|
7029
|
+
"type": "string"
|
|
6587
7030
|
},
|
|
6588
7031
|
{
|
|
6589
7032
|
"description": "Post Release Asset Upload URL Form",
|
|
@@ -6619,12 +7062,12 @@
|
|
|
6619
7062
|
"method": "post"
|
|
6620
7063
|
},
|
|
6621
7064
|
"repo.releases.assets.delete": {
|
|
6622
|
-
"description": "
|
|
7065
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:rw",
|
|
6623
7066
|
"operationId": "DeleteReleaseAsset",
|
|
6624
7067
|
"tags": [
|
|
6625
7068
|
"Releases"
|
|
6626
7069
|
],
|
|
6627
|
-
"summary": "
|
|
7070
|
+
"summary": "删除指定的 release asset。Delete the specified release asset.",
|
|
6628
7071
|
"parameters": [
|
|
6629
7072
|
{
|
|
6630
7073
|
"description": "repo",
|
|
@@ -6638,14 +7081,14 @@
|
|
|
6638
7081
|
"in": "path",
|
|
6639
7082
|
"name": "release_id",
|
|
6640
7083
|
"required": true,
|
|
6641
|
-
"type": "
|
|
7084
|
+
"type": "string"
|
|
6642
7085
|
},
|
|
6643
7086
|
{
|
|
6644
7087
|
"description": "asset id",
|
|
6645
7088
|
"in": "path",
|
|
6646
7089
|
"name": "asset_id",
|
|
6647
7090
|
"required": true,
|
|
6648
|
-
"type": "
|
|
7091
|
+
"type": "string"
|
|
6649
7092
|
}
|
|
6650
7093
|
],
|
|
6651
7094
|
"responses": {
|
|
@@ -6669,12 +7112,12 @@
|
|
|
6669
7112
|
"method": "delete"
|
|
6670
7113
|
},
|
|
6671
7114
|
"repo.releases.assets.get": {
|
|
6672
|
-
"description": "
|
|
7115
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
6673
7116
|
"operationId": "GetReleaseAsset",
|
|
6674
7117
|
"tags": [
|
|
6675
7118
|
"Releases"
|
|
6676
7119
|
],
|
|
6677
|
-
"summary": "
|
|
7120
|
+
"summary": "查询指定的 release asset。Get the specified release asset.",
|
|
6678
7121
|
"parameters": [
|
|
6679
7122
|
{
|
|
6680
7123
|
"description": "repo",
|
|
@@ -6688,14 +7131,14 @@
|
|
|
6688
7131
|
"in": "path",
|
|
6689
7132
|
"name": "release_id",
|
|
6690
7133
|
"required": true,
|
|
6691
|
-
"type": "
|
|
7134
|
+
"type": "string"
|
|
6692
7135
|
},
|
|
6693
7136
|
{
|
|
6694
7137
|
"description": "asset id",
|
|
6695
7138
|
"in": "path",
|
|
6696
7139
|
"name": "asset_id",
|
|
6697
7140
|
"required": true,
|
|
6698
|
-
"type": "
|
|
7141
|
+
"type": "string"
|
|
6699
7142
|
}
|
|
6700
7143
|
],
|
|
6701
7144
|
"responses": {
|
|
@@ -6722,12 +7165,12 @@
|
|
|
6722
7165
|
"method": "get"
|
|
6723
7166
|
},
|
|
6724
7167
|
"repo.settings.branchProtections.list": {
|
|
6725
|
-
"description": "
|
|
7168
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
6726
7169
|
"operationId": "ListBranchProtections",
|
|
6727
7170
|
"tags": [
|
|
6728
7171
|
"GitSettings"
|
|
6729
7172
|
],
|
|
6730
|
-
"summary": "
|
|
7173
|
+
"summary": "查询仓库保护分支规则列表。List branch protection rules.",
|
|
6731
7174
|
"parameters": [
|
|
6732
7175
|
{
|
|
6733
7176
|
"description": "repo",
|
|
@@ -6764,12 +7207,12 @@
|
|
|
6764
7207
|
"method": "get"
|
|
6765
7208
|
},
|
|
6766
7209
|
"repo.settings.branchProtections.post": {
|
|
6767
|
-
"description": "
|
|
7210
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
6768
7211
|
"operationId": "PostBranchProtection",
|
|
6769
7212
|
"tags": [
|
|
6770
7213
|
"GitSettings"
|
|
6771
7214
|
],
|
|
6772
|
-
"summary": "
|
|
7215
|
+
"summary": "新增仓库保护分支规则。Create branch protection rule.",
|
|
6773
7216
|
"parameters": [
|
|
6774
7217
|
{
|
|
6775
7218
|
"description": "repo",
|
|
@@ -6809,12 +7252,12 @@
|
|
|
6809
7252
|
"method": "post"
|
|
6810
7253
|
},
|
|
6811
7254
|
"repo.settings.branchProtections.delete": {
|
|
6812
|
-
"description": "
|
|
7255
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
6813
7256
|
"operationId": "DeleteBranchProtection",
|
|
6814
7257
|
"tags": [
|
|
6815
7258
|
"GitSettings"
|
|
6816
7259
|
],
|
|
6817
|
-
"summary": "
|
|
7260
|
+
"summary": "删除仓库保护分支规则。 Delete branch protection rule.",
|
|
6818
7261
|
"parameters": [
|
|
6819
7262
|
{
|
|
6820
7263
|
"description": "repo",
|
|
@@ -6852,12 +7295,12 @@
|
|
|
6852
7295
|
"method": "delete"
|
|
6853
7296
|
},
|
|
6854
7297
|
"repo.settings.branchProtections.get": {
|
|
6855
|
-
"description": "
|
|
7298
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
6856
7299
|
"operationId": "GetBranchProtection",
|
|
6857
7300
|
"tags": [
|
|
6858
7301
|
"GitSettings"
|
|
6859
7302
|
],
|
|
6860
|
-
"summary": "
|
|
7303
|
+
"summary": "查询仓库保护分支规则。Get branch protection rule.",
|
|
6861
7304
|
"parameters": [
|
|
6862
7305
|
{
|
|
6863
7306
|
"description": "repo",
|
|
@@ -6898,12 +7341,12 @@
|
|
|
6898
7341
|
"method": "get"
|
|
6899
7342
|
},
|
|
6900
7343
|
"repo.settings.branchProtections.patch": {
|
|
6901
|
-
"description": "
|
|
7344
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
6902
7345
|
"operationId": "PatchBranchProtection",
|
|
6903
7346
|
"tags": [
|
|
6904
7347
|
"GitSettings"
|
|
6905
7348
|
],
|
|
6906
|
-
"summary": "
|
|
7349
|
+
"summary": "更新仓库保护分支规则。Update branch protection rule.",
|
|
6907
7350
|
"parameters": [
|
|
6908
7351
|
{
|
|
6909
7352
|
"description": "repo",
|
|
@@ -6950,12 +7393,12 @@
|
|
|
6950
7393
|
"method": "patch"
|
|
6951
7394
|
},
|
|
6952
7395
|
"repo.settings.cloudNativeBuild.get": {
|
|
6953
|
-
"description": "
|
|
7396
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
6954
7397
|
"operationId": "GetPipelineSettings",
|
|
6955
7398
|
"tags": [
|
|
6956
7399
|
"GitSettings"
|
|
6957
7400
|
],
|
|
6958
|
-
"summary": "
|
|
7401
|
+
"summary": "查询仓库云原生构建设置。List pipeline settings.",
|
|
6959
7402
|
"parameters": [
|
|
6960
7403
|
{
|
|
6961
7404
|
"description": "repo",
|
|
@@ -6989,12 +7432,12 @@
|
|
|
6989
7432
|
"method": "get"
|
|
6990
7433
|
},
|
|
6991
7434
|
"repo.settings.cloudNativeBuild.put": {
|
|
6992
|
-
"description": "
|
|
7435
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
6993
7436
|
"operationId": "PutPipelineSettings",
|
|
6994
7437
|
"tags": [
|
|
6995
7438
|
"GitSettings"
|
|
6996
7439
|
],
|
|
6997
|
-
"summary": "
|
|
7440
|
+
"summary": "更新仓库云原生构建设置。Update pipeline settings.",
|
|
6998
7441
|
"parameters": [
|
|
6999
7442
|
{
|
|
7000
7443
|
"description": "repo",
|
|
@@ -7034,12 +7477,12 @@
|
|
|
7034
7477
|
"method": "put"
|
|
7035
7478
|
},
|
|
7036
7479
|
"repo.settings.pullRequest.get": {
|
|
7037
|
-
"description": "
|
|
7480
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
7038
7481
|
"operationId": "GetPullRequestSettings",
|
|
7039
7482
|
"tags": [
|
|
7040
7483
|
"GitSettings"
|
|
7041
7484
|
],
|
|
7042
|
-
"summary": "
|
|
7485
|
+
"summary": "查询仓库合并请求设置。List pull request settings.",
|
|
7043
7486
|
"parameters": [
|
|
7044
7487
|
{
|
|
7045
7488
|
"description": "repo",
|
|
@@ -7073,12 +7516,12 @@
|
|
|
7073
7516
|
"method": "get"
|
|
7074
7517
|
},
|
|
7075
7518
|
"repo.settings.pullRequest.put": {
|
|
7076
|
-
"description": "
|
|
7519
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
7077
7520
|
"operationId": "PutPullRequestSettings",
|
|
7078
7521
|
"tags": [
|
|
7079
7522
|
"GitSettings"
|
|
7080
7523
|
],
|
|
7081
|
-
"summary": "
|
|
7524
|
+
"summary": "设置仓库推送设置。Set pull request settings.",
|
|
7082
7525
|
"parameters": [
|
|
7083
7526
|
{
|
|
7084
7527
|
"description": "repo",
|
|
@@ -7118,12 +7561,12 @@
|
|
|
7118
7561
|
"method": "put"
|
|
7119
7562
|
},
|
|
7120
7563
|
"repo.settings.pushLimit.get": {
|
|
7121
|
-
"description": "
|
|
7564
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
7122
7565
|
"operationId": "GetPushLimitSettings",
|
|
7123
7566
|
"tags": [
|
|
7124
7567
|
"GitSettings"
|
|
7125
7568
|
],
|
|
7126
|
-
"summary": "
|
|
7569
|
+
"summary": "查询仓库推送设置。List push limit settings.",
|
|
7127
7570
|
"parameters": [
|
|
7128
7571
|
{
|
|
7129
7572
|
"description": "repo",
|
|
@@ -7157,12 +7600,12 @@
|
|
|
7157
7600
|
"method": "get"
|
|
7158
7601
|
},
|
|
7159
7602
|
"repo.settings.pushLimit.put": {
|
|
7160
|
-
"description": "
|
|
7603
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw",
|
|
7161
7604
|
"operationId": "PutPushLimitSettings",
|
|
7162
7605
|
"tags": [
|
|
7163
7606
|
"GitSettings"
|
|
7164
7607
|
],
|
|
7165
|
-
"summary": "
|
|
7608
|
+
"summary": "设置仓库推送设置。Set push limit settings.",
|
|
7166
7609
|
"parameters": [
|
|
7167
7610
|
{
|
|
7168
7611
|
"description": "repo",
|
|
@@ -7202,12 +7645,12 @@
|
|
|
7202
7645
|
"method": "put"
|
|
7203
7646
|
},
|
|
7204
7647
|
"repo.stars.get": {
|
|
7205
|
-
"description": "
|
|
7648
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
|
|
7206
7649
|
"operationId": "ListStarUsers",
|
|
7207
7650
|
"tags": [
|
|
7208
7651
|
"Starring"
|
|
7209
7652
|
],
|
|
7210
|
-
"summary": "获取指定仓库的star
|
|
7653
|
+
"summary": "获取指定仓库的star用户列表。Get the list of users who starred the specified repository.",
|
|
7211
7654
|
"parameters": [
|
|
7212
7655
|
{
|
|
7213
7656
|
"description": "slug",
|
|
@@ -7217,7 +7660,7 @@
|
|
|
7217
7660
|
"type": "string"
|
|
7218
7661
|
},
|
|
7219
7662
|
{
|
|
7220
|
-
"description": "
|
|
7663
|
+
"description": "Filter type",
|
|
7221
7664
|
"enum": [
|
|
7222
7665
|
"all",
|
|
7223
7666
|
"followed"
|
|
@@ -7256,12 +7699,12 @@
|
|
|
7256
7699
|
"method": "get"
|
|
7257
7700
|
},
|
|
7258
7701
|
"repo.topActivityUsers.list": {
|
|
7259
|
-
"description": "
|
|
7702
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-base-info:r",
|
|
7260
7703
|
"operationId": "TopContributors",
|
|
7261
7704
|
"tags": [
|
|
7262
7705
|
"Collaborators"
|
|
7263
7706
|
],
|
|
7264
|
-
"summary": "获取 top
|
|
7707
|
+
"summary": "获取 top 贡献用户。List the top contributing users",
|
|
7265
7708
|
"parameters": [
|
|
7266
7709
|
{
|
|
7267
7710
|
"description": "slug",
|
|
@@ -7272,7 +7715,7 @@
|
|
|
7272
7715
|
},
|
|
7273
7716
|
{
|
|
7274
7717
|
"default": 5,
|
|
7275
|
-
"description": "
|
|
7718
|
+
"description": "limit, max(10)",
|
|
7276
7719
|
"in": "query",
|
|
7277
7720
|
"name": "top",
|
|
7278
7721
|
"type": "integer"
|
|
@@ -7293,12 +7736,12 @@
|
|
|
7293
7736
|
"method": "get"
|
|
7294
7737
|
},
|
|
7295
7738
|
"repo.upload.files.post": {
|
|
7296
|
-
"description": "
|
|
7739
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
7297
7740
|
"operationId": "UploadFiles",
|
|
7298
7741
|
"tags": [
|
|
7299
7742
|
"Assets"
|
|
7300
7743
|
],
|
|
7301
|
-
"summary": "发起一个上传 files
|
|
7744
|
+
"summary": "发起一个上传 files 的请求,返回上传 cos 的 url 和 form 内容。Initiate a request to upload files,returns COS upload URL and form data.",
|
|
7302
7745
|
"parameters": [
|
|
7303
7746
|
{
|
|
7304
7747
|
"default": "test-group/test-repo",
|
|
@@ -7330,12 +7773,12 @@
|
|
|
7330
7773
|
"method": "post"
|
|
7331
7774
|
},
|
|
7332
7775
|
"repo.upload.imgs.post": {
|
|
7333
|
-
"description": "
|
|
7776
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
7334
7777
|
"operationId": "UploadImgs",
|
|
7335
7778
|
"tags": [
|
|
7336
7779
|
"Assets"
|
|
7337
7780
|
],
|
|
7338
|
-
"summary": "发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form
|
|
7781
|
+
"summary": "发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容。发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容.",
|
|
7339
7782
|
"parameters": [
|
|
7340
7783
|
{
|
|
7341
7784
|
"default": "test-group/test-repo",
|
|
@@ -7367,12 +7810,12 @@
|
|
|
7367
7810
|
"method": "post"
|
|
7368
7811
|
},
|
|
7369
7812
|
"repo.upload.releases.post": {
|
|
7370
|
-
"description": "
|
|
7813
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
7371
7814
|
"operationId": "UploadReleases",
|
|
7372
7815
|
"tags": [
|
|
7373
7816
|
"Assets"
|
|
7374
7817
|
],
|
|
7375
|
-
"summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url
|
|
7818
|
+
"summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url 。Initiate a request to upload release attachments,",
|
|
7376
7819
|
"parameters": [
|
|
7377
7820
|
{
|
|
7378
7821
|
"default": "test-group/test-repo",
|
|
@@ -7411,22 +7854,22 @@
|
|
|
7411
7854
|
"method": "post"
|
|
7412
7855
|
},
|
|
7413
7856
|
"repo.workspace.detail.get": {
|
|
7414
|
-
"description": "
|
|
7857
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-cnb-detail:r",
|
|
7415
7858
|
"operationId": "GetWorkspaceDetail",
|
|
7416
7859
|
"tags": [
|
|
7417
7860
|
"Workspace"
|
|
7418
7861
|
],
|
|
7419
|
-
"summary": "根据流水线sn
|
|
7862
|
+
"summary": "根据流水线sn查询云原生开发访问地址。Query cloud-native development access address by pipeline SN.",
|
|
7420
7863
|
"parameters": [
|
|
7421
7864
|
{
|
|
7422
|
-
"description": "
|
|
7865
|
+
"description": "Repo path",
|
|
7423
7866
|
"in": "path",
|
|
7424
7867
|
"name": "repo",
|
|
7425
7868
|
"required": true,
|
|
7426
7869
|
"type": "string"
|
|
7427
7870
|
},
|
|
7428
7871
|
{
|
|
7429
|
-
"description": "
|
|
7872
|
+
"description": "SN",
|
|
7430
7873
|
"in": "path",
|
|
7431
7874
|
"name": "sn",
|
|
7432
7875
|
"required": true,
|
|
@@ -7445,22 +7888,22 @@
|
|
|
7445
7888
|
"method": "get"
|
|
7446
7889
|
},
|
|
7447
7890
|
"slug.packages.list": {
|
|
7448
|
-
"description": "
|
|
7891
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7449
7892
|
"operationId": "ListPackages",
|
|
7450
7893
|
"tags": [
|
|
7451
7894
|
"Artifactory"
|
|
7452
7895
|
],
|
|
7453
|
-
"summary": "List all packages",
|
|
7896
|
+
"summary": "查询制品列表。 List all packages.",
|
|
7454
7897
|
"parameters": [
|
|
7455
7898
|
{
|
|
7456
|
-
"description": "
|
|
7899
|
+
"description": "Slug",
|
|
7457
7900
|
"in": "path",
|
|
7458
7901
|
"name": "slug",
|
|
7459
7902
|
"required": true,
|
|
7460
7903
|
"type": "string"
|
|
7461
7904
|
},
|
|
7462
7905
|
{
|
|
7463
|
-
"description": "
|
|
7906
|
+
"description": "Type",
|
|
7464
7907
|
"enum": [
|
|
7465
7908
|
"all",
|
|
7466
7909
|
"docker",
|
|
@@ -7476,20 +7919,20 @@
|
|
|
7476
7919
|
},
|
|
7477
7920
|
{
|
|
7478
7921
|
"default": 1,
|
|
7479
|
-
"description": "
|
|
7922
|
+
"description": "Pagination page number",
|
|
7480
7923
|
"in": "query",
|
|
7481
7924
|
"name": "page",
|
|
7482
7925
|
"type": "integer"
|
|
7483
7926
|
},
|
|
7484
7927
|
{
|
|
7485
7928
|
"default": 10,
|
|
7486
|
-
"description": "
|
|
7929
|
+
"description": "Pagination page size",
|
|
7487
7930
|
"in": "query",
|
|
7488
7931
|
"name": "page_size",
|
|
7489
7932
|
"type": "integer"
|
|
7490
7933
|
},
|
|
7491
7934
|
{
|
|
7492
|
-
"description": "
|
|
7935
|
+
"description": "Ordering type",
|
|
7493
7936
|
"enum": [
|
|
7494
7937
|
"pull_count",
|
|
7495
7938
|
"last_push_at",
|
|
@@ -7501,7 +7944,7 @@
|
|
|
7501
7944
|
"type": "string"
|
|
7502
7945
|
},
|
|
7503
7946
|
{
|
|
7504
|
-
"description": "
|
|
7947
|
+
"description": "Key word to search package name",
|
|
7505
7948
|
"in": "query",
|
|
7506
7949
|
"name": "name",
|
|
7507
7950
|
"type": "string"
|
|
@@ -7528,22 +7971,22 @@
|
|
|
7528
7971
|
"method": "get"
|
|
7529
7972
|
},
|
|
7530
7973
|
"slug.packages.head": {
|
|
7531
|
-
"description": "
|
|
7974
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7532
7975
|
"operationId": "HeadPackages",
|
|
7533
7976
|
"tags": [
|
|
7534
7977
|
"Artifactory"
|
|
7535
7978
|
],
|
|
7536
|
-
"summary": "Head all packages",
|
|
7979
|
+
"summary": "查询制品数量。 Head all packages.",
|
|
7537
7980
|
"parameters": [
|
|
7538
7981
|
{
|
|
7539
|
-
"description": "
|
|
7982
|
+
"description": "Slug",
|
|
7540
7983
|
"in": "path",
|
|
7541
7984
|
"name": "slug",
|
|
7542
7985
|
"required": true,
|
|
7543
7986
|
"type": "string"
|
|
7544
7987
|
},
|
|
7545
7988
|
{
|
|
7546
|
-
"description": "
|
|
7989
|
+
"description": "Type",
|
|
7547
7990
|
"enum": [
|
|
7548
7991
|
"all",
|
|
7549
7992
|
"docker",
|
|
@@ -7556,20 +7999,20 @@
|
|
|
7556
7999
|
},
|
|
7557
8000
|
{
|
|
7558
8001
|
"default": 1,
|
|
7559
|
-
"description": "
|
|
8002
|
+
"description": "Pagination page number",
|
|
7560
8003
|
"in": "query",
|
|
7561
8004
|
"name": "page",
|
|
7562
8005
|
"type": "integer"
|
|
7563
8006
|
},
|
|
7564
8007
|
{
|
|
7565
8008
|
"default": 10,
|
|
7566
|
-
"description": "
|
|
8009
|
+
"description": "Pagination page size",
|
|
7567
8010
|
"in": "query",
|
|
7568
8011
|
"name": "page_size",
|
|
7569
8012
|
"type": "integer"
|
|
7570
8013
|
},
|
|
7571
8014
|
{
|
|
7572
|
-
"description": "
|
|
8015
|
+
"description": "Ordering type",
|
|
7573
8016
|
"enum": [
|
|
7574
8017
|
"pull_count",
|
|
7575
8018
|
"last_push_at",
|
|
@@ -7581,7 +8024,7 @@
|
|
|
7581
8024
|
"type": "string"
|
|
7582
8025
|
},
|
|
7583
8026
|
{
|
|
7584
|
-
"description": "
|
|
8027
|
+
"description": "key word to search package",
|
|
7585
8028
|
"in": "query",
|
|
7586
8029
|
"name": "name",
|
|
7587
8030
|
"type": "string"
|
|
@@ -7599,22 +8042,22 @@
|
|
|
7599
8042
|
"method": "head"
|
|
7600
8043
|
},
|
|
7601
8044
|
"slug.packages.type.quota.get": {
|
|
7602
|
-
"description": "
|
|
8045
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7603
8046
|
"operationId": "GetQuotaByProjectName",
|
|
7604
8047
|
"tags": [
|
|
7605
8048
|
"Artifactory"
|
|
7606
8049
|
],
|
|
7607
|
-
"summary": "Get quota of specific registry",
|
|
8050
|
+
"summary": "查询制品配额。 Get quota of specific registry.",
|
|
7608
8051
|
"parameters": [
|
|
7609
8052
|
{
|
|
7610
|
-
"description": "
|
|
8053
|
+
"description": "Slug",
|
|
7611
8054
|
"in": "path",
|
|
7612
8055
|
"name": "slug",
|
|
7613
8056
|
"required": true,
|
|
7614
8057
|
"type": "string"
|
|
7615
8058
|
},
|
|
7616
8059
|
{
|
|
7617
|
-
"description": "
|
|
8060
|
+
"description": "Type",
|
|
7618
8061
|
"enum": [
|
|
7619
8062
|
"docker",
|
|
7620
8063
|
"helm",
|
|
@@ -7646,22 +8089,22 @@
|
|
|
7646
8089
|
"method": "get"
|
|
7647
8090
|
},
|
|
7648
8091
|
"slug.packages.type.quotas.list": {
|
|
7649
|
-
"description": "
|
|
8092
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7650
8093
|
"operationId": "GetQuotasByProjectName",
|
|
7651
8094
|
"tags": [
|
|
7652
8095
|
"Artifactory"
|
|
7653
8096
|
],
|
|
7654
|
-
"summary": "Get quotas of packages under one registry",
|
|
8097
|
+
"summary": "查询全部制品配额。 Get quotas of packages under one registry.",
|
|
7655
8098
|
"parameters": [
|
|
7656
8099
|
{
|
|
7657
|
-
"description": "
|
|
8100
|
+
"description": "Slug",
|
|
7658
8101
|
"in": "path",
|
|
7659
8102
|
"name": "slug",
|
|
7660
8103
|
"required": true,
|
|
7661
8104
|
"type": "string"
|
|
7662
8105
|
},
|
|
7663
8106
|
{
|
|
7664
|
-
"description": "
|
|
8107
|
+
"description": "Type",
|
|
7665
8108
|
"enum": [
|
|
7666
8109
|
"docker",
|
|
7667
8110
|
"helm",
|
|
@@ -7676,20 +8119,20 @@
|
|
|
7676
8119
|
},
|
|
7677
8120
|
{
|
|
7678
8121
|
"default": 1,
|
|
7679
|
-
"description": "
|
|
8122
|
+
"description": "Pagination page number",
|
|
7680
8123
|
"in": "query",
|
|
7681
8124
|
"name": "page",
|
|
7682
8125
|
"type": "integer"
|
|
7683
8126
|
},
|
|
7684
8127
|
{
|
|
7685
8128
|
"default": 10,
|
|
7686
|
-
"description": "
|
|
8129
|
+
"description": "Pagination page size",
|
|
7687
8130
|
"in": "query",
|
|
7688
8131
|
"name": "page_size",
|
|
7689
8132
|
"type": "integer"
|
|
7690
8133
|
},
|
|
7691
8134
|
{
|
|
7692
|
-
"description": "
|
|
8135
|
+
"description": "Ordering type",
|
|
7693
8136
|
"enum": [
|
|
7694
8137
|
"used_ascend",
|
|
7695
8138
|
"used_descend"
|
|
@@ -7720,22 +8163,22 @@
|
|
|
7720
8163
|
"method": "get"
|
|
7721
8164
|
},
|
|
7722
8165
|
"slug.packages.type.quotas.download.list": {
|
|
7723
|
-
"description": "
|
|
8166
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7724
8167
|
"operationId": "DownloadQuotasByProjectName",
|
|
7725
8168
|
"tags": [
|
|
7726
8169
|
"Artifactory"
|
|
7727
8170
|
],
|
|
7728
|
-
"summary": "Download registry quota details",
|
|
8171
|
+
"summary": "下载制品配额信息。 Download registry quota details.",
|
|
7729
8172
|
"parameters": [
|
|
7730
8173
|
{
|
|
7731
|
-
"description": "
|
|
8174
|
+
"description": "Slug",
|
|
7732
8175
|
"in": "path",
|
|
7733
8176
|
"name": "slug",
|
|
7734
8177
|
"required": true,
|
|
7735
8178
|
"type": "string"
|
|
7736
8179
|
},
|
|
7737
8180
|
{
|
|
7738
|
-
"description": "
|
|
8181
|
+
"description": "Type",
|
|
7739
8182
|
"enum": [
|
|
7740
8183
|
"docker",
|
|
7741
8184
|
"helm",
|
|
@@ -7750,20 +8193,20 @@
|
|
|
7750
8193
|
},
|
|
7751
8194
|
{
|
|
7752
8195
|
"default": 1,
|
|
7753
|
-
"description": "
|
|
8196
|
+
"description": "Pagination page number",
|
|
7754
8197
|
"in": "query",
|
|
7755
8198
|
"name": "page",
|
|
7756
8199
|
"type": "integer"
|
|
7757
8200
|
},
|
|
7758
8201
|
{
|
|
7759
8202
|
"default": 10,
|
|
7760
|
-
"description": "
|
|
8203
|
+
"description": "Pagination page size",
|
|
7761
8204
|
"in": "query",
|
|
7762
8205
|
"name": "page_size",
|
|
7763
8206
|
"type": "integer"
|
|
7764
8207
|
},
|
|
7765
8208
|
{
|
|
7766
|
-
"description": "
|
|
8209
|
+
"description": "Ordering type",
|
|
7767
8210
|
"enum": [
|
|
7768
8211
|
"used_ascend",
|
|
7769
8212
|
"used_descend"
|
|
@@ -7794,22 +8237,22 @@
|
|
|
7794
8237
|
"method": "get"
|
|
7795
8238
|
},
|
|
7796
8239
|
"slug.packages.get": {
|
|
7797
|
-
"description": "
|
|
8240
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7798
8241
|
"operationId": "GetPackage",
|
|
7799
8242
|
"tags": [
|
|
7800
8243
|
"Artifactory"
|
|
7801
8244
|
],
|
|
7802
|
-
"summary": "Get the
|
|
8245
|
+
"summary": "获取某一制品的详细信息。 Get the package detail.",
|
|
7803
8246
|
"parameters": [
|
|
7804
8247
|
{
|
|
7805
|
-
"description": "
|
|
8248
|
+
"description": "Slug",
|
|
7806
8249
|
"in": "path",
|
|
7807
8250
|
"name": "slug",
|
|
7808
8251
|
"required": true,
|
|
7809
8252
|
"type": "string"
|
|
7810
8253
|
},
|
|
7811
8254
|
{
|
|
7812
|
-
"description": "
|
|
8255
|
+
"description": "Type",
|
|
7813
8256
|
"enum": [
|
|
7814
8257
|
"docker",
|
|
7815
8258
|
"helm",
|
|
@@ -7823,7 +8266,7 @@
|
|
|
7823
8266
|
"type": "string"
|
|
7824
8267
|
},
|
|
7825
8268
|
{
|
|
7826
|
-
"description": "
|
|
8269
|
+
"description": "Name",
|
|
7827
8270
|
"in": "path",
|
|
7828
8271
|
"name": "name",
|
|
7829
8272
|
"required": true,
|
|
@@ -7842,22 +8285,22 @@
|
|
|
7842
8285
|
"method": "get"
|
|
7843
8286
|
},
|
|
7844
8287
|
"slug.packages.name.tag.delete": {
|
|
7845
|
-
"description": "
|
|
8288
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw",
|
|
7846
8289
|
"operationId": "DeletePackageTag",
|
|
7847
8290
|
"tags": [
|
|
7848
8291
|
"Artifactory"
|
|
7849
8292
|
],
|
|
7850
|
-
"summary": "Delete the specific tag under specific package",
|
|
8293
|
+
"summary": "删除制品标签。 Delete the specific tag under specific package",
|
|
7851
8294
|
"parameters": [
|
|
7852
8295
|
{
|
|
7853
|
-
"description": "
|
|
8296
|
+
"description": "Slug",
|
|
7854
8297
|
"in": "path",
|
|
7855
8298
|
"name": "slug",
|
|
7856
8299
|
"required": true,
|
|
7857
8300
|
"type": "string"
|
|
7858
8301
|
},
|
|
7859
8302
|
{
|
|
7860
|
-
"description": "
|
|
8303
|
+
"description": "Type",
|
|
7861
8304
|
"enum": [
|
|
7862
8305
|
"docker",
|
|
7863
8306
|
"helm",
|
|
@@ -7871,14 +8314,14 @@
|
|
|
7871
8314
|
"type": "string"
|
|
7872
8315
|
},
|
|
7873
8316
|
{
|
|
7874
|
-
"description": "
|
|
8317
|
+
"description": "Name",
|
|
7875
8318
|
"in": "path",
|
|
7876
8319
|
"name": "name",
|
|
7877
8320
|
"required": true,
|
|
7878
8321
|
"type": "string"
|
|
7879
8322
|
},
|
|
7880
8323
|
{
|
|
7881
|
-
"description": "
|
|
8324
|
+
"description": "Tag",
|
|
7882
8325
|
"in": "path",
|
|
7883
8326
|
"name": "tag",
|
|
7884
8327
|
"required": true,
|
|
@@ -7894,22 +8337,22 @@
|
|
|
7894
8337
|
"method": "delete"
|
|
7895
8338
|
},
|
|
7896
8339
|
"slug.packages.name.tag.get": {
|
|
7897
|
-
"description": "
|
|
8340
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7898
8341
|
"operationId": "GetPackageTagDetail",
|
|
7899
8342
|
"tags": [
|
|
7900
8343
|
"Artifactory"
|
|
7901
8344
|
],
|
|
7902
|
-
"summary": "Get the specific tag under specific package",
|
|
8345
|
+
"summary": "获取制品标签详情。 Get the specific tag under specific package.",
|
|
7903
8346
|
"parameters": [
|
|
7904
8347
|
{
|
|
7905
|
-
"description": "
|
|
8348
|
+
"description": "Slug",
|
|
7906
8349
|
"in": "path",
|
|
7907
8350
|
"name": "slug",
|
|
7908
8351
|
"required": true,
|
|
7909
8352
|
"type": "string"
|
|
7910
8353
|
},
|
|
7911
8354
|
{
|
|
7912
|
-
"description": "
|
|
8355
|
+
"description": "Type",
|
|
7913
8356
|
"enum": [
|
|
7914
8357
|
"docker",
|
|
7915
8358
|
"helm",
|
|
@@ -7923,21 +8366,21 @@
|
|
|
7923
8366
|
"type": "string"
|
|
7924
8367
|
},
|
|
7925
8368
|
{
|
|
7926
|
-
"description": "
|
|
8369
|
+
"description": "Name",
|
|
7927
8370
|
"in": "path",
|
|
7928
8371
|
"name": "name",
|
|
7929
8372
|
"required": true,
|
|
7930
8373
|
"type": "string"
|
|
7931
8374
|
},
|
|
7932
8375
|
{
|
|
7933
|
-
"description": "
|
|
8376
|
+
"description": "Tag",
|
|
7934
8377
|
"in": "path",
|
|
7935
8378
|
"name": "tag",
|
|
7936
8379
|
"required": true,
|
|
7937
8380
|
"type": "string"
|
|
7938
8381
|
},
|
|
7939
8382
|
{
|
|
7940
|
-
"description": "
|
|
8383
|
+
"description": "摘要,容器制品时必须。Digest (SHA256), required for container artifacts.",
|
|
7941
8384
|
"in": "query",
|
|
7942
8385
|
"name": "sha256",
|
|
7943
8386
|
"type": "string"
|
|
@@ -7955,22 +8398,22 @@
|
|
|
7955
8398
|
"method": "get"
|
|
7956
8399
|
},
|
|
7957
8400
|
"slug.packages.pkgname.tags.get": {
|
|
7958
|
-
"description": "
|
|
8401
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
7959
8402
|
"operationId": "ListPackageTags",
|
|
7960
8403
|
"tags": [
|
|
7961
8404
|
"Artifactory"
|
|
7962
8405
|
],
|
|
7963
|
-
"summary": "List all tags under specific package",
|
|
8406
|
+
"summary": "查询制品标签列表。 List all tags under specific package.",
|
|
7964
8407
|
"parameters": [
|
|
7965
8408
|
{
|
|
7966
|
-
"description": "
|
|
8409
|
+
"description": "Slug",
|
|
7967
8410
|
"in": "path",
|
|
7968
8411
|
"name": "slug",
|
|
7969
8412
|
"required": true,
|
|
7970
8413
|
"type": "string"
|
|
7971
8414
|
},
|
|
7972
8415
|
{
|
|
7973
|
-
"description": "
|
|
8416
|
+
"description": "Type",
|
|
7974
8417
|
"enum": [
|
|
7975
8418
|
"docker",
|
|
7976
8419
|
"helm",
|
|
@@ -7984,7 +8427,7 @@
|
|
|
7984
8427
|
"type": "string"
|
|
7985
8428
|
},
|
|
7986
8429
|
{
|
|
7987
|
-
"description": "
|
|
8430
|
+
"description": "Package name",
|
|
7988
8431
|
"in": "path",
|
|
7989
8432
|
"name": "pkgname",
|
|
7990
8433
|
"required": true,
|
|
@@ -7992,20 +8435,20 @@
|
|
|
7992
8435
|
},
|
|
7993
8436
|
{
|
|
7994
8437
|
"default": 1,
|
|
7995
|
-
"description": "
|
|
8438
|
+
"description": "Pagination page number",
|
|
7996
8439
|
"in": "query",
|
|
7997
8440
|
"name": "page",
|
|
7998
8441
|
"type": "integer"
|
|
7999
8442
|
},
|
|
8000
8443
|
{
|
|
8001
8444
|
"default": 10,
|
|
8002
|
-
"description": "
|
|
8445
|
+
"description": "Pagination page size",
|
|
8003
8446
|
"in": "query",
|
|
8004
8447
|
"name": "page_size",
|
|
8005
8448
|
"type": "integer"
|
|
8006
8449
|
},
|
|
8007
8450
|
{
|
|
8008
|
-
"description": "
|
|
8451
|
+
"description": "Ordering type",
|
|
8009
8452
|
"enum": [
|
|
8010
8453
|
"pull_count",
|
|
8011
8454
|
"last_push_at"
|
|
@@ -8015,7 +8458,7 @@
|
|
|
8015
8458
|
"type": "string"
|
|
8016
8459
|
},
|
|
8017
8460
|
{
|
|
8018
|
-
"description": "
|
|
8461
|
+
"description": "Key word",
|
|
8019
8462
|
"in": "query",
|
|
8020
8463
|
"name": "name",
|
|
8021
8464
|
"type": "string"
|