node-cnb 1.6.1 → 1.7.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/README.md +7 -2
- package/dist/paths.json +1078 -77
- package/package.json +1 -1
- package/pathMethodMap.json +0 -2
- package/src/client.d.ts +346 -34
- package/src/types.d.ts +253 -1
package/dist/paths.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"groups.post": [
|
|
3
3
|
{
|
|
4
4
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
5
|
+
"operationId": "CreateOrganization",
|
|
5
6
|
"summary": "创建新组织",
|
|
6
7
|
"parameters": [
|
|
7
8
|
{
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"user.get": [
|
|
27
28
|
{
|
|
28
29
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
30
|
+
"operationId": "GetUserInfo",
|
|
29
31
|
"summary": "获取指定用户的详情信息",
|
|
30
32
|
"parameters": [],
|
|
31
33
|
"responses": {
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
"user.post": [
|
|
44
46
|
{
|
|
45
47
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:rw",
|
|
48
|
+
"operationId": "UpdateUserInfo",
|
|
46
49
|
"summary": "更新指定用户的详情信息, 可更新内容为: 昵称, 个人签名, 微信公众号名称, 微信公众号二维码链接, 个人网站, 个人地址, 公司名称",
|
|
47
50
|
"parameters": [
|
|
48
51
|
{
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
"user.autocompleteSource.list": [
|
|
68
71
|
{
|
|
69
72
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
73
|
+
"operationId": "AutoCompleteSource",
|
|
70
74
|
"summary": "查询当前用户用户拥有指定权限的所有资源列表",
|
|
71
75
|
"parameters": [
|
|
72
76
|
{
|
|
@@ -131,6 +135,7 @@
|
|
|
131
135
|
"user.groups.list": [
|
|
132
136
|
{
|
|
133
137
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
138
|
+
"operationId": "ListTopGroups",
|
|
134
139
|
"summary": "获取当前用户拥有权限的顶层组织列表",
|
|
135
140
|
"parameters": [
|
|
136
141
|
{
|
|
@@ -186,6 +191,7 @@
|
|
|
186
191
|
"user.groups.listByGroup": [
|
|
187
192
|
{
|
|
188
193
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
194
|
+
"operationId": "ListGroups",
|
|
189
195
|
"summary": "查询当前用户在指定组织下拥有指定权限的子组织列表",
|
|
190
196
|
"parameters": [
|
|
191
197
|
{
|
|
@@ -235,6 +241,7 @@
|
|
|
235
241
|
"user.repos.list": [
|
|
236
242
|
{
|
|
237
243
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
244
|
+
"operationId": "GetRepos",
|
|
238
245
|
"summary": "获取当前用户拥有指定权限及其以上权限的仓库",
|
|
239
246
|
"parameters": [
|
|
240
247
|
{
|
|
@@ -318,6 +325,7 @@
|
|
|
318
325
|
"user.staredRepos.list": [
|
|
319
326
|
{
|
|
320
327
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
328
|
+
"operationId": "GetUserAllStaredRepos",
|
|
321
329
|
"summary": "获取当前用户 star 的仓库列表",
|
|
322
330
|
"parameters": [
|
|
323
331
|
{
|
|
@@ -378,6 +386,7 @@
|
|
|
378
386
|
"users.get": [
|
|
379
387
|
{
|
|
380
388
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
389
|
+
"operationId": "GetUserInfoByName",
|
|
381
390
|
"summary": "获取指定用户的详情信息",
|
|
382
391
|
"parameters": [
|
|
383
392
|
{
|
|
@@ -404,6 +413,7 @@
|
|
|
404
413
|
"users.avatar.get": [
|
|
405
414
|
{
|
|
406
415
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
416
|
+
"operationId": "GetUserAvatar",
|
|
407
417
|
"summary": "获取指定用户的用户头像",
|
|
408
418
|
"parameters": [
|
|
409
419
|
{
|
|
@@ -430,6 +440,7 @@
|
|
|
430
440
|
"users.followers.list": [
|
|
431
441
|
{
|
|
432
442
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
443
|
+
"operationId": "GetFollowersByUserID",
|
|
433
444
|
"summary": "获取指定用户的粉丝列表",
|
|
434
445
|
"parameters": [
|
|
435
446
|
{
|
|
@@ -473,6 +484,7 @@
|
|
|
473
484
|
"users.following.list": [
|
|
474
485
|
{
|
|
475
486
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
487
|
+
"operationId": "GetFollowingByUserID",
|
|
476
488
|
"summary": "获取指定用户的关注人列表",
|
|
477
489
|
"parameters": [
|
|
478
490
|
{
|
|
@@ -516,6 +528,7 @@
|
|
|
516
528
|
"users.groups.get": [
|
|
517
529
|
{
|
|
518
530
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
531
|
+
"operationId": "GetGroupsByUserID",
|
|
519
532
|
"summary": "获取指定用户拥有权限的顶层组织列表",
|
|
520
533
|
"parameters": [
|
|
521
534
|
{
|
|
@@ -580,6 +593,7 @@
|
|
|
580
593
|
"users.pinnedRepos.list": [
|
|
581
594
|
{
|
|
582
595
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
596
|
+
"operationId": "GetPinnedRepoByID",
|
|
583
597
|
"summary": "获取指定用户的用户仓库墙",
|
|
584
598
|
"parameters": [
|
|
585
599
|
{
|
|
@@ -609,6 +623,7 @@
|
|
|
609
623
|
"users.repos.list": [
|
|
610
624
|
{
|
|
611
625
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
626
|
+
"operationId": "GetReposByUserName",
|
|
612
627
|
"summary": "获取指定用户有指定以上权限并且客人态可见的仓库",
|
|
613
628
|
"parameters": [
|
|
614
629
|
{
|
|
@@ -689,6 +704,7 @@
|
|
|
689
704
|
"users.staredRepos.list": [
|
|
690
705
|
{
|
|
691
706
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
707
|
+
"operationId": "GetUserStaredRepos",
|
|
692
708
|
"summary": "获取指定用户的 star 仓库列表",
|
|
693
709
|
"parameters": [
|
|
694
710
|
{
|
|
@@ -757,6 +773,7 @@
|
|
|
757
773
|
"workspace.delete.post": [
|
|
758
774
|
{
|
|
759
775
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:rw",
|
|
776
|
+
"operationId": "DeleteWorkspace",
|
|
760
777
|
"summary": "删除我的云原生开发环境",
|
|
761
778
|
"parameters": [
|
|
762
779
|
{
|
|
@@ -784,6 +801,7 @@
|
|
|
784
801
|
"workspace.list.get": [
|
|
785
802
|
{
|
|
786
803
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
804
|
+
"operationId": "ListWorkspaces",
|
|
787
805
|
"summary": "获取我的云原生开发环境列表",
|
|
788
806
|
"parameters": [
|
|
789
807
|
{
|
|
@@ -841,9 +859,39 @@
|
|
|
841
859
|
"method": "get"
|
|
842
860
|
}
|
|
843
861
|
],
|
|
862
|
+
"group.delete": [
|
|
863
|
+
{
|
|
864
|
+
"description": "访问令牌调用此接口需包含以下权限 \ngroup-delete:rw",
|
|
865
|
+
"operationId": "DeleteOrganization",
|
|
866
|
+
"summary": "删除指定组织",
|
|
867
|
+
"parameters": [
|
|
868
|
+
{
|
|
869
|
+
"description": "group path",
|
|
870
|
+
"in": "path",
|
|
871
|
+
"name": "group",
|
|
872
|
+
"required": true,
|
|
873
|
+
"type": "string"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
877
|
+
"in": "header",
|
|
878
|
+
"name": "x-cnb-identity-ticket",
|
|
879
|
+
"type": "string"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"responses": {
|
|
883
|
+
"200": {
|
|
884
|
+
"description": "OK"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"path": "/{group}",
|
|
888
|
+
"method": "delete"
|
|
889
|
+
}
|
|
890
|
+
],
|
|
844
891
|
"group.get": [
|
|
845
892
|
{
|
|
846
893
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
894
|
+
"operationId": "GetGroup",
|
|
847
895
|
"summary": "获取指定组织信息",
|
|
848
896
|
"parameters": [
|
|
849
897
|
{
|
|
@@ -864,9 +912,12 @@
|
|
|
864
912
|
},
|
|
865
913
|
"path": "/{group}",
|
|
866
914
|
"method": "get"
|
|
867
|
-
}
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"group.put": [
|
|
868
918
|
{
|
|
869
919
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
920
|
+
"operationId": "UpdateOrganization",
|
|
870
921
|
"summary": "更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱",
|
|
871
922
|
"parameters": [
|
|
872
923
|
{
|
|
@@ -898,6 +949,7 @@
|
|
|
898
949
|
"group.avatar.put": [
|
|
899
950
|
{
|
|
900
951
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
952
|
+
"operationId": "UpdateGroupAvatar",
|
|
901
953
|
"summary": "更新组织头像 URL 地址",
|
|
902
954
|
"parameters": [
|
|
903
955
|
{
|
|
@@ -929,6 +981,7 @@
|
|
|
929
981
|
"group.inheritMembers.list": [
|
|
930
982
|
{
|
|
931
983
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
984
|
+
"operationId": "ListInheritMembers",
|
|
932
985
|
"summary": "获取指定组织或仓库内的继承成员",
|
|
933
986
|
"parameters": [
|
|
934
987
|
{
|
|
@@ -991,6 +1044,7 @@
|
|
|
991
1044
|
"group.listMembers.list": [
|
|
992
1045
|
{
|
|
993
1046
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1047
|
+
"operationId": "ListAllMembers",
|
|
994
1048
|
"summary": "获取指定组织或仓库内的有效成员列表,包含继承成员",
|
|
995
1049
|
"parameters": [
|
|
996
1050
|
{
|
|
@@ -1078,6 +1132,7 @@
|
|
|
1078
1132
|
"group.logos.put": [
|
|
1079
1133
|
{
|
|
1080
1134
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1135
|
+
"operationId": "PutLogos",
|
|
1081
1136
|
"summary": "确认上传的logo",
|
|
1082
1137
|
"parameters": [
|
|
1083
1138
|
{
|
|
@@ -1108,6 +1163,7 @@
|
|
|
1108
1163
|
"group.logos.get": [
|
|
1109
1164
|
{
|
|
1110
1165
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1166
|
+
"operationId": "GetLogos",
|
|
1111
1167
|
"summary": "发起一个获取 logo 的请求,返回内容或者 302 到某个地址",
|
|
1112
1168
|
"parameters": [
|
|
1113
1169
|
{
|
|
@@ -1137,6 +1193,7 @@
|
|
|
1137
1193
|
"group.members.list": [
|
|
1138
1194
|
{
|
|
1139
1195
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1196
|
+
"operationId": "ListMembers",
|
|
1140
1197
|
"summary": "获取指定组织或仓库内的所有直接成员",
|
|
1141
1198
|
"parameters": [
|
|
1142
1199
|
{
|
|
@@ -1199,6 +1256,7 @@
|
|
|
1199
1256
|
"group.members.accessLevel.get": [
|
|
1200
1257
|
{
|
|
1201
1258
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1259
|
+
"operationId": "GetMemberAccessLevel",
|
|
1202
1260
|
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息",
|
|
1203
1261
|
"parameters": [
|
|
1204
1262
|
{
|
|
@@ -1231,6 +1289,7 @@
|
|
|
1231
1289
|
"group.members.delete": [
|
|
1232
1290
|
{
|
|
1233
1291
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1292
|
+
"operationId": "DeleteMembers",
|
|
1234
1293
|
"summary": "删除指定组织或仓库的直接成员, 包含两种场景: 1. 作为直接成员的用户自己退出 2. 由管理者移除指定的直接成员",
|
|
1235
1294
|
"parameters": [
|
|
1236
1295
|
{
|
|
@@ -1260,6 +1319,7 @@
|
|
|
1260
1319
|
"group.members.put": [
|
|
1261
1320
|
{
|
|
1262
1321
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1322
|
+
"operationId": "UpdateMembers",
|
|
1263
1323
|
"summary": "更新指定组织或仓库内的直接成员权限信息",
|
|
1264
1324
|
"parameters": [
|
|
1265
1325
|
{
|
|
@@ -1298,6 +1358,7 @@
|
|
|
1298
1358
|
"group.members.accessLevel.list": [
|
|
1299
1359
|
{
|
|
1300
1360
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1361
|
+
"operationId": "ListMemberAccessLevel",
|
|
1301
1362
|
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息",
|
|
1302
1363
|
"parameters": [
|
|
1303
1364
|
{
|
|
@@ -1333,6 +1394,7 @@
|
|
|
1333
1394
|
"group.pinnedRepos.list": [
|
|
1334
1395
|
{
|
|
1335
1396
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1397
|
+
"operationId": "GetPinnedRepoByGroup",
|
|
1336
1398
|
"summary": "获取指定组织的仓库墙列表",
|
|
1337
1399
|
"parameters": [
|
|
1338
1400
|
{
|
|
@@ -1361,6 +1423,7 @@
|
|
|
1361
1423
|
"group.pinnedRepos.put": [
|
|
1362
1424
|
{
|
|
1363
1425
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1426
|
+
"operationId": "SetPinnedRepoByGroup",
|
|
1364
1427
|
"summary": "更新指定组织仓库墙",
|
|
1365
1428
|
"parameters": [
|
|
1366
1429
|
{
|
|
@@ -1401,6 +1464,7 @@
|
|
|
1401
1464
|
"group.repos.list": [
|
|
1402
1465
|
{
|
|
1403
1466
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1467
|
+
"operationId": "GetGroupSubRepos",
|
|
1404
1468
|
"summary": "查询组织下访问用户有权限查看到仓库",
|
|
1405
1469
|
"parameters": [
|
|
1406
1470
|
{
|
|
@@ -1489,6 +1553,7 @@
|
|
|
1489
1553
|
"group.repos.post": [
|
|
1490
1554
|
{
|
|
1491
1555
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:rw",
|
|
1556
|
+
"operationId": "CreateRepo",
|
|
1492
1557
|
"summary": "创建仓库",
|
|
1493
1558
|
"parameters": [
|
|
1494
1559
|
{
|
|
@@ -1521,6 +1586,7 @@
|
|
|
1521
1586
|
"group.settings.get": [
|
|
1522
1587
|
{
|
|
1523
1588
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1589
|
+
"operationId": "GetGroupSetting",
|
|
1524
1590
|
"summary": "获取指定组织的配置详情",
|
|
1525
1591
|
"parameters": [
|
|
1526
1592
|
{
|
|
@@ -1546,6 +1612,7 @@
|
|
|
1546
1612
|
"group.settings.put": [
|
|
1547
1613
|
{
|
|
1548
1614
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1615
|
+
"operationId": "UpdateGroupSetting",
|
|
1549
1616
|
"summary": "更新指定组织的配置, 可更新内容为: 是否对外隐藏组织成员",
|
|
1550
1617
|
"parameters": [
|
|
1551
1618
|
{
|
|
@@ -1577,6 +1644,7 @@
|
|
|
1577
1644
|
"group.subGroups.list": [
|
|
1578
1645
|
{
|
|
1579
1646
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1647
|
+
"operationId": "ListSubgroups",
|
|
1580
1648
|
"summary": "获取指定组织下的子组织列表",
|
|
1581
1649
|
"parameters": [
|
|
1582
1650
|
{
|
|
@@ -1628,6 +1696,7 @@
|
|
|
1628
1696
|
"group.upload.logos.post": [
|
|
1629
1697
|
{
|
|
1630
1698
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1699
|
+
"operationId": "UploadLogos",
|
|
1631
1700
|
"summary": "发起一个上传 logo 的请求,返回上传 cos 的 url 和 form 内容",
|
|
1632
1701
|
"parameters": [
|
|
1633
1702
|
{
|
|
@@ -1660,41 +1729,81 @@
|
|
|
1660
1729
|
"method": "post"
|
|
1661
1730
|
}
|
|
1662
1731
|
],
|
|
1663
|
-
"
|
|
1732
|
+
"mission.delete": [
|
|
1664
1733
|
{
|
|
1665
|
-
"description": "访问令牌调用此接口需包含以下权限 \
|
|
1666
|
-
"
|
|
1734
|
+
"description": "访问令牌调用此接口需包含以下权限 \nmission-delete:rw",
|
|
1735
|
+
"operationId": "DeleteMission",
|
|
1736
|
+
"summary": "删除指定任务集",
|
|
1667
1737
|
"parameters": [
|
|
1668
1738
|
{
|
|
1669
|
-
"description": "
|
|
1739
|
+
"description": "mission path",
|
|
1670
1740
|
"in": "path",
|
|
1671
|
-
"name": "
|
|
1741
|
+
"name": "mission",
|
|
1672
1742
|
"required": true,
|
|
1673
1743
|
"type": "string"
|
|
1674
1744
|
},
|
|
1675
1745
|
{
|
|
1676
|
-
"description": "
|
|
1677
|
-
"
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1746
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1747
|
+
"in": "header",
|
|
1748
|
+
"name": "x-cnb-identity-ticket",
|
|
1749
|
+
"type": "string"
|
|
1750
|
+
}
|
|
1751
|
+
],
|
|
1752
|
+
"responses": {
|
|
1753
|
+
"200": {
|
|
1754
|
+
"description": "OK"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"path": "/{mission}",
|
|
1758
|
+
"method": "delete"
|
|
1759
|
+
}
|
|
1760
|
+
],
|
|
1761
|
+
"registry.delete": [
|
|
1762
|
+
{
|
|
1763
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-delete:rw",
|
|
1764
|
+
"operationId": "DeleteRegistry",
|
|
1765
|
+
"summary": "删除制品仓库",
|
|
1766
|
+
"parameters": [
|
|
1767
|
+
{
|
|
1768
|
+
"description": "registry path",
|
|
1681
1769
|
"in": "path",
|
|
1682
|
-
"name": "
|
|
1770
|
+
"name": "registry",
|
|
1683
1771
|
"required": true,
|
|
1684
1772
|
"type": "string"
|
|
1685
1773
|
},
|
|
1686
1774
|
{
|
|
1687
|
-
"description": "
|
|
1775
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1776
|
+
"in": "header",
|
|
1777
|
+
"name": "x-cnb-identity-ticket",
|
|
1778
|
+
"type": "string"
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"responses": {
|
|
1782
|
+
"200": {
|
|
1783
|
+
"description": "OK"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"path": "/{registry}",
|
|
1787
|
+
"method": "delete"
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"repo.delete": [
|
|
1791
|
+
{
|
|
1792
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-delete:rw",
|
|
1793
|
+
"operationId": "DeleteRepo",
|
|
1794
|
+
"summary": "删除指定仓库",
|
|
1795
|
+
"parameters": [
|
|
1796
|
+
{
|
|
1797
|
+
"description": "repo path",
|
|
1688
1798
|
"in": "path",
|
|
1689
|
-
"name": "
|
|
1799
|
+
"name": "repo",
|
|
1690
1800
|
"required": true,
|
|
1691
1801
|
"type": "string"
|
|
1692
1802
|
},
|
|
1693
1803
|
{
|
|
1694
|
-
"description": "
|
|
1695
|
-
"in": "
|
|
1696
|
-
"name": "
|
|
1697
|
-
"required": true,
|
|
1804
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1805
|
+
"in": "header",
|
|
1806
|
+
"name": "x-cnb-identity-ticket",
|
|
1698
1807
|
"type": "string"
|
|
1699
1808
|
}
|
|
1700
1809
|
],
|
|
@@ -1703,13 +1812,14 @@
|
|
|
1703
1812
|
"description": "OK"
|
|
1704
1813
|
}
|
|
1705
1814
|
},
|
|
1706
|
-
"path": "/{
|
|
1815
|
+
"path": "/{repo}",
|
|
1707
1816
|
"method": "delete"
|
|
1708
1817
|
}
|
|
1709
1818
|
],
|
|
1710
1819
|
"repo.get": [
|
|
1711
1820
|
{
|
|
1712
1821
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-basic-info:r",
|
|
1822
|
+
"operationId": "GetRepo",
|
|
1713
1823
|
"summary": "获取指定仓库信息",
|
|
1714
1824
|
"parameters": [
|
|
1715
1825
|
{
|
|
@@ -1730,9 +1840,12 @@
|
|
|
1730
1840
|
},
|
|
1731
1841
|
"path": "/{repo}",
|
|
1732
1842
|
"method": "get"
|
|
1733
|
-
}
|
|
1843
|
+
}
|
|
1844
|
+
],
|
|
1845
|
+
"repo.patch": [
|
|
1734
1846
|
{
|
|
1735
1847
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
1848
|
+
"operationId": "UpdateRepo",
|
|
1736
1849
|
"summary": "更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证",
|
|
1737
1850
|
"parameters": [
|
|
1738
1851
|
{
|
|
@@ -1764,6 +1877,7 @@
|
|
|
1764
1877
|
"repo.build.logs.get": [
|
|
1765
1878
|
{
|
|
1766
1879
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:r",
|
|
1880
|
+
"operationId": "GetBuildLogs",
|
|
1767
1881
|
"summary": "查询流水线构建列表",
|
|
1768
1882
|
"parameters": [
|
|
1769
1883
|
{
|
|
@@ -1861,6 +1975,7 @@
|
|
|
1861
1975
|
"repo.build.start.post": [
|
|
1862
1976
|
{
|
|
1863
1977
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:rw",
|
|
1978
|
+
"operationId": "StartBuild",
|
|
1864
1979
|
"summary": "开始一个构建",
|
|
1865
1980
|
"parameters": [
|
|
1866
1981
|
{
|
|
@@ -1898,6 +2013,7 @@
|
|
|
1898
2013
|
"repo.build.status.get": [
|
|
1899
2014
|
{
|
|
1900
2015
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:r",
|
|
2016
|
+
"operationId": "GetBuildStatus",
|
|
1901
2017
|
"summary": "查询流水线构建状态",
|
|
1902
2018
|
"parameters": [
|
|
1903
2019
|
{
|
|
@@ -1930,6 +2046,7 @@
|
|
|
1930
2046
|
"repo.build.stop.post": [
|
|
1931
2047
|
{
|
|
1932
2048
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:rw",
|
|
2049
|
+
"operationId": "StopBuild",
|
|
1933
2050
|
"summary": "停止一个构建",
|
|
1934
2051
|
"parameters": [
|
|
1935
2052
|
{
|
|
@@ -1965,6 +2082,7 @@
|
|
|
1965
2082
|
"repo.commitAssets.download.get": [
|
|
1966
2083
|
{
|
|
1967
2084
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
2085
|
+
"operationId": "GetCommitAssets",
|
|
1968
2086
|
"summary": "发起一个获取 commits 附件的请求,返回内容或者 302 到某个地址",
|
|
1969
2087
|
"parameters": [
|
|
1970
2088
|
{
|
|
@@ -1992,9 +2110,62 @@
|
|
|
1992
2110
|
"method": "get"
|
|
1993
2111
|
}
|
|
1994
2112
|
],
|
|
2113
|
+
"repo.contributor.trend.get": [
|
|
2114
|
+
{
|
|
2115
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2116
|
+
"operationId": "GetRepoContributorTrend",
|
|
2117
|
+
"summary": "查询仓库贡献者前 100 名的详细趋势数据",
|
|
2118
|
+
"parameters": [
|
|
2119
|
+
{
|
|
2120
|
+
"description": "slug",
|
|
2121
|
+
"in": "path",
|
|
2122
|
+
"name": "repo",
|
|
2123
|
+
"required": true,
|
|
2124
|
+
"type": "string"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"default": 14,
|
|
2128
|
+
"description": "limit, 0~100",
|
|
2129
|
+
"in": "query",
|
|
2130
|
+
"name": "limit",
|
|
2131
|
+
"type": "integer"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"default": false,
|
|
2135
|
+
"description": "exclude_external_users, true|false",
|
|
2136
|
+
"in": "query",
|
|
2137
|
+
"name": "exclude_external_users",
|
|
2138
|
+
"type": "boolean"
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"responses": {
|
|
2142
|
+
"200": {
|
|
2143
|
+
"description": "OK",
|
|
2144
|
+
"schema": {
|
|
2145
|
+
"$ref": "#/definitions/web.RepoContribTrend"
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
"404": {
|
|
2149
|
+
"description": "Not Found",
|
|
2150
|
+
"schema": {
|
|
2151
|
+
"$ref": "#/definitions/die.WebError"
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
"500": {
|
|
2155
|
+
"description": "Internal Server Error",
|
|
2156
|
+
"schema": {
|
|
2157
|
+
"$ref": "#/definitions/die.WebError"
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"path": "/{repo}/-/contributor/trend",
|
|
2162
|
+
"method": "get"
|
|
2163
|
+
}
|
|
2164
|
+
],
|
|
1995
2165
|
"repo.files.get": [
|
|
1996
2166
|
{
|
|
1997
2167
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
2168
|
+
"operationId": "GetFiles",
|
|
1998
2169
|
"summary": "发起一个获取 files 的请求,返回内容或者 302 到某个地址",
|
|
1999
2170
|
"parameters": [
|
|
2000
2171
|
{
|
|
@@ -2039,6 +2210,7 @@
|
|
|
2039
2210
|
"repo.files.put": [
|
|
2040
2211
|
{
|
|
2041
2212
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
2213
|
+
"operationId": "PutFiles",
|
|
2042
2214
|
"summary": "发起一个确认 files 的请求,上传的图片要调用此接口才能生效",
|
|
2043
2215
|
"parameters": [
|
|
2044
2216
|
{
|
|
@@ -2090,6 +2262,7 @@
|
|
|
2090
2262
|
"repo.forks.list": [
|
|
2091
2263
|
{
|
|
2092
2264
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-base-info:r",
|
|
2265
|
+
"operationId": "ListForksRepos",
|
|
2093
2266
|
"summary": "获取指定仓库的 fork 列表",
|
|
2094
2267
|
"parameters": [
|
|
2095
2268
|
{
|
|
@@ -2134,6 +2307,7 @@
|
|
|
2134
2307
|
"repo.forks.post": [
|
|
2135
2308
|
{
|
|
2136
2309
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:rw",
|
|
2310
|
+
"operationId": "CreateAFork",
|
|
2137
2311
|
"summary": "fork 仓库",
|
|
2138
2312
|
"parameters": [
|
|
2139
2313
|
{
|
|
@@ -2162,9 +2336,57 @@
|
|
|
2162
2336
|
"method": "post"
|
|
2163
2337
|
}
|
|
2164
2338
|
],
|
|
2339
|
+
"repo.git.blobs.post": [
|
|
2340
|
+
{
|
|
2341
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2342
|
+
"operationId": "CreateBlob",
|
|
2343
|
+
"summary": "创建一个 blob",
|
|
2344
|
+
"parameters": [
|
|
2345
|
+
{
|
|
2346
|
+
"description": "repo",
|
|
2347
|
+
"in": "path",
|
|
2348
|
+
"name": "repo",
|
|
2349
|
+
"required": true,
|
|
2350
|
+
"type": "string"
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"description": "PostBlobForm",
|
|
2354
|
+
"in": "body",
|
|
2355
|
+
"name": "post_blob_form",
|
|
2356
|
+
"required": true,
|
|
2357
|
+
"schema": {
|
|
2358
|
+
"$ref": "#/definitions/api.PostBlobForm"
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
],
|
|
2362
|
+
"responses": {
|
|
2363
|
+
"201": {
|
|
2364
|
+
"description": "Created",
|
|
2365
|
+
"schema": {
|
|
2366
|
+
"$ref": "#/definitions/api.Blob"
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
"404": {
|
|
2370
|
+
"description": "Not Found",
|
|
2371
|
+
"schema": {
|
|
2372
|
+
"$ref": "#/definitions/die.WebError"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"500": {
|
|
2376
|
+
"description": "Internal Server Error",
|
|
2377
|
+
"schema": {
|
|
2378
|
+
"$ref": "#/definitions/die.WebError"
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
"path": "/{repo}/-/git/blobs",
|
|
2383
|
+
"method": "post"
|
|
2384
|
+
}
|
|
2385
|
+
],
|
|
2165
2386
|
"repo.git.branches.list": [
|
|
2166
2387
|
{
|
|
2167
2388
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2389
|
+
"operationId": "ListBranches",
|
|
2168
2390
|
"summary": "查询分支列表",
|
|
2169
2391
|
"parameters": [
|
|
2170
2392
|
{
|
|
@@ -2219,6 +2441,7 @@
|
|
|
2219
2441
|
"repo.git.branches.post": [
|
|
2220
2442
|
{
|
|
2221
2443
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2444
|
+
"operationId": "CreateBranch",
|
|
2222
2445
|
"summary": "创建新分支",
|
|
2223
2446
|
"parameters": [
|
|
2224
2447
|
{
|
|
@@ -2262,6 +2485,7 @@
|
|
|
2262
2485
|
"repo.git.branches.delete": [
|
|
2263
2486
|
{
|
|
2264
2487
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2488
|
+
"operationId": "DeleteBranch",
|
|
2265
2489
|
"summary": "删除指定分支",
|
|
2266
2490
|
"parameters": [
|
|
2267
2491
|
{
|
|
@@ -2303,6 +2527,7 @@
|
|
|
2303
2527
|
"repo.git.branches.get": [
|
|
2304
2528
|
{
|
|
2305
2529
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2530
|
+
"operationId": "GetBranch",
|
|
2306
2531
|
"summary": "查询指定分支",
|
|
2307
2532
|
"parameters": [
|
|
2308
2533
|
{
|
|
@@ -2346,6 +2571,7 @@
|
|
|
2346
2571
|
"repo.git.commitAnnotationsInBatch.post": [
|
|
2347
2572
|
{
|
|
2348
2573
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2574
|
+
"operationId": "GetCommitAnnotationsInBatch",
|
|
2349
2575
|
"summary": "查询指定 commit 的元数据",
|
|
2350
2576
|
"parameters": [
|
|
2351
2577
|
{
|
|
@@ -2395,6 +2621,7 @@
|
|
|
2395
2621
|
"repo.git.commitAnnotations.list": [
|
|
2396
2622
|
{
|
|
2397
2623
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2624
|
+
"operationId": "GetCommitAnnotations",
|
|
2398
2625
|
"summary": "查询指定 commit 的元数据",
|
|
2399
2626
|
"parameters": [
|
|
2400
2627
|
{
|
|
@@ -2442,6 +2669,7 @@
|
|
|
2442
2669
|
"repo.git.commitAnnotations.put": [
|
|
2443
2670
|
{
|
|
2444
2671
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2672
|
+
"operationId": "PutCommitAnnotations",
|
|
2445
2673
|
"summary": "设定指定 commit 的元数据",
|
|
2446
2674
|
"parameters": [
|
|
2447
2675
|
{
|
|
@@ -2492,6 +2720,7 @@
|
|
|
2492
2720
|
"repo.git.commitAnnotations.delete": [
|
|
2493
2721
|
{
|
|
2494
2722
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2723
|
+
"operationId": "DeleteCommitAnnotation",
|
|
2495
2724
|
"summary": "删除指定 commit 的元数据",
|
|
2496
2725
|
"parameters": [
|
|
2497
2726
|
{
|
|
@@ -2540,6 +2769,7 @@
|
|
|
2540
2769
|
"repo.git.commitAssets.list": [
|
|
2541
2770
|
{
|
|
2542
2771
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2772
|
+
"operationId": "GetCommitAssetsBySha",
|
|
2543
2773
|
"summary": "查询指定 commit 的附件",
|
|
2544
2774
|
"parameters": [
|
|
2545
2775
|
{
|
|
@@ -2587,6 +2817,7 @@
|
|
|
2587
2817
|
"repo.git.commitAssets.assetUploadConfirmation.post": [
|
|
2588
2818
|
{
|
|
2589
2819
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2820
|
+
"operationId": "PostCommitAssetUploadConfirmation",
|
|
2590
2821
|
"summary": "确认 Commit asset 上传完成",
|
|
2591
2822
|
"parameters": [
|
|
2592
2823
|
{
|
|
@@ -2642,6 +2873,7 @@
|
|
|
2642
2873
|
"repo.git.commitAssets.assetUploadUrl.post": [
|
|
2643
2874
|
{
|
|
2644
2875
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2876
|
+
"operationId": "PostCommitAssetUploadURL",
|
|
2645
2877
|
"summary": "新增一个 Commit asset",
|
|
2646
2878
|
"parameters": [
|
|
2647
2879
|
{
|
|
@@ -2695,6 +2927,7 @@
|
|
|
2695
2927
|
"repo.git.commitAssets.delete": [
|
|
2696
2928
|
{
|
|
2697
2929
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2930
|
+
"operationId": "DeleteCommitAsset",
|
|
2698
2931
|
"summary": "删除指定 commit 的附件",
|
|
2699
2932
|
"parameters": [
|
|
2700
2933
|
{
|
|
@@ -2743,6 +2976,7 @@
|
|
|
2743
2976
|
"repo.git.commitStatuses.list": [
|
|
2744
2977
|
{
|
|
2745
2978
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2979
|
+
"operationId": "GetCommitStatuses",
|
|
2746
2980
|
"summary": "查询指定 commit 的 check statuses",
|
|
2747
2981
|
"parameters": [
|
|
2748
2982
|
{
|
|
@@ -2755,7 +2989,7 @@
|
|
|
2755
2989
|
{
|
|
2756
2990
|
"description": "commitish",
|
|
2757
2991
|
"in": "path",
|
|
2758
|
-
"name": "
|
|
2992
|
+
"name": "commitish",
|
|
2759
2993
|
"required": true,
|
|
2760
2994
|
"type": "string"
|
|
2761
2995
|
}
|
|
@@ -2790,6 +3024,7 @@
|
|
|
2790
3024
|
"repo.git.commits.list": [
|
|
2791
3025
|
{
|
|
2792
3026
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3027
|
+
"operationId": "ListCommits",
|
|
2793
3028
|
"summary": "查询 commit 列表",
|
|
2794
3029
|
"parameters": [
|
|
2795
3030
|
{
|
|
@@ -2874,6 +3109,7 @@
|
|
|
2874
3109
|
"repo.git.commits.get": [
|
|
2875
3110
|
{
|
|
2876
3111
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3112
|
+
"operationId": "GetCommit",
|
|
2877
3113
|
"summary": "查询指定 commit",
|
|
2878
3114
|
"parameters": [
|
|
2879
3115
|
{
|
|
@@ -2918,6 +3154,7 @@
|
|
|
2918
3154
|
"repo.git.compare.get": [
|
|
2919
3155
|
{
|
|
2920
3156
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3157
|
+
"operationId": "GetCompareCommits",
|
|
2921
3158
|
"summary": "对比 base...head",
|
|
2922
3159
|
"parameters": [
|
|
2923
3160
|
{
|
|
@@ -2962,6 +3199,7 @@
|
|
|
2962
3199
|
"repo.git.contents.get": [
|
|
2963
3200
|
{
|
|
2964
3201
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3202
|
+
"operationId": "GetContent",
|
|
2965
3203
|
"summary": "查询仓库文件列表或文件",
|
|
2966
3204
|
"parameters": [
|
|
2967
3205
|
{
|
|
@@ -3012,6 +3250,7 @@
|
|
|
3012
3250
|
"repo.git.head.get": [
|
|
3013
3251
|
{
|
|
3014
3252
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3253
|
+
"operationId": "GetHead",
|
|
3015
3254
|
"summary": "获取仓库默认分支",
|
|
3016
3255
|
"parameters": [
|
|
3017
3256
|
{
|
|
@@ -3048,7 +3287,8 @@
|
|
|
3048
3287
|
],
|
|
3049
3288
|
"repo.git.tagAnnotations.delete": [
|
|
3050
3289
|
{
|
|
3051
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-
|
|
3290
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3291
|
+
"operationId": "DeleteTagAnnotation",
|
|
3052
3292
|
"summary": "删除指定 tag 的元数据",
|
|
3053
3293
|
"parameters": [
|
|
3054
3294
|
{
|
|
@@ -3089,7 +3329,8 @@
|
|
|
3089
3329
|
],
|
|
3090
3330
|
"repo.git.tagAnnotations.list": [
|
|
3091
3331
|
{
|
|
3092
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-
|
|
3332
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3333
|
+
"operationId": "GetTagAnnotations",
|
|
3093
3334
|
"summary": "查询指定 tag 的元数据",
|
|
3094
3335
|
"parameters": [
|
|
3095
3336
|
{
|
|
@@ -3136,7 +3377,8 @@
|
|
|
3136
3377
|
],
|
|
3137
3378
|
"repo.git.tagAnnotations.put": [
|
|
3138
3379
|
{
|
|
3139
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-
|
|
3380
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3381
|
+
"operationId": "PutTagAnnotations",
|
|
3140
3382
|
"summary": "设定指定 tag 的元数据",
|
|
3141
3383
|
"parameters": [
|
|
3142
3384
|
{
|
|
@@ -3186,7 +3428,8 @@
|
|
|
3186
3428
|
],
|
|
3187
3429
|
"repo.git.tags.list": [
|
|
3188
3430
|
{
|
|
3189
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-
|
|
3431
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3432
|
+
"operationId": "ListTags",
|
|
3190
3433
|
"summary": "查询标签列表",
|
|
3191
3434
|
"parameters": [
|
|
3192
3435
|
{
|
|
@@ -3238,9 +3481,57 @@
|
|
|
3238
3481
|
"method": "get"
|
|
3239
3482
|
}
|
|
3240
3483
|
],
|
|
3241
|
-
"repo.git.tags.
|
|
3484
|
+
"repo.git.tags.post": [
|
|
3242
3485
|
{
|
|
3243
3486
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3487
|
+
"operationId": "CreateTag",
|
|
3488
|
+
"summary": "创建一个 tag",
|
|
3489
|
+
"parameters": [
|
|
3490
|
+
{
|
|
3491
|
+
"description": "repo",
|
|
3492
|
+
"in": "path",
|
|
3493
|
+
"name": "repo",
|
|
3494
|
+
"required": true,
|
|
3495
|
+
"type": "string"
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"description": "PostTagFrom",
|
|
3499
|
+
"in": "body",
|
|
3500
|
+
"name": "post_tag_form",
|
|
3501
|
+
"required": true,
|
|
3502
|
+
"schema": {
|
|
3503
|
+
"$ref": "#/definitions/api.PostTagFrom"
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
],
|
|
3507
|
+
"responses": {
|
|
3508
|
+
"201": {
|
|
3509
|
+
"description": "Created",
|
|
3510
|
+
"schema": {
|
|
3511
|
+
"$ref": "#/definitions/api.Tag"
|
|
3512
|
+
}
|
|
3513
|
+
},
|
|
3514
|
+
"404": {
|
|
3515
|
+
"description": "Not Found",
|
|
3516
|
+
"schema": {
|
|
3517
|
+
"$ref": "#/definitions/die.WebError"
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
"500": {
|
|
3521
|
+
"description": "Internal Server Error",
|
|
3522
|
+
"schema": {
|
|
3523
|
+
"$ref": "#/definitions/die.WebError"
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
},
|
|
3527
|
+
"path": "/{repo}/-/git/tags",
|
|
3528
|
+
"method": "post"
|
|
3529
|
+
}
|
|
3530
|
+
],
|
|
3531
|
+
"repo.git.tags.delete": [
|
|
3532
|
+
{
|
|
3533
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3534
|
+
"operationId": "DeleteTag",
|
|
3244
3535
|
"summary": "删除指定标签",
|
|
3245
3536
|
"parameters": [
|
|
3246
3537
|
{
|
|
@@ -3281,7 +3572,8 @@
|
|
|
3281
3572
|
],
|
|
3282
3573
|
"repo.git.tags.get": [
|
|
3283
3574
|
{
|
|
3284
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-
|
|
3575
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3576
|
+
"operationId": "GetTag",
|
|
3285
3577
|
"summary": "查询指定 Tag",
|
|
3286
3578
|
"parameters": [
|
|
3287
3579
|
{
|
|
@@ -3326,6 +3618,7 @@
|
|
|
3326
3618
|
"repo.imgs.get": [
|
|
3327
3619
|
{
|
|
3328
3620
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3621
|
+
"operationId": "GetImgs",
|
|
3329
3622
|
"summary": "发起一个获取 imgs 的请求,返回内容或者 302 到某个地址",
|
|
3330
3623
|
"parameters": [
|
|
3331
3624
|
{
|
|
@@ -3363,6 +3656,7 @@
|
|
|
3363
3656
|
"repo.imgs.put": [
|
|
3364
3657
|
{
|
|
3365
3658
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3659
|
+
"operationId": "PutImgs",
|
|
3366
3660
|
"summary": "发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效",
|
|
3367
3661
|
"parameters": [
|
|
3368
3662
|
{
|
|
@@ -3407,6 +3701,7 @@
|
|
|
3407
3701
|
"repo.inheritMembers.list": [
|
|
3408
3702
|
{
|
|
3409
3703
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
3704
|
+
"operationId": "ListInheritMembers",
|
|
3410
3705
|
"summary": "获取指定组织或仓库内的继承成员",
|
|
3411
3706
|
"parameters": [
|
|
3412
3707
|
{
|
|
@@ -3469,6 +3764,7 @@
|
|
|
3469
3764
|
"repo.issues.list": [
|
|
3470
3765
|
{
|
|
3471
3766
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
3767
|
+
"operationId": "ListIssues",
|
|
3472
3768
|
"summary": "查询仓库的 Issues",
|
|
3473
3769
|
"parameters": [
|
|
3474
3770
|
{
|
|
@@ -3572,56 +3868,12 @@
|
|
|
3572
3868
|
},
|
|
3573
3869
|
"path": "/{repo}/-/issues",
|
|
3574
3870
|
"method": "get"
|
|
3575
|
-
},
|
|
3576
|
-
{
|
|
3577
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
3578
|
-
"summary": "查询指定的 Issues",
|
|
3579
|
-
"parameters": [
|
|
3580
|
-
{
|
|
3581
|
-
"description": "repo",
|
|
3582
|
-
"in": "path",
|
|
3583
|
-
"name": "repo",
|
|
3584
|
-
"required": true,
|
|
3585
|
-
"type": "string"
|
|
3586
|
-
},
|
|
3587
|
-
{
|
|
3588
|
-
"description": "issue number",
|
|
3589
|
-
"in": "path",
|
|
3590
|
-
"name": "number",
|
|
3591
|
-
"required": true,
|
|
3592
|
-
"type": "integer"
|
|
3593
|
-
}
|
|
3594
|
-
],
|
|
3595
|
-
"responses": {
|
|
3596
|
-
"200": {
|
|
3597
|
-
"description": "OK",
|
|
3598
|
-
"schema": {
|
|
3599
|
-
"items": {
|
|
3600
|
-
"$ref": "#/definitions/api.IssueDetail"
|
|
3601
|
-
},
|
|
3602
|
-
"type": "array"
|
|
3603
|
-
}
|
|
3604
|
-
},
|
|
3605
|
-
"404": {
|
|
3606
|
-
"description": "Not Found",
|
|
3607
|
-
"schema": {
|
|
3608
|
-
"$ref": "#/definitions/die.WebError"
|
|
3609
|
-
}
|
|
3610
|
-
},
|
|
3611
|
-
"500": {
|
|
3612
|
-
"description": "Internal Server Error",
|
|
3613
|
-
"schema": {
|
|
3614
|
-
"$ref": "#/definitions/die.WebError"
|
|
3615
|
-
}
|
|
3616
|
-
}
|
|
3617
|
-
},
|
|
3618
|
-
"path": "/{repo}/-/issues/{number}",
|
|
3619
|
-
"method": "get"
|
|
3620
3871
|
}
|
|
3621
3872
|
],
|
|
3622
3873
|
"repo.issues.post": [
|
|
3623
3874
|
{
|
|
3624
3875
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
3876
|
+
"operationId": "CreateIssue",
|
|
3625
3877
|
"summary": "创建一个 Issue",
|
|
3626
3878
|
"parameters": [
|
|
3627
3879
|
{
|
|
@@ -3665,10 +3917,11 @@
|
|
|
3665
3917
|
"method": "post"
|
|
3666
3918
|
}
|
|
3667
3919
|
],
|
|
3668
|
-
"repo.issues.
|
|
3920
|
+
"repo.issues.get": [
|
|
3669
3921
|
{
|
|
3670
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:
|
|
3671
|
-
"
|
|
3922
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
3923
|
+
"operationId": "GetIssue",
|
|
3924
|
+
"summary": "查询指定的 Issues",
|
|
3672
3925
|
"parameters": [
|
|
3673
3926
|
{
|
|
3674
3927
|
"description": "repo",
|
|
@@ -3683,7 +3936,52 @@
|
|
|
3683
3936
|
"name": "number",
|
|
3684
3937
|
"required": true,
|
|
3685
3938
|
"type": "integer"
|
|
3686
|
-
}
|
|
3939
|
+
}
|
|
3940
|
+
],
|
|
3941
|
+
"responses": {
|
|
3942
|
+
"200": {
|
|
3943
|
+
"description": "OK",
|
|
3944
|
+
"schema": {
|
|
3945
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
"404": {
|
|
3949
|
+
"description": "Not Found",
|
|
3950
|
+
"schema": {
|
|
3951
|
+
"$ref": "#/definitions/die.WebError"
|
|
3952
|
+
}
|
|
3953
|
+
},
|
|
3954
|
+
"500": {
|
|
3955
|
+
"description": "Internal Server Error",
|
|
3956
|
+
"schema": {
|
|
3957
|
+
"$ref": "#/definitions/die.WebError"
|
|
3958
|
+
}
|
|
3959
|
+
}
|
|
3960
|
+
},
|
|
3961
|
+
"path": "/{repo}/-/issues/{number}",
|
|
3962
|
+
"method": "get"
|
|
3963
|
+
}
|
|
3964
|
+
],
|
|
3965
|
+
"repo.issues.patch": [
|
|
3966
|
+
{
|
|
3967
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
3968
|
+
"operationId": "UpdateIssue",
|
|
3969
|
+
"summary": "更新一个 Issue",
|
|
3970
|
+
"parameters": [
|
|
3971
|
+
{
|
|
3972
|
+
"description": "repo",
|
|
3973
|
+
"in": "path",
|
|
3974
|
+
"name": "repo",
|
|
3975
|
+
"required": true,
|
|
3976
|
+
"type": "string"
|
|
3977
|
+
},
|
|
3978
|
+
{
|
|
3979
|
+
"description": "issue number",
|
|
3980
|
+
"in": "path",
|
|
3981
|
+
"name": "number",
|
|
3982
|
+
"required": true,
|
|
3983
|
+
"type": "integer"
|
|
3984
|
+
},
|
|
3687
3985
|
{
|
|
3688
3986
|
"description": "Patch Issue Form",
|
|
3689
3987
|
"in": "body",
|
|
@@ -3721,6 +4019,7 @@
|
|
|
3721
4019
|
"repo.issues.comments.list": [
|
|
3722
4020
|
{
|
|
3723
4021
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4022
|
+
"operationId": "ListIssueComments",
|
|
3724
4023
|
"summary": "查询仓库的 Issue 评论列表",
|
|
3725
4024
|
"parameters": [
|
|
3726
4025
|
{
|
|
@@ -3782,6 +4081,7 @@
|
|
|
3782
4081
|
"repo.issues.comments.post": [
|
|
3783
4082
|
{
|
|
3784
4083
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4084
|
+
"operationId": "PostIssueComment",
|
|
3785
4085
|
"summary": "创建一个 Issue Comment",
|
|
3786
4086
|
"parameters": [
|
|
3787
4087
|
{
|
|
@@ -3835,6 +4135,7 @@
|
|
|
3835
4135
|
"repo.issues.comments.get": [
|
|
3836
4136
|
{
|
|
3837
4137
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4138
|
+
"operationId": "GetIssueComment",
|
|
3838
4139
|
"summary": "获取一个 Issue Comment",
|
|
3839
4140
|
"parameters": [
|
|
3840
4141
|
{
|
|
@@ -3886,6 +4187,7 @@
|
|
|
3886
4187
|
"repo.issues.comments.patch": [
|
|
3887
4188
|
{
|
|
3888
4189
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4190
|
+
"operationId": "PatchIssueComment",
|
|
3889
4191
|
"summary": "修改一个 Issue Comment",
|
|
3890
4192
|
"parameters": [
|
|
3891
4193
|
{
|
|
@@ -3946,6 +4248,7 @@
|
|
|
3946
4248
|
"repo.issues.labels.delete": [
|
|
3947
4249
|
{
|
|
3948
4250
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4251
|
+
"operationId": "DeleteIssueLabels",
|
|
3949
4252
|
"summary": "清空 Issue 标签",
|
|
3950
4253
|
"parameters": [
|
|
3951
4254
|
{
|
|
@@ -3985,6 +4288,7 @@
|
|
|
3985
4288
|
},
|
|
3986
4289
|
{
|
|
3987
4290
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4291
|
+
"operationId": "ListIssueLabels",
|
|
3988
4292
|
"summary": "查询 Issue 的标签(label) 列表",
|
|
3989
4293
|
"parameters": [
|
|
3990
4294
|
{
|
|
@@ -4044,6 +4348,7 @@
|
|
|
4044
4348
|
},
|
|
4045
4349
|
{
|
|
4046
4350
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4351
|
+
"operationId": "PostIssueLabels",
|
|
4047
4352
|
"summary": "新增 Issue 标签",
|
|
4048
4353
|
"parameters": [
|
|
4049
4354
|
{
|
|
@@ -4095,6 +4400,7 @@
|
|
|
4095
4400
|
},
|
|
4096
4401
|
{
|
|
4097
4402
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4403
|
+
"operationId": "PutIssueLabels",
|
|
4098
4404
|
"summary": "设置 Issue 标签",
|
|
4099
4405
|
"parameters": [
|
|
4100
4406
|
{
|
|
@@ -4148,6 +4454,7 @@
|
|
|
4148
4454
|
"repo.issues.labels.deleteByName": [
|
|
4149
4455
|
{
|
|
4150
4456
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4457
|
+
"operationId": "DeleteIssueLabel",
|
|
4151
4458
|
"summary": "删除 Issue 标签",
|
|
4152
4459
|
"parameters": [
|
|
4153
4460
|
{
|
|
@@ -4199,6 +4506,7 @@
|
|
|
4199
4506
|
"repo.labels.list": [
|
|
4200
4507
|
{
|
|
4201
4508
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4509
|
+
"operationId": "ListLabels",
|
|
4202
4510
|
"summary": "查询仓库的标签(label) 列表",
|
|
4203
4511
|
"parameters": [
|
|
4204
4512
|
{
|
|
@@ -4259,6 +4567,7 @@
|
|
|
4259
4567
|
"repo.labels.post": [
|
|
4260
4568
|
{
|
|
4261
4569
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4570
|
+
"operationId": "PostLabel",
|
|
4262
4571
|
"summary": "创建一个 标签",
|
|
4263
4572
|
"parameters": [
|
|
4264
4573
|
{
|
|
@@ -4305,6 +4614,7 @@
|
|
|
4305
4614
|
"repo.labels.delete": [
|
|
4306
4615
|
{
|
|
4307
4616
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4617
|
+
"operationId": "DeleteLabel",
|
|
4308
4618
|
"summary": "删除指定的仓库标签 label",
|
|
4309
4619
|
"parameters": [
|
|
4310
4620
|
{
|
|
@@ -4346,6 +4656,7 @@
|
|
|
4346
4656
|
"repo.labels.patch": [
|
|
4347
4657
|
{
|
|
4348
4658
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4659
|
+
"operationId": "PatchLabel",
|
|
4349
4660
|
"summary": "更新标签信息",
|
|
4350
4661
|
"parameters": [
|
|
4351
4662
|
{
|
|
@@ -4399,6 +4710,7 @@
|
|
|
4399
4710
|
"repo.listMembers.list": [
|
|
4400
4711
|
{
|
|
4401
4712
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
4713
|
+
"operationId": "ListAllMembers",
|
|
4402
4714
|
"summary": "获取指定组织或仓库内的有效成员列表,包含继承成员",
|
|
4403
4715
|
"parameters": [
|
|
4404
4716
|
{
|
|
@@ -4486,6 +4798,7 @@
|
|
|
4486
4798
|
"repo.members.list": [
|
|
4487
4799
|
{
|
|
4488
4800
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
4801
|
+
"operationId": "ListMembers",
|
|
4489
4802
|
"summary": "获取指定组织或仓库内的所有直接成员",
|
|
4490
4803
|
"parameters": [
|
|
4491
4804
|
{
|
|
@@ -4548,6 +4861,7 @@
|
|
|
4548
4861
|
"repo.members.accessLevel.get": [
|
|
4549
4862
|
{
|
|
4550
4863
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
4864
|
+
"operationId": "GetMemberAccessLevel",
|
|
4551
4865
|
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息",
|
|
4552
4866
|
"parameters": [
|
|
4553
4867
|
{
|
|
@@ -4580,6 +4894,7 @@
|
|
|
4580
4894
|
"repo.members.delete": [
|
|
4581
4895
|
{
|
|
4582
4896
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
4897
|
+
"operationId": "DeleteMembers",
|
|
4583
4898
|
"summary": "删除指定组织或仓库的直接成员, 包含两种场景: 1. 作为直接成员的用户自己退出 2. 由管理者移除指定的直接成员",
|
|
4584
4899
|
"parameters": [
|
|
4585
4900
|
{
|
|
@@ -4609,6 +4924,7 @@
|
|
|
4609
4924
|
"repo.members.put": [
|
|
4610
4925
|
{
|
|
4611
4926
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
4927
|
+
"operationId": "UpdateMembers",
|
|
4612
4928
|
"summary": "更新指定组织或仓库内的直接成员权限信息",
|
|
4613
4929
|
"parameters": [
|
|
4614
4930
|
{
|
|
@@ -4647,6 +4963,7 @@
|
|
|
4647
4963
|
"repo.members.accessLevel.list": [
|
|
4648
4964
|
{
|
|
4649
4965
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
4966
|
+
"operationId": "ListMemberAccessLevel",
|
|
4650
4967
|
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息",
|
|
4651
4968
|
"parameters": [
|
|
4652
4969
|
{
|
|
@@ -4682,6 +4999,7 @@
|
|
|
4682
4999
|
"repo.outsideCollaborators.list": [
|
|
4683
5000
|
{
|
|
4684
5001
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5002
|
+
"operationId": "ListOutsideCollaborators",
|
|
4685
5003
|
"summary": "获取指定仓库内的外部贡献者",
|
|
4686
5004
|
"parameters": [
|
|
4687
5005
|
{
|
|
@@ -4743,6 +5061,7 @@
|
|
|
4743
5061
|
"repo.outsideCollaborators.delete": [
|
|
4744
5062
|
{
|
|
4745
5063
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5064
|
+
"operationId": "DeleteOutsideCollaborators",
|
|
4746
5065
|
"summary": "删除指定仓库的外部贡献者, 包含两种场景: 1. 作为外部贡献者的用户自己退出仓库 2. 由仓库管理者移除指定的外部贡献者",
|
|
4747
5066
|
"parameters": [
|
|
4748
5067
|
{
|
|
@@ -4772,6 +5091,7 @@
|
|
|
4772
5091
|
"repo.outsideCollaborators.put": [
|
|
4773
5092
|
{
|
|
4774
5093
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5094
|
+
"operationId": "UpdateOutsideCollaborators",
|
|
4775
5095
|
"summary": "更新指定仓库的外部贡献者权限信息",
|
|
4776
5096
|
"parameters": [
|
|
4777
5097
|
{
|
|
@@ -4810,9 +5130,58 @@
|
|
|
4810
5130
|
"method": "put"
|
|
4811
5131
|
}
|
|
4812
5132
|
],
|
|
5133
|
+
"repo.pullInBatch.list": [
|
|
5134
|
+
{
|
|
5135
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:r",
|
|
5136
|
+
"operationId": "ListPullsByNumbers",
|
|
5137
|
+
"summary": "[openapi] 根据numbers查询 Pull 列表",
|
|
5138
|
+
"parameters": [
|
|
5139
|
+
{
|
|
5140
|
+
"description": "repo",
|
|
5141
|
+
"in": "path",
|
|
5142
|
+
"name": "repo",
|
|
5143
|
+
"required": true,
|
|
5144
|
+
"type": "string"
|
|
5145
|
+
},
|
|
5146
|
+
{
|
|
5147
|
+
"description": "pull request numbers",
|
|
5148
|
+
"in": "query",
|
|
5149
|
+
"name": "n",
|
|
5150
|
+
"required": true,
|
|
5151
|
+
"type": "array"
|
|
5152
|
+
}
|
|
5153
|
+
],
|
|
5154
|
+
"responses": {
|
|
5155
|
+
"200": {
|
|
5156
|
+
"description": "OK",
|
|
5157
|
+
"schema": {
|
|
5158
|
+
"items": {
|
|
5159
|
+
"$ref": "#/definitions/api.PullRequestInfo"
|
|
5160
|
+
},
|
|
5161
|
+
"type": "array"
|
|
5162
|
+
}
|
|
5163
|
+
},
|
|
5164
|
+
"404": {
|
|
5165
|
+
"description": "Not Found",
|
|
5166
|
+
"schema": {
|
|
5167
|
+
"$ref": "#/definitions/die.WebError"
|
|
5168
|
+
}
|
|
5169
|
+
},
|
|
5170
|
+
"500": {
|
|
5171
|
+
"description": "Internal Server Error",
|
|
5172
|
+
"schema": {
|
|
5173
|
+
"$ref": "#/definitions/die.WebError"
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
},
|
|
5177
|
+
"path": "/{repo}/-/pull-in-batch",
|
|
5178
|
+
"method": "get"
|
|
5179
|
+
}
|
|
5180
|
+
],
|
|
4813
5181
|
"repo.pulls.list": [
|
|
4814
5182
|
{
|
|
4815
5183
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:r",
|
|
5184
|
+
"operationId": "ListPulls",
|
|
4816
5185
|
"summary": "[openapi] 查询 Pull 列表",
|
|
4817
5186
|
"parameters": [
|
|
4818
5187
|
{
|
|
@@ -4892,6 +5261,7 @@
|
|
|
4892
5261
|
"repo.pulls.post": [
|
|
4893
5262
|
{
|
|
4894
5263
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
5264
|
+
"operationId": "PostPull",
|
|
4895
5265
|
"summary": "[openapi] 新增一个 Pull",
|
|
4896
5266
|
"parameters": [
|
|
4897
5267
|
{
|
|
@@ -4938,6 +5308,7 @@
|
|
|
4938
5308
|
"repo.pulls.get": [
|
|
4939
5309
|
{
|
|
4940
5310
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:r",
|
|
5311
|
+
"operationId": "GetPull",
|
|
4941
5312
|
"summary": "[openapi] 查询指定 Pull",
|
|
4942
5313
|
"parameters": [
|
|
4943
5314
|
{
|
|
@@ -4982,6 +5353,7 @@
|
|
|
4982
5353
|
"repo.pulls.patch": [
|
|
4983
5354
|
{
|
|
4984
5355
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
5356
|
+
"operationId": "PatchPull",
|
|
4985
5357
|
"summary": "[openapi] 更新一个 Pull Request",
|
|
4986
5358
|
"parameters": [
|
|
4987
5359
|
{
|
|
@@ -5035,6 +5407,7 @@
|
|
|
5035
5407
|
"repo.pulls.comments.list": [
|
|
5036
5408
|
{
|
|
5037
5409
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
5410
|
+
"operationId": "ListPullComments",
|
|
5038
5411
|
"summary": "[openapi] 查询 Pull Comments 列表",
|
|
5039
5412
|
"parameters": [
|
|
5040
5413
|
{
|
|
@@ -5044,6 +5417,13 @@
|
|
|
5044
5417
|
"required": true,
|
|
5045
5418
|
"type": "string"
|
|
5046
5419
|
},
|
|
5420
|
+
{
|
|
5421
|
+
"description": "number",
|
|
5422
|
+
"in": "path",
|
|
5423
|
+
"name": "number",
|
|
5424
|
+
"required": true,
|
|
5425
|
+
"type": "string"
|
|
5426
|
+
},
|
|
5047
5427
|
{
|
|
5048
5428
|
"default": 1,
|
|
5049
5429
|
"description": "pagination page number",
|
|
@@ -5089,6 +5469,7 @@
|
|
|
5089
5469
|
"repo.pulls.comments.post": [
|
|
5090
5470
|
{
|
|
5091
5471
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5472
|
+
"operationId": "PostPullComment",
|
|
5092
5473
|
"summary": "[openapi] 新增一个 Pull Comment",
|
|
5093
5474
|
"parameters": [
|
|
5094
5475
|
{
|
|
@@ -5139,6 +5520,7 @@
|
|
|
5139
5520
|
"repo.pulls.labels.delete": [
|
|
5140
5521
|
{
|
|
5141
5522
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5523
|
+
"operationId": "DeletePullLabels",
|
|
5142
5524
|
"summary": "清空 Pull 标签",
|
|
5143
5525
|
"parameters": [
|
|
5144
5526
|
{
|
|
@@ -5180,6 +5562,7 @@
|
|
|
5180
5562
|
"repo.pulls.labels.list": [
|
|
5181
5563
|
{
|
|
5182
5564
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
5565
|
+
"operationId": "ListPullLabels",
|
|
5183
5566
|
"summary": "查询 Pull 的标签(label) 列表",
|
|
5184
5567
|
"parameters": [
|
|
5185
5568
|
{
|
|
@@ -5241,6 +5624,7 @@
|
|
|
5241
5624
|
"repo.pulls.labels.post": [
|
|
5242
5625
|
{
|
|
5243
5626
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5627
|
+
"operationId": "PostPullLabels",
|
|
5244
5628
|
"summary": "新增 Pull 标签",
|
|
5245
5629
|
"parameters": [
|
|
5246
5630
|
{
|
|
@@ -5294,6 +5678,7 @@
|
|
|
5294
5678
|
"repo.pulls.labels.put": [
|
|
5295
5679
|
{
|
|
5296
5680
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5681
|
+
"operationId": "PutPullLabels",
|
|
5297
5682
|
"summary": "设置 Pull 标签",
|
|
5298
5683
|
"parameters": [
|
|
5299
5684
|
{
|
|
@@ -5347,6 +5732,7 @@
|
|
|
5347
5732
|
"repo.pulls.labels.deleteByName": [
|
|
5348
5733
|
{
|
|
5349
5734
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5735
|
+
"operationId": "DeletePullLabel",
|
|
5350
5736
|
"summary": "删除 Pull 标签",
|
|
5351
5737
|
"parameters": [
|
|
5352
5738
|
{
|
|
@@ -5398,6 +5784,7 @@
|
|
|
5398
5784
|
"repo.pulls.merge.put": [
|
|
5399
5785
|
{
|
|
5400
5786
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
5787
|
+
"operationId": "MergePull",
|
|
5401
5788
|
"summary": "[openapi] 合并一个 Pull Request",
|
|
5402
5789
|
"parameters": [
|
|
5403
5790
|
{
|
|
@@ -5451,7 +5838,8 @@
|
|
|
5451
5838
|
"repo.pulls.reviews.post": [
|
|
5452
5839
|
{
|
|
5453
5840
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5454
|
-
"
|
|
5841
|
+
"operationId": "PostPullReview",
|
|
5842
|
+
"summary": "新增一次 pull request 评审",
|
|
5455
5843
|
"parameters": [
|
|
5456
5844
|
{
|
|
5457
5845
|
"description": "repo",
|
|
@@ -5481,6 +5869,12 @@
|
|
|
5481
5869
|
"201": {
|
|
5482
5870
|
"description": "Created"
|
|
5483
5871
|
},
|
|
5872
|
+
"403": {
|
|
5873
|
+
"description": "Forbidden",
|
|
5874
|
+
"schema": {
|
|
5875
|
+
"$ref": "#/definitions/die.WebError"
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5484
5878
|
"404": {
|
|
5485
5879
|
"description": "Not Found",
|
|
5486
5880
|
"schema": {
|
|
@@ -5501,6 +5895,7 @@
|
|
|
5501
5895
|
"repo.releases.list": [
|
|
5502
5896
|
{
|
|
5503
5897
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
5898
|
+
"operationId": "ListReleases",
|
|
5504
5899
|
"summary": "[openapi] 查询 release 列表",
|
|
5505
5900
|
"parameters": [
|
|
5506
5901
|
{
|
|
@@ -5555,6 +5950,7 @@
|
|
|
5555
5950
|
"repo.releases.post": [
|
|
5556
5951
|
{
|
|
5557
5952
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
5953
|
+
"operationId": "PostRelease",
|
|
5558
5954
|
"summary": "[openapi] 新增一个 Release",
|
|
5559
5955
|
"parameters": [
|
|
5560
5956
|
{
|
|
@@ -5601,6 +5997,7 @@
|
|
|
5601
5997
|
"repo.releases.download.get": [
|
|
5602
5998
|
{
|
|
5603
5999
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
6000
|
+
"operationId": "GetReleasesAsset",
|
|
5604
6001
|
"summary": "发起一个获取 release 附件的请求,返回内容或者 302 到某个地址",
|
|
5605
6002
|
"parameters": [
|
|
5606
6003
|
{
|
|
@@ -5631,6 +6028,7 @@
|
|
|
5631
6028
|
"repo.releases.tags.get": [
|
|
5632
6029
|
{
|
|
5633
6030
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
6031
|
+
"operationId": "GetReleaseByTag",
|
|
5634
6032
|
"summary": "[openapi] 通过 tag 查询指定 release",
|
|
5635
6033
|
"parameters": [
|
|
5636
6034
|
{
|
|
@@ -5675,6 +6073,7 @@
|
|
|
5675
6073
|
"repo.releases.delete": [
|
|
5676
6074
|
{
|
|
5677
6075
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
6076
|
+
"operationId": "DeleteRelease",
|
|
5678
6077
|
"summary": "[openapi] 删除指定的 release",
|
|
5679
6078
|
"parameters": [
|
|
5680
6079
|
{
|
|
@@ -5716,6 +6115,7 @@
|
|
|
5716
6115
|
"repo.releases.get": [
|
|
5717
6116
|
{
|
|
5718
6117
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
6118
|
+
"operationId": "GetReleaseByID",
|
|
5719
6119
|
"summary": "[openapi] 根据 id\t查询指定 release",
|
|
5720
6120
|
"parameters": [
|
|
5721
6121
|
{
|
|
@@ -5760,6 +6160,7 @@
|
|
|
5760
6160
|
"repo.releases.patch": [
|
|
5761
6161
|
{
|
|
5762
6162
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
6163
|
+
"operationId": "PatchRelease",
|
|
5763
6164
|
"summary": "[openapi] 更新 release",
|
|
5764
6165
|
"parameters": [
|
|
5765
6166
|
{
|
|
@@ -5810,6 +6211,7 @@
|
|
|
5810
6211
|
"repo.releases.assetUploadConfirmation.post": [
|
|
5811
6212
|
{
|
|
5812
6213
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
6214
|
+
"operationId": "PostReleaseAssetUploadConfirmation",
|
|
5813
6215
|
"summary": "[openapi] 确认 Release asset 上传完成",
|
|
5814
6216
|
"parameters": [
|
|
5815
6217
|
{
|
|
@@ -5865,6 +6267,7 @@
|
|
|
5865
6267
|
"repo.releases.assetUploadUrl.post": [
|
|
5866
6268
|
{
|
|
5867
6269
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
6270
|
+
"operationId": "PostReleaseAssetUploadURL",
|
|
5868
6271
|
"summary": "[openapi] 新增一个 Release asset",
|
|
5869
6272
|
"parameters": [
|
|
5870
6273
|
{
|
|
@@ -5918,6 +6321,7 @@
|
|
|
5918
6321
|
"repo.releases.assets.delete": [
|
|
5919
6322
|
{
|
|
5920
6323
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
6324
|
+
"operationId": "DeleteReleaseAsset",
|
|
5921
6325
|
"summary": "[openapi] 删除指定的 release asset",
|
|
5922
6326
|
"parameters": [
|
|
5923
6327
|
{
|
|
@@ -5966,6 +6370,7 @@
|
|
|
5966
6370
|
"repo.releases.assets.get": [
|
|
5967
6371
|
{
|
|
5968
6372
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
6373
|
+
"operationId": "GetReleaseAsset",
|
|
5969
6374
|
"summary": "[openapi] 查询指定的 release asset",
|
|
5970
6375
|
"parameters": [
|
|
5971
6376
|
{
|
|
@@ -6017,6 +6422,7 @@
|
|
|
6017
6422
|
"repo.settings.branchProtections.list": [
|
|
6018
6423
|
{
|
|
6019
6424
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6425
|
+
"operationId": "ListBranchProtections",
|
|
6020
6426
|
"summary": "查询仓库保护分支规则列表(openapi)",
|
|
6021
6427
|
"parameters": [
|
|
6022
6428
|
{
|
|
@@ -6057,6 +6463,7 @@
|
|
|
6057
6463
|
"repo.settings.branchProtections.post": [
|
|
6058
6464
|
{
|
|
6059
6465
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6466
|
+
"operationId": "PostBranchProtection",
|
|
6060
6467
|
"summary": "新增仓库保护分支规则(openapi)",
|
|
6061
6468
|
"parameters": [
|
|
6062
6469
|
{
|
|
@@ -6100,6 +6507,7 @@
|
|
|
6100
6507
|
"repo.settings.branchProtections.delete": [
|
|
6101
6508
|
{
|
|
6102
6509
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6510
|
+
"operationId": "DeleteBranchProtection",
|
|
6103
6511
|
"summary": "删除仓库保护分支规则(openapi)",
|
|
6104
6512
|
"parameters": [
|
|
6105
6513
|
{
|
|
@@ -6141,6 +6549,7 @@
|
|
|
6141
6549
|
"repo.settings.branchProtections.get": [
|
|
6142
6550
|
{
|
|
6143
6551
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6552
|
+
"operationId": "GetBranchProtection",
|
|
6144
6553
|
"summary": "查询仓库保护分支规则(openapi)",
|
|
6145
6554
|
"parameters": [
|
|
6146
6555
|
{
|
|
@@ -6185,6 +6594,7 @@
|
|
|
6185
6594
|
"repo.settings.branchProtections.patch": [
|
|
6186
6595
|
{
|
|
6187
6596
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6597
|
+
"operationId": "PatchBranchProtection",
|
|
6188
6598
|
"summary": "更新仓库保护分支规则(openapi)",
|
|
6189
6599
|
"parameters": [
|
|
6190
6600
|
{
|
|
@@ -6235,6 +6645,7 @@
|
|
|
6235
6645
|
"repo.settings.cloudNativeBuild.get": [
|
|
6236
6646
|
{
|
|
6237
6647
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6648
|
+
"operationId": "GetPipelineSettings",
|
|
6238
6649
|
"summary": "查询仓库云原生构建设置(openapi)",
|
|
6239
6650
|
"parameters": [
|
|
6240
6651
|
{
|
|
@@ -6272,6 +6683,7 @@
|
|
|
6272
6683
|
"repo.settings.cloudNativeBuild.put": [
|
|
6273
6684
|
{
|
|
6274
6685
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6686
|
+
"operationId": "PutPipelineSettings",
|
|
6275
6687
|
"summary": "更新仓库云原生构建设置(openapi)",
|
|
6276
6688
|
"parameters": [
|
|
6277
6689
|
{
|
|
@@ -6315,6 +6727,7 @@
|
|
|
6315
6727
|
"repo.settings.pullRequest.get": [
|
|
6316
6728
|
{
|
|
6317
6729
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6730
|
+
"operationId": "GetPullRequestSettings",
|
|
6318
6731
|
"summary": "查询仓库合并请求设置(openapi)",
|
|
6319
6732
|
"parameters": [
|
|
6320
6733
|
{
|
|
@@ -6352,6 +6765,7 @@
|
|
|
6352
6765
|
"repo.settings.pullRequest.put": [
|
|
6353
6766
|
{
|
|
6354
6767
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6768
|
+
"operationId": "PutPullRequestSettings",
|
|
6355
6769
|
"summary": "设置仓库推送设置(openapi)",
|
|
6356
6770
|
"parameters": [
|
|
6357
6771
|
{
|
|
@@ -6395,6 +6809,7 @@
|
|
|
6395
6809
|
"repo.settings.pushLimit.get": [
|
|
6396
6810
|
{
|
|
6397
6811
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6812
|
+
"operationId": "GetPushLimitSettings",
|
|
6398
6813
|
"summary": "查询仓库推送设置(openapi)",
|
|
6399
6814
|
"parameters": [
|
|
6400
6815
|
{
|
|
@@ -6432,6 +6847,7 @@
|
|
|
6432
6847
|
"repo.settings.pushLimit.put": [
|
|
6433
6848
|
{
|
|
6434
6849
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6850
|
+
"operationId": "PutPushLimitSettings",
|
|
6435
6851
|
"summary": "设置仓库推送设置(openapi)",
|
|
6436
6852
|
"parameters": [
|
|
6437
6853
|
{
|
|
@@ -6475,6 +6891,7 @@
|
|
|
6475
6891
|
"repo.stars.get": [
|
|
6476
6892
|
{
|
|
6477
6893
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-basic-info:r",
|
|
6894
|
+
"operationId": "ListStarUsers",
|
|
6478
6895
|
"summary": "获取指定仓库的star用户列表",
|
|
6479
6896
|
"parameters": [
|
|
6480
6897
|
{
|
|
@@ -6527,6 +6944,7 @@
|
|
|
6527
6944
|
"repo.topActivityUsers.list": [
|
|
6528
6945
|
{
|
|
6529
6946
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-base-info:r",
|
|
6947
|
+
"operationId": "TopContributors",
|
|
6530
6948
|
"summary": "获取 top 贡献用户",
|
|
6531
6949
|
"parameters": [
|
|
6532
6950
|
{
|
|
@@ -6562,6 +6980,7 @@
|
|
|
6562
6980
|
"repo.upload.files.post": [
|
|
6563
6981
|
{
|
|
6564
6982
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
6983
|
+
"operationId": "UploadFiles",
|
|
6565
6984
|
"summary": "发起一个上传 files(issue,pr 及其评论中文档,压缩包等)的请求,返回上传 cos 的 url 和 form 内容",
|
|
6566
6985
|
"parameters": [
|
|
6567
6986
|
{
|
|
@@ -6597,6 +7016,7 @@
|
|
|
6597
7016
|
"repo.upload.imgs.post": [
|
|
6598
7017
|
{
|
|
6599
7018
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
7019
|
+
"operationId": "UploadImgs",
|
|
6600
7020
|
"summary": "发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容",
|
|
6601
7021
|
"parameters": [
|
|
6602
7022
|
{
|
|
@@ -6632,6 +7052,7 @@
|
|
|
6632
7052
|
"repo.upload.releases.post": [
|
|
6633
7053
|
{
|
|
6634
7054
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
7055
|
+
"operationId": "UploadReleases",
|
|
6635
7056
|
"summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url 和 form 内容",
|
|
6636
7057
|
"parameters": [
|
|
6637
7058
|
{
|
|
@@ -6674,6 +7095,7 @@
|
|
|
6674
7095
|
"repo.workspace.detail.get": [
|
|
6675
7096
|
{
|
|
6676
7097
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-detail:r",
|
|
7098
|
+
"operationId": "GetWorkspaceDetail",
|
|
6677
7099
|
"summary": "根据流水线sn查询云原生开发访问地址",
|
|
6678
7100
|
"parameters": [
|
|
6679
7101
|
{
|
|
@@ -6702,5 +7124,584 @@
|
|
|
6702
7124
|
"path": "/{repo}/-/workspace/detail/{sn}",
|
|
6703
7125
|
"method": "get"
|
|
6704
7126
|
}
|
|
7127
|
+
],
|
|
7128
|
+
"slug.packages.list": [
|
|
7129
|
+
{
|
|
7130
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7131
|
+
"operationId": "ListPackages",
|
|
7132
|
+
"summary": "List all packages",
|
|
7133
|
+
"parameters": [
|
|
7134
|
+
{
|
|
7135
|
+
"description": "仓库 slug",
|
|
7136
|
+
"in": "path",
|
|
7137
|
+
"name": "slug",
|
|
7138
|
+
"required": true,
|
|
7139
|
+
"type": "string"
|
|
7140
|
+
},
|
|
7141
|
+
{
|
|
7142
|
+
"description": "制品类型",
|
|
7143
|
+
"enum": [
|
|
7144
|
+
"all",
|
|
7145
|
+
"docker",
|
|
7146
|
+
"helm",
|
|
7147
|
+
"maven",
|
|
7148
|
+
"npm",
|
|
7149
|
+
"ohpm"
|
|
7150
|
+
],
|
|
7151
|
+
"in": "query",
|
|
7152
|
+
"name": "type",
|
|
7153
|
+
"required": true,
|
|
7154
|
+
"type": "string"
|
|
7155
|
+
},
|
|
7156
|
+
{
|
|
7157
|
+
"default": 1,
|
|
7158
|
+
"description": "页码,从1开始",
|
|
7159
|
+
"in": "query",
|
|
7160
|
+
"name": "page",
|
|
7161
|
+
"type": "integer"
|
|
7162
|
+
},
|
|
7163
|
+
{
|
|
7164
|
+
"default": 10,
|
|
7165
|
+
"description": "每页数量",
|
|
7166
|
+
"in": "query",
|
|
7167
|
+
"name": "page_size",
|
|
7168
|
+
"type": "integer"
|
|
7169
|
+
},
|
|
7170
|
+
{
|
|
7171
|
+
"description": "排序类型",
|
|
7172
|
+
"enum": [
|
|
7173
|
+
"pull_count",
|
|
7174
|
+
"last_push_at",
|
|
7175
|
+
"name_ascend",
|
|
7176
|
+
"name_descend"
|
|
7177
|
+
],
|
|
7178
|
+
"in": "query",
|
|
7179
|
+
"name": "ordering",
|
|
7180
|
+
"type": "string"
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
"description": "制品名搜索关键词",
|
|
7184
|
+
"in": "query",
|
|
7185
|
+
"name": "name",
|
|
7186
|
+
"type": "string"
|
|
7187
|
+
}
|
|
7188
|
+
],
|
|
7189
|
+
"responses": {
|
|
7190
|
+
"200": {
|
|
7191
|
+
"description": "OK",
|
|
7192
|
+
"schema": {
|
|
7193
|
+
"items": {
|
|
7194
|
+
"$ref": "#/definitions/dto.Package"
|
|
7195
|
+
},
|
|
7196
|
+
"type": "array"
|
|
7197
|
+
}
|
|
7198
|
+
},
|
|
7199
|
+
"400": {
|
|
7200
|
+
"description": "Bad Request",
|
|
7201
|
+
"schema": {
|
|
7202
|
+
"$ref": "#/definitions/die.WebError"
|
|
7203
|
+
}
|
|
7204
|
+
}
|
|
7205
|
+
},
|
|
7206
|
+
"path": "/{slug}/-/packages",
|
|
7207
|
+
"method": "get"
|
|
7208
|
+
}
|
|
7209
|
+
],
|
|
7210
|
+
"slug.packages.head": [
|
|
7211
|
+
{
|
|
7212
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7213
|
+
"operationId": "HeadPackages",
|
|
7214
|
+
"summary": "Head all packages",
|
|
7215
|
+
"parameters": [
|
|
7216
|
+
{
|
|
7217
|
+
"description": "仓库 slug",
|
|
7218
|
+
"in": "path",
|
|
7219
|
+
"name": "slug",
|
|
7220
|
+
"required": true,
|
|
7221
|
+
"type": "string"
|
|
7222
|
+
},
|
|
7223
|
+
{
|
|
7224
|
+
"description": "制品类型",
|
|
7225
|
+
"enum": [
|
|
7226
|
+
"all",
|
|
7227
|
+
"docker",
|
|
7228
|
+
"helm"
|
|
7229
|
+
],
|
|
7230
|
+
"in": "query",
|
|
7231
|
+
"name": "type",
|
|
7232
|
+
"required": true,
|
|
7233
|
+
"type": "string"
|
|
7234
|
+
},
|
|
7235
|
+
{
|
|
7236
|
+
"default": 1,
|
|
7237
|
+
"description": "页码,从1开始",
|
|
7238
|
+
"in": "query",
|
|
7239
|
+
"name": "page",
|
|
7240
|
+
"type": "integer"
|
|
7241
|
+
},
|
|
7242
|
+
{
|
|
7243
|
+
"default": 10,
|
|
7244
|
+
"description": "每页数量",
|
|
7245
|
+
"in": "query",
|
|
7246
|
+
"name": "page_size",
|
|
7247
|
+
"type": "integer"
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"description": "排序类型",
|
|
7251
|
+
"enum": [
|
|
7252
|
+
"pull_count",
|
|
7253
|
+
"last_push_at",
|
|
7254
|
+
"name_ascend",
|
|
7255
|
+
"name_descend"
|
|
7256
|
+
],
|
|
7257
|
+
"in": "query",
|
|
7258
|
+
"name": "ordering",
|
|
7259
|
+
"type": "string"
|
|
7260
|
+
},
|
|
7261
|
+
{
|
|
7262
|
+
"description": "制品名搜索关键词",
|
|
7263
|
+
"in": "query",
|
|
7264
|
+
"name": "name",
|
|
7265
|
+
"type": "string"
|
|
7266
|
+
}
|
|
7267
|
+
],
|
|
7268
|
+
"responses": {
|
|
7269
|
+
"200": {
|
|
7270
|
+
"description": "OK"
|
|
7271
|
+
},
|
|
7272
|
+
"400": {
|
|
7273
|
+
"description": "Bad Request"
|
|
7274
|
+
}
|
|
7275
|
+
},
|
|
7276
|
+
"path": "/{slug}/-/packages",
|
|
7277
|
+
"method": "head"
|
|
7278
|
+
}
|
|
7279
|
+
],
|
|
7280
|
+
"slug.packages.type.quota.get": [
|
|
7281
|
+
{
|
|
7282
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7283
|
+
"operationId": "GetQuotaByProjectName",
|
|
7284
|
+
"summary": "Get quota of specific registry",
|
|
7285
|
+
"parameters": [
|
|
7286
|
+
{
|
|
7287
|
+
"description": "仓库 slug",
|
|
7288
|
+
"in": "path",
|
|
7289
|
+
"name": "slug",
|
|
7290
|
+
"required": true,
|
|
7291
|
+
"type": "string"
|
|
7292
|
+
},
|
|
7293
|
+
{
|
|
7294
|
+
"description": "制品类型",
|
|
7295
|
+
"enum": [
|
|
7296
|
+
"docker",
|
|
7297
|
+
"helm",
|
|
7298
|
+
"maven",
|
|
7299
|
+
"npm",
|
|
7300
|
+
"ohpm"
|
|
7301
|
+
],
|
|
7302
|
+
"in": "path",
|
|
7303
|
+
"name": "type",
|
|
7304
|
+
"required": true,
|
|
7305
|
+
"type": "string"
|
|
7306
|
+
}
|
|
7307
|
+
],
|
|
7308
|
+
"responses": {
|
|
7309
|
+
"200": {
|
|
7310
|
+
"description": "OK",
|
|
7311
|
+
"schema": {
|
|
7312
|
+
"$ref": "#/definitions/dto.QuotaRsp"
|
|
7313
|
+
}
|
|
7314
|
+
},
|
|
7315
|
+
"400": {
|
|
7316
|
+
"description": "Bad Request",
|
|
7317
|
+
"schema": {
|
|
7318
|
+
"$ref": "#/definitions/die.WebError"
|
|
7319
|
+
}
|
|
7320
|
+
}
|
|
7321
|
+
},
|
|
7322
|
+
"path": "/{slug}/-/packages/{type}/-/quota",
|
|
7323
|
+
"method": "get"
|
|
7324
|
+
}
|
|
7325
|
+
],
|
|
7326
|
+
"slug.packages.type.quotas.list": [
|
|
7327
|
+
{
|
|
7328
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7329
|
+
"operationId": "GetQuotasByProjectName",
|
|
7330
|
+
"summary": "Get quotas of packages under one registry",
|
|
7331
|
+
"parameters": [
|
|
7332
|
+
{
|
|
7333
|
+
"description": "仓库 slug",
|
|
7334
|
+
"in": "path",
|
|
7335
|
+
"name": "slug",
|
|
7336
|
+
"required": true,
|
|
7337
|
+
"type": "string"
|
|
7338
|
+
},
|
|
7339
|
+
{
|
|
7340
|
+
"description": "制品类型",
|
|
7341
|
+
"enum": [
|
|
7342
|
+
"docker",
|
|
7343
|
+
"helm",
|
|
7344
|
+
"maven",
|
|
7345
|
+
"npm",
|
|
7346
|
+
"ohpm"
|
|
7347
|
+
],
|
|
7348
|
+
"in": "path",
|
|
7349
|
+
"name": "type",
|
|
7350
|
+
"required": true,
|
|
7351
|
+
"type": "string"
|
|
7352
|
+
},
|
|
7353
|
+
{
|
|
7354
|
+
"default": 1,
|
|
7355
|
+
"description": "页码,从1开始",
|
|
7356
|
+
"in": "query",
|
|
7357
|
+
"name": "page",
|
|
7358
|
+
"type": "integer"
|
|
7359
|
+
},
|
|
7360
|
+
{
|
|
7361
|
+
"default": 10,
|
|
7362
|
+
"description": "每页数量",
|
|
7363
|
+
"in": "query",
|
|
7364
|
+
"name": "page_size",
|
|
7365
|
+
"type": "integer"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"description": "排序类型",
|
|
7369
|
+
"enum": [
|
|
7370
|
+
"used_ascend",
|
|
7371
|
+
"used_descend"
|
|
7372
|
+
],
|
|
7373
|
+
"in": "query",
|
|
7374
|
+
"name": "ordering",
|
|
7375
|
+
"type": "string"
|
|
7376
|
+
}
|
|
7377
|
+
],
|
|
7378
|
+
"responses": {
|
|
7379
|
+
"200": {
|
|
7380
|
+
"description": "OK",
|
|
7381
|
+
"schema": {
|
|
7382
|
+
"items": {
|
|
7383
|
+
"$ref": "#/definitions/dto.QuotaRsp"
|
|
7384
|
+
},
|
|
7385
|
+
"type": "array"
|
|
7386
|
+
}
|
|
7387
|
+
},
|
|
7388
|
+
"400": {
|
|
7389
|
+
"description": "Bad Request",
|
|
7390
|
+
"schema": {
|
|
7391
|
+
"$ref": "#/definitions/die.WebError"
|
|
7392
|
+
}
|
|
7393
|
+
}
|
|
7394
|
+
},
|
|
7395
|
+
"path": "/{slug}/-/packages/{type}/-/quotas",
|
|
7396
|
+
"method": "get"
|
|
7397
|
+
}
|
|
7398
|
+
],
|
|
7399
|
+
"slug.packages.type.quotas.download.list": [
|
|
7400
|
+
{
|
|
7401
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7402
|
+
"operationId": "DownloadQuotasByProjectName",
|
|
7403
|
+
"summary": "Download registry quota details",
|
|
7404
|
+
"parameters": [
|
|
7405
|
+
{
|
|
7406
|
+
"description": "仓库 slug",
|
|
7407
|
+
"in": "path",
|
|
7408
|
+
"name": "slug",
|
|
7409
|
+
"required": true,
|
|
7410
|
+
"type": "string"
|
|
7411
|
+
},
|
|
7412
|
+
{
|
|
7413
|
+
"description": "制品类型",
|
|
7414
|
+
"enum": [
|
|
7415
|
+
"docker",
|
|
7416
|
+
"helm",
|
|
7417
|
+
"maven",
|
|
7418
|
+
"npm",
|
|
7419
|
+
"ohpm"
|
|
7420
|
+
],
|
|
7421
|
+
"in": "path",
|
|
7422
|
+
"name": "type",
|
|
7423
|
+
"required": true,
|
|
7424
|
+
"type": "string"
|
|
7425
|
+
},
|
|
7426
|
+
{
|
|
7427
|
+
"default": 1,
|
|
7428
|
+
"description": "页码,从1开始",
|
|
7429
|
+
"in": "query",
|
|
7430
|
+
"name": "page",
|
|
7431
|
+
"type": "integer"
|
|
7432
|
+
},
|
|
7433
|
+
{
|
|
7434
|
+
"default": 10,
|
|
7435
|
+
"description": "每页数量",
|
|
7436
|
+
"in": "query",
|
|
7437
|
+
"name": "page_size",
|
|
7438
|
+
"type": "integer"
|
|
7439
|
+
},
|
|
7440
|
+
{
|
|
7441
|
+
"description": "排序类型",
|
|
7442
|
+
"enum": [
|
|
7443
|
+
"used_ascend",
|
|
7444
|
+
"used_descend"
|
|
7445
|
+
],
|
|
7446
|
+
"in": "query",
|
|
7447
|
+
"name": "ordering",
|
|
7448
|
+
"type": "string"
|
|
7449
|
+
}
|
|
7450
|
+
],
|
|
7451
|
+
"responses": {
|
|
7452
|
+
"200": {
|
|
7453
|
+
"description": "OK",
|
|
7454
|
+
"schema": {
|
|
7455
|
+
"items": {
|
|
7456
|
+
"$ref": "#/definitions/dto.QuotaRsp"
|
|
7457
|
+
},
|
|
7458
|
+
"type": "array"
|
|
7459
|
+
}
|
|
7460
|
+
},
|
|
7461
|
+
"400": {
|
|
7462
|
+
"description": "Bad Request",
|
|
7463
|
+
"schema": {
|
|
7464
|
+
"$ref": "#/definitions/die.WebError"
|
|
7465
|
+
}
|
|
7466
|
+
}
|
|
7467
|
+
},
|
|
7468
|
+
"path": "/{slug}/-/packages/{type}/-/quotas/download",
|
|
7469
|
+
"method": "get"
|
|
7470
|
+
}
|
|
7471
|
+
],
|
|
7472
|
+
"slug.packages.get": [
|
|
7473
|
+
{
|
|
7474
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7475
|
+
"operationId": "GetPackage",
|
|
7476
|
+
"summary": "Get the specific package",
|
|
7477
|
+
"parameters": [
|
|
7478
|
+
{
|
|
7479
|
+
"description": "仓库 slug",
|
|
7480
|
+
"in": "path",
|
|
7481
|
+
"name": "slug",
|
|
7482
|
+
"required": true,
|
|
7483
|
+
"type": "string"
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
"description": "制品类型",
|
|
7487
|
+
"enum": [
|
|
7488
|
+
"docker",
|
|
7489
|
+
"helm",
|
|
7490
|
+
"maven",
|
|
7491
|
+
"npm",
|
|
7492
|
+
"ohpm"
|
|
7493
|
+
],
|
|
7494
|
+
"in": "path",
|
|
7495
|
+
"name": "type",
|
|
7496
|
+
"required": true,
|
|
7497
|
+
"type": "string"
|
|
7498
|
+
},
|
|
7499
|
+
{
|
|
7500
|
+
"description": "制品名称",
|
|
7501
|
+
"in": "path",
|
|
7502
|
+
"name": "name",
|
|
7503
|
+
"required": true,
|
|
7504
|
+
"type": "string"
|
|
7505
|
+
}
|
|
7506
|
+
],
|
|
7507
|
+
"responses": {
|
|
7508
|
+
"200": {
|
|
7509
|
+
"description": "OK",
|
|
7510
|
+
"schema": {
|
|
7511
|
+
"$ref": "#/definitions/dto.PackageDetail"
|
|
7512
|
+
}
|
|
7513
|
+
}
|
|
7514
|
+
},
|
|
7515
|
+
"path": "/{slug}/-/packages/{type}/{name}",
|
|
7516
|
+
"method": "get"
|
|
7517
|
+
}
|
|
7518
|
+
],
|
|
7519
|
+
"slug.packages.name.tag.delete": [
|
|
7520
|
+
{
|
|
7521
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package-delete:rw",
|
|
7522
|
+
"operationId": "DeletePackageTag",
|
|
7523
|
+
"summary": "Delete the specific tag under specific package",
|
|
7524
|
+
"parameters": [
|
|
7525
|
+
{
|
|
7526
|
+
"description": "仓库 slug",
|
|
7527
|
+
"in": "path",
|
|
7528
|
+
"name": "slug",
|
|
7529
|
+
"required": true,
|
|
7530
|
+
"type": "string"
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"description": "制品类型",
|
|
7534
|
+
"enum": [
|
|
7535
|
+
"docker",
|
|
7536
|
+
"helm",
|
|
7537
|
+
"maven",
|
|
7538
|
+
"npm",
|
|
7539
|
+
"ohpm"
|
|
7540
|
+
],
|
|
7541
|
+
"in": "path",
|
|
7542
|
+
"name": "type",
|
|
7543
|
+
"required": true,
|
|
7544
|
+
"type": "string"
|
|
7545
|
+
},
|
|
7546
|
+
{
|
|
7547
|
+
"description": "制品名称",
|
|
7548
|
+
"in": "path",
|
|
7549
|
+
"name": "name",
|
|
7550
|
+
"required": true,
|
|
7551
|
+
"type": "string"
|
|
7552
|
+
},
|
|
7553
|
+
{
|
|
7554
|
+
"description": "制品标签",
|
|
7555
|
+
"in": "path",
|
|
7556
|
+
"name": "tag",
|
|
7557
|
+
"required": true,
|
|
7558
|
+
"type": "string"
|
|
7559
|
+
}
|
|
7560
|
+
],
|
|
7561
|
+
"responses": {
|
|
7562
|
+
"200": {
|
|
7563
|
+
"description": "OK"
|
|
7564
|
+
}
|
|
7565
|
+
},
|
|
7566
|
+
"path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
|
|
7567
|
+
"method": "delete"
|
|
7568
|
+
}
|
|
7569
|
+
],
|
|
7570
|
+
"slug.packages.name.tag.get": [
|
|
7571
|
+
{
|
|
7572
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7573
|
+
"operationId": "GetPackageTagDetail",
|
|
7574
|
+
"summary": "Get the specific tag under specific package",
|
|
7575
|
+
"parameters": [
|
|
7576
|
+
{
|
|
7577
|
+
"description": "仓库 slug",
|
|
7578
|
+
"in": "path",
|
|
7579
|
+
"name": "slug",
|
|
7580
|
+
"required": true,
|
|
7581
|
+
"type": "string"
|
|
7582
|
+
},
|
|
7583
|
+
{
|
|
7584
|
+
"description": "制品类型",
|
|
7585
|
+
"enum": [
|
|
7586
|
+
"docker",
|
|
7587
|
+
"helm",
|
|
7588
|
+
"maven",
|
|
7589
|
+
"npm",
|
|
7590
|
+
"ohpm"
|
|
7591
|
+
],
|
|
7592
|
+
"in": "path",
|
|
7593
|
+
"name": "type",
|
|
7594
|
+
"required": true,
|
|
7595
|
+
"type": "string"
|
|
7596
|
+
},
|
|
7597
|
+
{
|
|
7598
|
+
"description": "制品名称",
|
|
7599
|
+
"in": "path",
|
|
7600
|
+
"name": "name",
|
|
7601
|
+
"required": true,
|
|
7602
|
+
"type": "string"
|
|
7603
|
+
},
|
|
7604
|
+
{
|
|
7605
|
+
"description": "制品标签",
|
|
7606
|
+
"in": "path",
|
|
7607
|
+
"name": "tag",
|
|
7608
|
+
"required": true,
|
|
7609
|
+
"type": "string"
|
|
7610
|
+
},
|
|
7611
|
+
{
|
|
7612
|
+
"description": "摘要,容器制品时必须",
|
|
7613
|
+
"in": "query",
|
|
7614
|
+
"name": "sha256",
|
|
7615
|
+
"type": "string"
|
|
7616
|
+
}
|
|
7617
|
+
],
|
|
7618
|
+
"responses": {
|
|
7619
|
+
"200": {
|
|
7620
|
+
"description": "OK",
|
|
7621
|
+
"schema": {
|
|
7622
|
+
"$ref": "#/definitions/dto.TagDetail"
|
|
7623
|
+
}
|
|
7624
|
+
}
|
|
7625
|
+
},
|
|
7626
|
+
"path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
|
|
7627
|
+
"method": "get"
|
|
7628
|
+
}
|
|
7629
|
+
],
|
|
7630
|
+
"slug.packages.pkgname.tags.get": [
|
|
7631
|
+
{
|
|
7632
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-package:r",
|
|
7633
|
+
"operationId": "ListPackageTags",
|
|
7634
|
+
"summary": "List all tags under specific package",
|
|
7635
|
+
"parameters": [
|
|
7636
|
+
{
|
|
7637
|
+
"description": "仓库 slug",
|
|
7638
|
+
"in": "path",
|
|
7639
|
+
"name": "slug",
|
|
7640
|
+
"required": true,
|
|
7641
|
+
"type": "string"
|
|
7642
|
+
},
|
|
7643
|
+
{
|
|
7644
|
+
"description": "制品类型",
|
|
7645
|
+
"enum": [
|
|
7646
|
+
"docker",
|
|
7647
|
+
"helm",
|
|
7648
|
+
"maven",
|
|
7649
|
+
"npm",
|
|
7650
|
+
"ohpm"
|
|
7651
|
+
],
|
|
7652
|
+
"in": "path",
|
|
7653
|
+
"name": "type",
|
|
7654
|
+
"required": true,
|
|
7655
|
+
"type": "string"
|
|
7656
|
+
},
|
|
7657
|
+
{
|
|
7658
|
+
"description": "制品名称",
|
|
7659
|
+
"in": "path",
|
|
7660
|
+
"name": "pkgname",
|
|
7661
|
+
"required": true,
|
|
7662
|
+
"type": "string"
|
|
7663
|
+
},
|
|
7664
|
+
{
|
|
7665
|
+
"default": 1,
|
|
7666
|
+
"description": "页码,从1开始",
|
|
7667
|
+
"in": "query",
|
|
7668
|
+
"name": "page",
|
|
7669
|
+
"type": "integer"
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
"default": 10,
|
|
7673
|
+
"description": "每页多少条数据",
|
|
7674
|
+
"in": "query",
|
|
7675
|
+
"name": "page_size",
|
|
7676
|
+
"type": "integer"
|
|
7677
|
+
},
|
|
7678
|
+
{
|
|
7679
|
+
"description": "排序类型",
|
|
7680
|
+
"enum": [
|
|
7681
|
+
"pull_count",
|
|
7682
|
+
"last_push_at"
|
|
7683
|
+
],
|
|
7684
|
+
"in": "query",
|
|
7685
|
+
"name": "ordering",
|
|
7686
|
+
"type": "string"
|
|
7687
|
+
},
|
|
7688
|
+
{
|
|
7689
|
+
"description": "搜索关键字",
|
|
7690
|
+
"in": "query",
|
|
7691
|
+
"name": "name",
|
|
7692
|
+
"type": "string"
|
|
7693
|
+
}
|
|
7694
|
+
],
|
|
7695
|
+
"responses": {
|
|
7696
|
+
"200": {
|
|
7697
|
+
"description": "OK",
|
|
7698
|
+
"schema": {
|
|
7699
|
+
"$ref": "#/definitions/dto.Tag"
|
|
7700
|
+
}
|
|
7701
|
+
}
|
|
7702
|
+
},
|
|
7703
|
+
"path": "/{slug}/-/packages/{type}/{pkgname}/-/tags",
|
|
7704
|
+
"method": "get"
|
|
7705
|
+
}
|
|
6705
7706
|
]
|
|
6706
7707
|
}
|