node-cnb 1.6.0 → 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 +1046 -2100
- 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
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"groups.post": [
|
|
3
3
|
{
|
|
4
|
-
"security": [
|
|
5
|
-
{
|
|
6
|
-
"BearerAuth": []
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
4
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
10
|
-
"
|
|
11
|
-
"application/json"
|
|
12
|
-
],
|
|
13
|
-
"produces": [
|
|
14
|
-
"application/json",
|
|
15
|
-
"application/vnd.cnb.api+json",
|
|
16
|
-
"application/vnd.cnb.web+json"
|
|
17
|
-
],
|
|
18
|
-
"tags": [
|
|
19
|
-
"Organizations"
|
|
20
|
-
],
|
|
5
|
+
"operationId": "CreateOrganization",
|
|
21
6
|
"summary": "创建新组织",
|
|
22
7
|
"parameters": [
|
|
23
8
|
{
|
|
@@ -41,23 +26,8 @@
|
|
|
41
26
|
],
|
|
42
27
|
"user.get": [
|
|
43
28
|
{
|
|
44
|
-
"security": [
|
|
45
|
-
{
|
|
46
|
-
"BearerAuth": []
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
29
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
50
|
-
"
|
|
51
|
-
"application/json"
|
|
52
|
-
],
|
|
53
|
-
"produces": [
|
|
54
|
-
"application/json",
|
|
55
|
-
"application/vnd.cnb.api+json",
|
|
56
|
-
"application/vnd.cnb.web+json"
|
|
57
|
-
],
|
|
58
|
-
"tags": [
|
|
59
|
-
"Users"
|
|
60
|
-
],
|
|
30
|
+
"operationId": "GetUserInfo",
|
|
61
31
|
"summary": "获取指定用户的详情信息",
|
|
62
32
|
"parameters": [],
|
|
63
33
|
"responses": {
|
|
@@ -74,23 +44,8 @@
|
|
|
74
44
|
],
|
|
75
45
|
"user.post": [
|
|
76
46
|
{
|
|
77
|
-
"security": [
|
|
78
|
-
{
|
|
79
|
-
"BearerAuth": []
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
47
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:rw",
|
|
83
|
-
"
|
|
84
|
-
"application/json"
|
|
85
|
-
],
|
|
86
|
-
"produces": [
|
|
87
|
-
"application/json",
|
|
88
|
-
"application/vnd.cnb.api+json",
|
|
89
|
-
"application/vnd.cnb.web+json"
|
|
90
|
-
],
|
|
91
|
-
"tags": [
|
|
92
|
-
"Users"
|
|
93
|
-
],
|
|
48
|
+
"operationId": "UpdateUserInfo",
|
|
94
49
|
"summary": "更新指定用户的详情信息, 可更新内容为: 昵称, 个人签名, 微信公众号名称, 微信公众号二维码链接, 个人网站, 个人地址, 公司名称",
|
|
95
50
|
"parameters": [
|
|
96
51
|
{
|
|
@@ -114,23 +69,8 @@
|
|
|
114
69
|
],
|
|
115
70
|
"user.autocompleteSource.list": [
|
|
116
71
|
{
|
|
117
|
-
"security": [
|
|
118
|
-
{
|
|
119
|
-
"BearerAuth": []
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
72
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
123
|
-
"
|
|
124
|
-
"application/json"
|
|
125
|
-
],
|
|
126
|
-
"produces": [
|
|
127
|
-
"application/json",
|
|
128
|
-
"application/vnd.cnb.api+json",
|
|
129
|
-
"application/vnd.cnb.web+json"
|
|
130
|
-
],
|
|
131
|
-
"tags": [
|
|
132
|
-
"Users"
|
|
133
|
-
],
|
|
73
|
+
"operationId": "AutoCompleteSource",
|
|
134
74
|
"summary": "查询当前用户用户拥有指定权限的所有资源列表",
|
|
135
75
|
"parameters": [
|
|
136
76
|
{
|
|
@@ -194,23 +134,8 @@
|
|
|
194
134
|
],
|
|
195
135
|
"user.groups.list": [
|
|
196
136
|
{
|
|
197
|
-
"security": [
|
|
198
|
-
{
|
|
199
|
-
"BearerAuth": []
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
137
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
203
|
-
"
|
|
204
|
-
"application/json"
|
|
205
|
-
],
|
|
206
|
-
"produces": [
|
|
207
|
-
"application/json",
|
|
208
|
-
"application/vnd.cnb.api+json",
|
|
209
|
-
"application/vnd.cnb.web+json"
|
|
210
|
-
],
|
|
211
|
-
"tags": [
|
|
212
|
-
"Organizations"
|
|
213
|
-
],
|
|
138
|
+
"operationId": "ListTopGroups",
|
|
214
139
|
"summary": "获取当前用户拥有权限的顶层组织列表",
|
|
215
140
|
"parameters": [
|
|
216
141
|
{
|
|
@@ -265,23 +190,8 @@
|
|
|
265
190
|
],
|
|
266
191
|
"user.groups.listByGroup": [
|
|
267
192
|
{
|
|
268
|
-
"security": [
|
|
269
|
-
{
|
|
270
|
-
"BearerAuth": []
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
193
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
274
|
-
"
|
|
275
|
-
"application/json"
|
|
276
|
-
],
|
|
277
|
-
"produces": [
|
|
278
|
-
"application/json",
|
|
279
|
-
"application/vnd.cnb.api+json",
|
|
280
|
-
"application/vnd.cnb.web+json"
|
|
281
|
-
],
|
|
282
|
-
"tags": [
|
|
283
|
-
"Organizations"
|
|
284
|
-
],
|
|
194
|
+
"operationId": "ListGroups",
|
|
285
195
|
"summary": "查询当前用户在指定组织下拥有指定权限的子组织列表",
|
|
286
196
|
"parameters": [
|
|
287
197
|
{
|
|
@@ -330,23 +240,8 @@
|
|
|
330
240
|
],
|
|
331
241
|
"user.repos.list": [
|
|
332
242
|
{
|
|
333
|
-
"security": [
|
|
334
|
-
{
|
|
335
|
-
"BearerAuth": []
|
|
336
|
-
}
|
|
337
|
-
],
|
|
338
243
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
339
|
-
"
|
|
340
|
-
"application/json"
|
|
341
|
-
],
|
|
342
|
-
"produces": [
|
|
343
|
-
"application/json",
|
|
344
|
-
"application/vnd.cnb.api+json",
|
|
345
|
-
"application/vnd.cnb.web+json"
|
|
346
|
-
],
|
|
347
|
-
"tags": [
|
|
348
|
-
"Repositories"
|
|
349
|
-
],
|
|
244
|
+
"operationId": "GetRepos",
|
|
350
245
|
"summary": "获取当前用户拥有指定权限及其以上权限的仓库",
|
|
351
246
|
"parameters": [
|
|
352
247
|
{
|
|
@@ -429,23 +324,8 @@
|
|
|
429
324
|
],
|
|
430
325
|
"user.staredRepos.list": [
|
|
431
326
|
{
|
|
432
|
-
"security": [
|
|
433
|
-
{
|
|
434
|
-
"BearerAuth": []
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
327
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
438
|
-
"
|
|
439
|
-
"application/json"
|
|
440
|
-
],
|
|
441
|
-
"produces": [
|
|
442
|
-
"application/json",
|
|
443
|
-
"application/vnd.cnb.api+json",
|
|
444
|
-
"application/vnd.cnb.web+json"
|
|
445
|
-
],
|
|
446
|
-
"tags": [
|
|
447
|
-
"Repositories"
|
|
448
|
-
],
|
|
328
|
+
"operationId": "GetUserAllStaredRepos",
|
|
449
329
|
"summary": "获取当前用户 star 的仓库列表",
|
|
450
330
|
"parameters": [
|
|
451
331
|
{
|
|
@@ -505,23 +385,8 @@
|
|
|
505
385
|
],
|
|
506
386
|
"users.get": [
|
|
507
387
|
{
|
|
508
|
-
"security": [
|
|
509
|
-
{
|
|
510
|
-
"BearerAuth": []
|
|
511
|
-
}
|
|
512
|
-
],
|
|
513
388
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
514
|
-
"
|
|
515
|
-
"application/json"
|
|
516
|
-
],
|
|
517
|
-
"produces": [
|
|
518
|
-
"application/json",
|
|
519
|
-
"application/vnd.cnb.api+json",
|
|
520
|
-
"application/vnd.cnb.web+json"
|
|
521
|
-
],
|
|
522
|
-
"tags": [
|
|
523
|
-
"Users"
|
|
524
|
-
],
|
|
389
|
+
"operationId": "GetUserInfoByName",
|
|
525
390
|
"summary": "获取指定用户的详情信息",
|
|
526
391
|
"parameters": [
|
|
527
392
|
{
|
|
@@ -547,13 +412,8 @@
|
|
|
547
412
|
],
|
|
548
413
|
"users.avatar.get": [
|
|
549
414
|
{
|
|
550
|
-
"security": null,
|
|
551
415
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-profile:r",
|
|
552
|
-
"
|
|
553
|
-
"produces": null,
|
|
554
|
-
"tags": [
|
|
555
|
-
"Assets"
|
|
556
|
-
],
|
|
416
|
+
"operationId": "GetUserAvatar",
|
|
557
417
|
"summary": "获取指定用户的用户头像",
|
|
558
418
|
"parameters": [
|
|
559
419
|
{
|
|
@@ -579,23 +439,8 @@
|
|
|
579
439
|
],
|
|
580
440
|
"users.followers.list": [
|
|
581
441
|
{
|
|
582
|
-
"security": [
|
|
583
|
-
{
|
|
584
|
-
"BearerAuth": []
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
442
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
588
|
-
"
|
|
589
|
-
"application/json"
|
|
590
|
-
],
|
|
591
|
-
"produces": [
|
|
592
|
-
"application/json",
|
|
593
|
-
"application/vnd.cnb.api+json",
|
|
594
|
-
"application/vnd.cnb.web+json"
|
|
595
|
-
],
|
|
596
|
-
"tags": [
|
|
597
|
-
"Followers"
|
|
598
|
-
],
|
|
443
|
+
"operationId": "GetFollowersByUserID",
|
|
599
444
|
"summary": "获取指定用户的粉丝列表",
|
|
600
445
|
"parameters": [
|
|
601
446
|
{
|
|
@@ -638,23 +483,8 @@
|
|
|
638
483
|
],
|
|
639
484
|
"users.following.list": [
|
|
640
485
|
{
|
|
641
|
-
"security": [
|
|
642
|
-
{
|
|
643
|
-
"BearerAuth": []
|
|
644
|
-
}
|
|
645
|
-
],
|
|
646
486
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
647
|
-
"
|
|
648
|
-
"application/json"
|
|
649
|
-
],
|
|
650
|
-
"produces": [
|
|
651
|
-
"application/json",
|
|
652
|
-
"application/vnd.cnb.api+json",
|
|
653
|
-
"application/vnd.cnb.web+json"
|
|
654
|
-
],
|
|
655
|
-
"tags": [
|
|
656
|
-
"Followers"
|
|
657
|
-
],
|
|
487
|
+
"operationId": "GetFollowingByUserID",
|
|
658
488
|
"summary": "获取指定用户的关注人列表",
|
|
659
489
|
"parameters": [
|
|
660
490
|
{
|
|
@@ -697,23 +527,8 @@
|
|
|
697
527
|
],
|
|
698
528
|
"users.groups.get": [
|
|
699
529
|
{
|
|
700
|
-
"security": [
|
|
701
|
-
{
|
|
702
|
-
"BearerAuth": []
|
|
703
|
-
}
|
|
704
|
-
],
|
|
705
530
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
706
|
-
"
|
|
707
|
-
"application/json"
|
|
708
|
-
],
|
|
709
|
-
"produces": [
|
|
710
|
-
"application/json",
|
|
711
|
-
"application/vnd.cnb.api+json",
|
|
712
|
-
"application/vnd.cnb.web+json"
|
|
713
|
-
],
|
|
714
|
-
"tags": [
|
|
715
|
-
"Organizations"
|
|
716
|
-
],
|
|
531
|
+
"operationId": "GetGroupsByUserID",
|
|
717
532
|
"summary": "获取指定用户拥有权限的顶层组织列表",
|
|
718
533
|
"parameters": [
|
|
719
534
|
{
|
|
@@ -777,23 +592,8 @@
|
|
|
777
592
|
],
|
|
778
593
|
"users.pinnedRepos.list": [
|
|
779
594
|
{
|
|
780
|
-
"security": [
|
|
781
|
-
{
|
|
782
|
-
"BearerAuth": []
|
|
783
|
-
}
|
|
784
|
-
],
|
|
785
595
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
786
|
-
"
|
|
787
|
-
"application/json"
|
|
788
|
-
],
|
|
789
|
-
"produces": [
|
|
790
|
-
"application/json",
|
|
791
|
-
"application/vnd.cnb.api+json",
|
|
792
|
-
"application/vnd.cnb.web+json"
|
|
793
|
-
],
|
|
794
|
-
"tags": [
|
|
795
|
-
"Repositories"
|
|
796
|
-
],
|
|
596
|
+
"operationId": "GetPinnedRepoByID",
|
|
797
597
|
"summary": "获取指定用户的用户仓库墙",
|
|
798
598
|
"parameters": [
|
|
799
599
|
{
|
|
@@ -822,23 +622,8 @@
|
|
|
822
622
|
],
|
|
823
623
|
"users.repos.list": [
|
|
824
624
|
{
|
|
825
|
-
"security": [
|
|
826
|
-
{
|
|
827
|
-
"BearerAuth": []
|
|
828
|
-
}
|
|
829
|
-
],
|
|
830
625
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
831
|
-
"
|
|
832
|
-
"application/json"
|
|
833
|
-
],
|
|
834
|
-
"produces": [
|
|
835
|
-
"application/json",
|
|
836
|
-
"application/vnd.cnb.api+json",
|
|
837
|
-
"application/vnd.cnb.web+json"
|
|
838
|
-
],
|
|
839
|
-
"tags": [
|
|
840
|
-
"Repositories"
|
|
841
|
-
],
|
|
626
|
+
"operationId": "GetReposByUserName",
|
|
842
627
|
"summary": "获取指定用户有指定以上权限并且客人态可见的仓库",
|
|
843
628
|
"parameters": [
|
|
844
629
|
{
|
|
@@ -918,23 +703,8 @@
|
|
|
918
703
|
],
|
|
919
704
|
"users.staredRepos.list": [
|
|
920
705
|
{
|
|
921
|
-
"security": [
|
|
922
|
-
{
|
|
923
|
-
"BearerAuth": []
|
|
924
|
-
}
|
|
925
|
-
],
|
|
926
706
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
927
|
-
"
|
|
928
|
-
"application/json"
|
|
929
|
-
],
|
|
930
|
-
"produces": [
|
|
931
|
-
"application/json",
|
|
932
|
-
"application/vnd.cnb.api+json",
|
|
933
|
-
"application/vnd.cnb.web+json"
|
|
934
|
-
],
|
|
935
|
-
"tags": [
|
|
936
|
-
"Starring"
|
|
937
|
-
],
|
|
707
|
+
"operationId": "GetUserStaredRepos",
|
|
938
708
|
"summary": "获取指定用户的 star 仓库列表",
|
|
939
709
|
"parameters": [
|
|
940
710
|
{
|
|
@@ -1002,23 +772,8 @@
|
|
|
1002
772
|
],
|
|
1003
773
|
"workspace.delete.post": [
|
|
1004
774
|
{
|
|
1005
|
-
"security": [
|
|
1006
|
-
{
|
|
1007
|
-
"BearerAuth": []
|
|
1008
|
-
}
|
|
1009
|
-
],
|
|
1010
775
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:rw",
|
|
1011
|
-
"
|
|
1012
|
-
"application/json"
|
|
1013
|
-
],
|
|
1014
|
-
"produces": [
|
|
1015
|
-
"application/json",
|
|
1016
|
-
"application/vnd.cnb.api+json",
|
|
1017
|
-
"application/vnd.cnb.web+json"
|
|
1018
|
-
],
|
|
1019
|
-
"tags": [
|
|
1020
|
-
"Workspace"
|
|
1021
|
-
],
|
|
776
|
+
"operationId": "DeleteWorkspace",
|
|
1022
777
|
"summary": "删除我的云原生开发环境",
|
|
1023
778
|
"parameters": [
|
|
1024
779
|
{
|
|
@@ -1045,23 +800,8 @@
|
|
|
1045
800
|
],
|
|
1046
801
|
"workspace.list.get": [
|
|
1047
802
|
{
|
|
1048
|
-
"security": [
|
|
1049
|
-
{
|
|
1050
|
-
"BearerAuth": []
|
|
1051
|
-
}
|
|
1052
|
-
],
|
|
1053
803
|
"description": "访问令牌调用此接口需包含以下权限 \naccount-engage:r",
|
|
1054
|
-
"
|
|
1055
|
-
"application/json"
|
|
1056
|
-
],
|
|
1057
|
-
"produces": [
|
|
1058
|
-
"application/json",
|
|
1059
|
-
"application/vnd.cnb.api+json",
|
|
1060
|
-
"application/vnd.cnb.web+json"
|
|
1061
|
-
],
|
|
1062
|
-
"tags": [
|
|
1063
|
-
"Workspace"
|
|
1064
|
-
],
|
|
804
|
+
"operationId": "ListWorkspaces",
|
|
1065
805
|
"summary": "获取我的云原生开发环境列表",
|
|
1066
806
|
"parameters": [
|
|
1067
807
|
{
|
|
@@ -1119,25 +859,39 @@
|
|
|
1119
859
|
"method": "get"
|
|
1120
860
|
}
|
|
1121
861
|
],
|
|
1122
|
-
"group.
|
|
862
|
+
"group.delete": [
|
|
1123
863
|
{
|
|
1124
|
-
"
|
|
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
|
+
},
|
|
1125
875
|
{
|
|
1126
|
-
"
|
|
876
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
877
|
+
"in": "header",
|
|
878
|
+
"name": "x-cnb-identity-ticket",
|
|
879
|
+
"type": "string"
|
|
1127
880
|
}
|
|
1128
881
|
],
|
|
882
|
+
"responses": {
|
|
883
|
+
"200": {
|
|
884
|
+
"description": "OK"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"path": "/{group}",
|
|
888
|
+
"method": "delete"
|
|
889
|
+
}
|
|
890
|
+
],
|
|
891
|
+
"group.get": [
|
|
892
|
+
{
|
|
1129
893
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1130
|
-
"
|
|
1131
|
-
"application/json"
|
|
1132
|
-
],
|
|
1133
|
-
"produces": [
|
|
1134
|
-
"application/json",
|
|
1135
|
-
"application/vnd.cnb.api+json",
|
|
1136
|
-
"application/vnd.cnb.web+json"
|
|
1137
|
-
],
|
|
1138
|
-
"tags": [
|
|
1139
|
-
"Organizations"
|
|
1140
|
-
],
|
|
894
|
+
"operationId": "GetGroup",
|
|
1141
895
|
"summary": "获取指定组织信息",
|
|
1142
896
|
"parameters": [
|
|
1143
897
|
{
|
|
@@ -1158,25 +912,12 @@
|
|
|
1158
912
|
},
|
|
1159
913
|
"path": "/{group}",
|
|
1160
914
|
"method": "get"
|
|
1161
|
-
}
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"group.put": [
|
|
1162
918
|
{
|
|
1163
|
-
"security": [
|
|
1164
|
-
{
|
|
1165
|
-
"BearerAuth": []
|
|
1166
|
-
}
|
|
1167
|
-
],
|
|
1168
919
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1169
|
-
"
|
|
1170
|
-
"application/json"
|
|
1171
|
-
],
|
|
1172
|
-
"produces": [
|
|
1173
|
-
"application/json",
|
|
1174
|
-
"application/vnd.cnb.api+json",
|
|
1175
|
-
"application/vnd.cnb.web+json"
|
|
1176
|
-
],
|
|
1177
|
-
"tags": [
|
|
1178
|
-
"Organizations"
|
|
1179
|
-
],
|
|
920
|
+
"operationId": "UpdateOrganization",
|
|
1180
921
|
"summary": "更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱",
|
|
1181
922
|
"parameters": [
|
|
1182
923
|
{
|
|
@@ -1207,23 +948,8 @@
|
|
|
1207
948
|
],
|
|
1208
949
|
"group.avatar.put": [
|
|
1209
950
|
{
|
|
1210
|
-
"security": [
|
|
1211
|
-
{
|
|
1212
|
-
"BearerAuth": []
|
|
1213
|
-
}
|
|
1214
|
-
],
|
|
1215
951
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1216
|
-
"
|
|
1217
|
-
"application/json"
|
|
1218
|
-
],
|
|
1219
|
-
"produces": [
|
|
1220
|
-
"application/json",
|
|
1221
|
-
"application/vnd.cnb.api+json",
|
|
1222
|
-
"application/vnd.cnb.web+json"
|
|
1223
|
-
],
|
|
1224
|
-
"tags": [
|
|
1225
|
-
"Organizations"
|
|
1226
|
-
],
|
|
952
|
+
"operationId": "UpdateGroupAvatar",
|
|
1227
953
|
"summary": "更新组织头像 URL 地址",
|
|
1228
954
|
"parameters": [
|
|
1229
955
|
{
|
|
@@ -1254,23 +980,8 @@
|
|
|
1254
980
|
],
|
|
1255
981
|
"group.inheritMembers.list": [
|
|
1256
982
|
{
|
|
1257
|
-
"security": [
|
|
1258
|
-
{
|
|
1259
|
-
"BearerAuth": []
|
|
1260
|
-
}
|
|
1261
|
-
],
|
|
1262
983
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1263
|
-
"
|
|
1264
|
-
"application/json"
|
|
1265
|
-
],
|
|
1266
|
-
"produces": [
|
|
1267
|
-
"application/json",
|
|
1268
|
-
"application/vnd.cnb.api+json",
|
|
1269
|
-
"application/vnd.cnb.web+json"
|
|
1270
|
-
],
|
|
1271
|
-
"tags": [
|
|
1272
|
-
"Collaborators"
|
|
1273
|
-
],
|
|
984
|
+
"operationId": "ListInheritMembers",
|
|
1274
985
|
"summary": "获取指定组织或仓库内的继承成员",
|
|
1275
986
|
"parameters": [
|
|
1276
987
|
{
|
|
@@ -1332,23 +1043,8 @@
|
|
|
1332
1043
|
],
|
|
1333
1044
|
"group.listMembers.list": [
|
|
1334
1045
|
{
|
|
1335
|
-
"security": [
|
|
1336
|
-
{
|
|
1337
|
-
"BearerAuth": []
|
|
1338
|
-
}
|
|
1339
|
-
],
|
|
1340
1046
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1341
|
-
"
|
|
1342
|
-
"application/json"
|
|
1343
|
-
],
|
|
1344
|
-
"produces": [
|
|
1345
|
-
"application/json",
|
|
1346
|
-
"application/vnd.cnb.api+json",
|
|
1347
|
-
"application/vnd.cnb.web+json"
|
|
1348
|
-
],
|
|
1349
|
-
"tags": [
|
|
1350
|
-
"Collaborators"
|
|
1351
|
-
],
|
|
1047
|
+
"operationId": "ListAllMembers",
|
|
1352
1048
|
"summary": "获取指定组织或仓库内的有效成员列表,包含继承成员",
|
|
1353
1049
|
"parameters": [
|
|
1354
1050
|
{
|
|
@@ -1435,17 +1131,8 @@
|
|
|
1435
1131
|
],
|
|
1436
1132
|
"group.logos.put": [
|
|
1437
1133
|
{
|
|
1438
|
-
"security": [
|
|
1439
|
-
{
|
|
1440
|
-
"BearerAuth": []
|
|
1441
|
-
}
|
|
1442
|
-
],
|
|
1443
1134
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1444
|
-
"
|
|
1445
|
-
"produces": null,
|
|
1446
|
-
"tags": [
|
|
1447
|
-
"Assets"
|
|
1448
|
-
],
|
|
1135
|
+
"operationId": "PutLogos",
|
|
1449
1136
|
"summary": "确认上传的logo",
|
|
1450
1137
|
"parameters": [
|
|
1451
1138
|
{
|
|
@@ -1475,17 +1162,8 @@
|
|
|
1475
1162
|
],
|
|
1476
1163
|
"group.logos.get": [
|
|
1477
1164
|
{
|
|
1478
|
-
"security": [
|
|
1479
|
-
{
|
|
1480
|
-
"BearerAuth": []
|
|
1481
|
-
}
|
|
1482
|
-
],
|
|
1483
1165
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1484
|
-
"
|
|
1485
|
-
"produces": null,
|
|
1486
|
-
"tags": [
|
|
1487
|
-
"Assets"
|
|
1488
|
-
],
|
|
1166
|
+
"operationId": "GetLogos",
|
|
1489
1167
|
"summary": "发起一个获取 logo 的请求,返回内容或者 302 到某个地址",
|
|
1490
1168
|
"parameters": [
|
|
1491
1169
|
{
|
|
@@ -1514,23 +1192,8 @@
|
|
|
1514
1192
|
],
|
|
1515
1193
|
"group.members.list": [
|
|
1516
1194
|
{
|
|
1517
|
-
"security": [
|
|
1518
|
-
{
|
|
1519
|
-
"BearerAuth": []
|
|
1520
|
-
}
|
|
1521
|
-
],
|
|
1522
1195
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1523
|
-
"
|
|
1524
|
-
"application/json"
|
|
1525
|
-
],
|
|
1526
|
-
"produces": [
|
|
1527
|
-
"application/json",
|
|
1528
|
-
"application/vnd.cnb.api+json",
|
|
1529
|
-
"application/vnd.cnb.web+json"
|
|
1530
|
-
],
|
|
1531
|
-
"tags": [
|
|
1532
|
-
"Collaborators"
|
|
1533
|
-
],
|
|
1196
|
+
"operationId": "ListMembers",
|
|
1534
1197
|
"summary": "获取指定组织或仓库内的所有直接成员",
|
|
1535
1198
|
"parameters": [
|
|
1536
1199
|
{
|
|
@@ -1592,23 +1255,8 @@
|
|
|
1592
1255
|
],
|
|
1593
1256
|
"group.members.accessLevel.get": [
|
|
1594
1257
|
{
|
|
1595
|
-
"security": [
|
|
1596
|
-
{
|
|
1597
|
-
"BearerAuth": []
|
|
1598
|
-
}
|
|
1599
|
-
],
|
|
1600
1258
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1601
|
-
"
|
|
1602
|
-
"application/json"
|
|
1603
|
-
],
|
|
1604
|
-
"produces": [
|
|
1605
|
-
"application/json",
|
|
1606
|
-
"application/vnd.cnb.api+json",
|
|
1607
|
-
"application/vnd.cnb.web+json"
|
|
1608
|
-
],
|
|
1609
|
-
"tags": [
|
|
1610
|
-
"Contributors"
|
|
1611
|
-
],
|
|
1259
|
+
"operationId": "GetMemberAccessLevel",
|
|
1612
1260
|
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息",
|
|
1613
1261
|
"parameters": [
|
|
1614
1262
|
{
|
|
@@ -1640,23 +1288,8 @@
|
|
|
1640
1288
|
],
|
|
1641
1289
|
"group.members.delete": [
|
|
1642
1290
|
{
|
|
1643
|
-
"security": [
|
|
1644
|
-
{
|
|
1645
|
-
"BearerAuth": []
|
|
1646
|
-
}
|
|
1647
|
-
],
|
|
1648
1291
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1649
|
-
"
|
|
1650
|
-
"application/json"
|
|
1651
|
-
],
|
|
1652
|
-
"produces": [
|
|
1653
|
-
"application/json",
|
|
1654
|
-
"application/vnd.cnb.api+json",
|
|
1655
|
-
"application/vnd.cnb.web+json"
|
|
1656
|
-
],
|
|
1657
|
-
"tags": [
|
|
1658
|
-
"Collaborators"
|
|
1659
|
-
],
|
|
1292
|
+
"operationId": "DeleteMembers",
|
|
1660
1293
|
"summary": "删除指定组织或仓库的直接成员, 包含两种场景: 1. 作为直接成员的用户自己退出 2. 由管理者移除指定的直接成员",
|
|
1661
1294
|
"parameters": [
|
|
1662
1295
|
{
|
|
@@ -1685,23 +1318,8 @@
|
|
|
1685
1318
|
],
|
|
1686
1319
|
"group.members.put": [
|
|
1687
1320
|
{
|
|
1688
|
-
"security": [
|
|
1689
|
-
{
|
|
1690
|
-
"BearerAuth": []
|
|
1691
|
-
}
|
|
1692
|
-
],
|
|
1693
1321
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1694
|
-
"
|
|
1695
|
-
"application/json"
|
|
1696
|
-
],
|
|
1697
|
-
"produces": [
|
|
1698
|
-
"application/json",
|
|
1699
|
-
"application/vnd.cnb.api+json",
|
|
1700
|
-
"application/vnd.cnb.web+json"
|
|
1701
|
-
],
|
|
1702
|
-
"tags": [
|
|
1703
|
-
"Collaborators"
|
|
1704
|
-
],
|
|
1322
|
+
"operationId": "UpdateMembers",
|
|
1705
1323
|
"summary": "更新指定组织或仓库内的直接成员权限信息",
|
|
1706
1324
|
"parameters": [
|
|
1707
1325
|
{
|
|
@@ -1739,23 +1357,8 @@
|
|
|
1739
1357
|
],
|
|
1740
1358
|
"group.members.accessLevel.list": [
|
|
1741
1359
|
{
|
|
1742
|
-
"security": [
|
|
1743
|
-
{
|
|
1744
|
-
"BearerAuth": []
|
|
1745
|
-
}
|
|
1746
|
-
],
|
|
1747
1360
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1748
|
-
"
|
|
1749
|
-
"application/json"
|
|
1750
|
-
],
|
|
1751
|
-
"produces": [
|
|
1752
|
-
"application/json",
|
|
1753
|
-
"application/vnd.cnb.api+json",
|
|
1754
|
-
"application/vnd.cnb.web+json"
|
|
1755
|
-
],
|
|
1756
|
-
"tags": [
|
|
1757
|
-
"Contributors"
|
|
1758
|
-
],
|
|
1361
|
+
"operationId": "ListMemberAccessLevel",
|
|
1759
1362
|
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息",
|
|
1760
1363
|
"parameters": [
|
|
1761
1364
|
{
|
|
@@ -1790,23 +1393,8 @@
|
|
|
1790
1393
|
],
|
|
1791
1394
|
"group.pinnedRepos.list": [
|
|
1792
1395
|
{
|
|
1793
|
-
"security": [
|
|
1794
|
-
{
|
|
1795
|
-
"BearerAuth": []
|
|
1796
|
-
}
|
|
1797
|
-
],
|
|
1798
1396
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1799
|
-
"
|
|
1800
|
-
"application/json"
|
|
1801
|
-
],
|
|
1802
|
-
"produces": [
|
|
1803
|
-
"application/json",
|
|
1804
|
-
"application/vnd.cnb.api+json",
|
|
1805
|
-
"application/vnd.cnb.web+json"
|
|
1806
|
-
],
|
|
1807
|
-
"tags": [
|
|
1808
|
-
"Repositories"
|
|
1809
|
-
],
|
|
1397
|
+
"operationId": "GetPinnedRepoByGroup",
|
|
1810
1398
|
"summary": "获取指定组织的仓库墙列表",
|
|
1811
1399
|
"parameters": [
|
|
1812
1400
|
{
|
|
@@ -1834,23 +1422,8 @@
|
|
|
1834
1422
|
],
|
|
1835
1423
|
"group.pinnedRepos.put": [
|
|
1836
1424
|
{
|
|
1837
|
-
"security": [
|
|
1838
|
-
{
|
|
1839
|
-
"BearerAuth": []
|
|
1840
|
-
}
|
|
1841
|
-
],
|
|
1842
1425
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1843
|
-
"
|
|
1844
|
-
"application/json"
|
|
1845
|
-
],
|
|
1846
|
-
"produces": [
|
|
1847
|
-
"application/json",
|
|
1848
|
-
"application/vnd.cnb.api+json",
|
|
1849
|
-
"application/vnd.cnb.web+json"
|
|
1850
|
-
],
|
|
1851
|
-
"tags": [
|
|
1852
|
-
"Repositories"
|
|
1853
|
-
],
|
|
1426
|
+
"operationId": "SetPinnedRepoByGroup",
|
|
1854
1427
|
"summary": "更新指定组织仓库墙",
|
|
1855
1428
|
"parameters": [
|
|
1856
1429
|
{
|
|
@@ -1890,20 +1463,8 @@
|
|
|
1890
1463
|
],
|
|
1891
1464
|
"group.repos.list": [
|
|
1892
1465
|
{
|
|
1893
|
-
"security": [
|
|
1894
|
-
{
|
|
1895
|
-
"BearerAuth": []
|
|
1896
|
-
}
|
|
1897
|
-
],
|
|
1898
1466
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
1899
|
-
"
|
|
1900
|
-
"produces": [
|
|
1901
|
-
"application/vnd.cnb.api+json",
|
|
1902
|
-
"application/vnd.cnb.web+json"
|
|
1903
|
-
],
|
|
1904
|
-
"tags": [
|
|
1905
|
-
"Repositories"
|
|
1906
|
-
],
|
|
1467
|
+
"operationId": "GetGroupSubRepos",
|
|
1907
1468
|
"summary": "查询组织下访问用户有权限查看到仓库",
|
|
1908
1469
|
"parameters": [
|
|
1909
1470
|
{
|
|
@@ -1991,23 +1552,8 @@
|
|
|
1991
1552
|
],
|
|
1992
1553
|
"group.repos.post": [
|
|
1993
1554
|
{
|
|
1994
|
-
"security": [
|
|
1995
|
-
{
|
|
1996
|
-
"BearerAuth": []
|
|
1997
|
-
}
|
|
1998
|
-
],
|
|
1999
1555
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:rw",
|
|
2000
|
-
"
|
|
2001
|
-
"application/json"
|
|
2002
|
-
],
|
|
2003
|
-
"produces": [
|
|
2004
|
-
"application/json",
|
|
2005
|
-
"application/vnd.cnb.api+json",
|
|
2006
|
-
"application/vnd.cnb.web+json"
|
|
2007
|
-
],
|
|
2008
|
-
"tags": [
|
|
2009
|
-
"Repositories"
|
|
2010
|
-
],
|
|
1556
|
+
"operationId": "CreateRepo",
|
|
2011
1557
|
"summary": "创建仓库",
|
|
2012
1558
|
"parameters": [
|
|
2013
1559
|
{
|
|
@@ -2039,19 +1585,8 @@
|
|
|
2039
1585
|
],
|
|
2040
1586
|
"group.settings.get": [
|
|
2041
1587
|
{
|
|
2042
|
-
"security": null,
|
|
2043
1588
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
2044
|
-
"
|
|
2045
|
-
"application/json"
|
|
2046
|
-
],
|
|
2047
|
-
"produces": [
|
|
2048
|
-
"application/json",
|
|
2049
|
-
"application/vnd.cnb.api+json",
|
|
2050
|
-
"application/vnd.cnb.web+json"
|
|
2051
|
-
],
|
|
2052
|
-
"tags": [
|
|
2053
|
-
"Organizations"
|
|
2054
|
-
],
|
|
1589
|
+
"operationId": "GetGroupSetting",
|
|
2055
1590
|
"summary": "获取指定组织的配置详情",
|
|
2056
1591
|
"parameters": [
|
|
2057
1592
|
{
|
|
@@ -2076,23 +1611,8 @@
|
|
|
2076
1611
|
],
|
|
2077
1612
|
"group.settings.put": [
|
|
2078
1613
|
{
|
|
2079
|
-
"security": [
|
|
2080
|
-
{
|
|
2081
|
-
"BearerAuth": []
|
|
2082
|
-
}
|
|
2083
|
-
],
|
|
2084
1614
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
2085
|
-
"
|
|
2086
|
-
"application/json"
|
|
2087
|
-
],
|
|
2088
|
-
"produces": [
|
|
2089
|
-
"application/json",
|
|
2090
|
-
"application/vnd.cnb.api+json",
|
|
2091
|
-
"application/vnd.cnb.web+json"
|
|
2092
|
-
],
|
|
2093
|
-
"tags": [
|
|
2094
|
-
"Organizations"
|
|
2095
|
-
],
|
|
1615
|
+
"operationId": "UpdateGroupSetting",
|
|
2096
1616
|
"summary": "更新指定组织的配置, 可更新内容为: 是否对外隐藏组织成员",
|
|
2097
1617
|
"parameters": [
|
|
2098
1618
|
{
|
|
@@ -2123,20 +1643,8 @@
|
|
|
2123
1643
|
],
|
|
2124
1644
|
"group.subGroups.list": [
|
|
2125
1645
|
{
|
|
2126
|
-
"security": [
|
|
2127
|
-
{
|
|
2128
|
-
"BearerAuth": []
|
|
2129
|
-
}
|
|
2130
|
-
],
|
|
2131
1646
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:r",
|
|
2132
|
-
"
|
|
2133
|
-
"produces": [
|
|
2134
|
-
"application/vnd.cnb.api+json",
|
|
2135
|
-
"application/vnd.cnb.web+json"
|
|
2136
|
-
],
|
|
2137
|
-
"tags": [
|
|
2138
|
-
"Organizations"
|
|
2139
|
-
],
|
|
1647
|
+
"operationId": "ListSubgroups",
|
|
2140
1648
|
"summary": "获取指定组织下的子组织列表",
|
|
2141
1649
|
"parameters": [
|
|
2142
1650
|
{
|
|
@@ -2187,22 +1695,8 @@
|
|
|
2187
1695
|
],
|
|
2188
1696
|
"group.upload.logos.post": [
|
|
2189
1697
|
{
|
|
2190
|
-
"security": [
|
|
2191
|
-
{
|
|
2192
|
-
"BearerAuth": []
|
|
2193
|
-
}
|
|
2194
|
-
],
|
|
2195
1698
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
2196
|
-
"
|
|
2197
|
-
"application/json"
|
|
2198
|
-
],
|
|
2199
|
-
"produces": [
|
|
2200
|
-
"application/json",
|
|
2201
|
-
"application/vnd.cnb.web+json"
|
|
2202
|
-
],
|
|
2203
|
-
"tags": [
|
|
2204
|
-
"Assets"
|
|
2205
|
-
],
|
|
1699
|
+
"operationId": "UploadLogos",
|
|
2206
1700
|
"summary": "发起一个上传 logo 的请求,返回上传 cos 的 url 和 form 内容",
|
|
2207
1701
|
"parameters": [
|
|
2208
1702
|
{
|
|
@@ -2235,54 +1729,81 @@
|
|
|
2235
1729
|
"method": "post"
|
|
2236
1730
|
}
|
|
2237
1731
|
],
|
|
2238
|
-
"
|
|
1732
|
+
"mission.delete": [
|
|
2239
1733
|
{
|
|
2240
|
-
"
|
|
1734
|
+
"description": "访问令牌调用此接口需包含以下权限 \nmission-delete:rw",
|
|
1735
|
+
"operationId": "DeleteMission",
|
|
1736
|
+
"summary": "删除指定任务集",
|
|
1737
|
+
"parameters": [
|
|
1738
|
+
{
|
|
1739
|
+
"description": "mission path",
|
|
1740
|
+
"in": "path",
|
|
1741
|
+
"name": "mission",
|
|
1742
|
+
"required": true,
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
2241
1745
|
{
|
|
2242
|
-
"
|
|
1746
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1747
|
+
"in": "header",
|
|
1748
|
+
"name": "x-cnb-identity-ticket",
|
|
1749
|
+
"type": "string"
|
|
2243
1750
|
}
|
|
2244
1751
|
],
|
|
2245
|
-
"
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
"
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
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": "删除制品仓库",
|
|
2255
1766
|
"parameters": [
|
|
2256
1767
|
{
|
|
2257
|
-
"description": "registry
|
|
1768
|
+
"description": "registry path",
|
|
2258
1769
|
"in": "path",
|
|
2259
1770
|
"name": "registry",
|
|
2260
1771
|
"required": true,
|
|
2261
1772
|
"type": "string"
|
|
2262
1773
|
},
|
|
2263
1774
|
{
|
|
2264
|
-
"description": "
|
|
2265
|
-
"
|
|
2266
|
-
|
|
2267
|
-
"helm"
|
|
2268
|
-
],
|
|
2269
|
-
"in": "path",
|
|
2270
|
-
"name": "type",
|
|
2271
|
-
"required": true,
|
|
1775
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1776
|
+
"in": "header",
|
|
1777
|
+
"name": "x-cnb-identity-ticket",
|
|
2272
1778
|
"type": "string"
|
|
2273
|
-
}
|
|
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": [
|
|
2274
1796
|
{
|
|
2275
|
-
"description": "
|
|
1797
|
+
"description": "repo path",
|
|
2276
1798
|
"in": "path",
|
|
2277
|
-
"name": "
|
|
1799
|
+
"name": "repo",
|
|
2278
1800
|
"required": true,
|
|
2279
1801
|
"type": "string"
|
|
2280
1802
|
},
|
|
2281
1803
|
{
|
|
2282
|
-
"description": "
|
|
2283
|
-
"in": "
|
|
2284
|
-
"name": "
|
|
2285
|
-
"required": true,
|
|
1804
|
+
"description": "微信用户需要确认身份,第一次调用不传接口会调用失败并返回一个x-cnb-identity-ticket,第二次调用再传返回的值",
|
|
1805
|
+
"in": "header",
|
|
1806
|
+
"name": "x-cnb-identity-ticket",
|
|
2286
1807
|
"type": "string"
|
|
2287
1808
|
}
|
|
2288
1809
|
],
|
|
@@ -2291,29 +1812,14 @@
|
|
|
2291
1812
|
"description": "OK"
|
|
2292
1813
|
}
|
|
2293
1814
|
},
|
|
2294
|
-
"path": "/{
|
|
1815
|
+
"path": "/{repo}",
|
|
2295
1816
|
"method": "delete"
|
|
2296
1817
|
}
|
|
2297
1818
|
],
|
|
2298
1819
|
"repo.get": [
|
|
2299
1820
|
{
|
|
2300
|
-
"security": [
|
|
2301
|
-
{
|
|
2302
|
-
"BearerAuth": []
|
|
2303
|
-
}
|
|
2304
|
-
],
|
|
2305
1821
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-basic-info:r",
|
|
2306
|
-
"
|
|
2307
|
-
"application/json"
|
|
2308
|
-
],
|
|
2309
|
-
"produces": [
|
|
2310
|
-
"application/json",
|
|
2311
|
-
"application/vnd.cnb.api+json",
|
|
2312
|
-
"application/vnd.cnb.web+json"
|
|
2313
|
-
],
|
|
2314
|
-
"tags": [
|
|
2315
|
-
"Repositories"
|
|
2316
|
-
],
|
|
1822
|
+
"operationId": "GetRepo",
|
|
2317
1823
|
"summary": "获取指定仓库信息",
|
|
2318
1824
|
"parameters": [
|
|
2319
1825
|
{
|
|
@@ -2334,25 +1840,12 @@
|
|
|
2334
1840
|
},
|
|
2335
1841
|
"path": "/{repo}",
|
|
2336
1842
|
"method": "get"
|
|
2337
|
-
}
|
|
1843
|
+
}
|
|
1844
|
+
],
|
|
1845
|
+
"repo.patch": [
|
|
2338
1846
|
{
|
|
2339
|
-
"security": [
|
|
2340
|
-
{
|
|
2341
|
-
"BearerAuth": []
|
|
2342
|
-
}
|
|
2343
|
-
],
|
|
2344
1847
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
2345
|
-
"
|
|
2346
|
-
"application/json"
|
|
2347
|
-
],
|
|
2348
|
-
"produces": [
|
|
2349
|
-
"application/json",
|
|
2350
|
-
"application/vnd.cnb.api+json",
|
|
2351
|
-
"application/vnd.cnb.web+json"
|
|
2352
|
-
],
|
|
2353
|
-
"tags": [
|
|
2354
|
-
"Repositories"
|
|
2355
|
-
],
|
|
1848
|
+
"operationId": "UpdateRepo",
|
|
2356
1849
|
"summary": "更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证",
|
|
2357
1850
|
"parameters": [
|
|
2358
1851
|
{
|
|
@@ -2383,23 +1876,8 @@
|
|
|
2383
1876
|
],
|
|
2384
1877
|
"repo.build.logs.get": [
|
|
2385
1878
|
{
|
|
2386
|
-
"security": [
|
|
2387
|
-
{
|
|
2388
|
-
"BearerAuth": []
|
|
2389
|
-
}
|
|
2390
|
-
],
|
|
2391
1879
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:r",
|
|
2392
|
-
"
|
|
2393
|
-
"application/json"
|
|
2394
|
-
],
|
|
2395
|
-
"produces": [
|
|
2396
|
-
"application/json",
|
|
2397
|
-
"application/vnd.cnb.api+json",
|
|
2398
|
-
"application/vnd.cnb.web+json"
|
|
2399
|
-
],
|
|
2400
|
-
"tags": [
|
|
2401
|
-
"Build"
|
|
2402
|
-
],
|
|
1880
|
+
"operationId": "GetBuildLogs",
|
|
2403
1881
|
"summary": "查询流水线构建列表",
|
|
2404
1882
|
"parameters": [
|
|
2405
1883
|
{
|
|
@@ -2496,23 +1974,8 @@
|
|
|
2496
1974
|
],
|
|
2497
1975
|
"repo.build.start.post": [
|
|
2498
1976
|
{
|
|
2499
|
-
"security": [
|
|
2500
|
-
{
|
|
2501
|
-
"BearerAuth": []
|
|
2502
|
-
}
|
|
2503
|
-
],
|
|
2504
1977
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:rw",
|
|
2505
|
-
"
|
|
2506
|
-
"application/json"
|
|
2507
|
-
],
|
|
2508
|
-
"produces": [
|
|
2509
|
-
"application/json",
|
|
2510
|
-
"application/vnd.cnb.api+json",
|
|
2511
|
-
"application/vnd.cnb.web+json"
|
|
2512
|
-
],
|
|
2513
|
-
"tags": [
|
|
2514
|
-
"Build"
|
|
2515
|
-
],
|
|
1978
|
+
"operationId": "StartBuild",
|
|
2516
1979
|
"summary": "开始一个构建",
|
|
2517
1980
|
"parameters": [
|
|
2518
1981
|
{
|
|
@@ -2549,23 +2012,8 @@
|
|
|
2549
2012
|
],
|
|
2550
2013
|
"repo.build.status.get": [
|
|
2551
2014
|
{
|
|
2552
|
-
"security": [
|
|
2553
|
-
{
|
|
2554
|
-
"BearerAuth": []
|
|
2555
|
-
}
|
|
2556
|
-
],
|
|
2557
2015
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:r",
|
|
2558
|
-
"
|
|
2559
|
-
"application/json"
|
|
2560
|
-
],
|
|
2561
|
-
"produces": [
|
|
2562
|
-
"application/json",
|
|
2563
|
-
"application/vnd.cnb.api+json",
|
|
2564
|
-
"application/vnd.cnb.web+json"
|
|
2565
|
-
],
|
|
2566
|
-
"tags": [
|
|
2567
|
-
"Build"
|
|
2568
|
-
],
|
|
2016
|
+
"operationId": "GetBuildStatus",
|
|
2569
2017
|
"summary": "查询流水线构建状态",
|
|
2570
2018
|
"parameters": [
|
|
2571
2019
|
{
|
|
@@ -2597,23 +2045,8 @@
|
|
|
2597
2045
|
],
|
|
2598
2046
|
"repo.build.stop.post": [
|
|
2599
2047
|
{
|
|
2600
|
-
"security": [
|
|
2601
|
-
{
|
|
2602
|
-
"BearerAuth": []
|
|
2603
|
-
}
|
|
2604
|
-
],
|
|
2605
2048
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-trigger:rw",
|
|
2606
|
-
"
|
|
2607
|
-
"application/json"
|
|
2608
|
-
],
|
|
2609
|
-
"produces": [
|
|
2610
|
-
"application/json",
|
|
2611
|
-
"application/vnd.cnb.api+json",
|
|
2612
|
-
"application/vnd.cnb.web+json"
|
|
2613
|
-
],
|
|
2614
|
-
"tags": [
|
|
2615
|
-
"Build"
|
|
2616
|
-
],
|
|
2049
|
+
"operationId": "StopBuild",
|
|
2617
2050
|
"summary": "停止一个构建",
|
|
2618
2051
|
"parameters": [
|
|
2619
2052
|
{
|
|
@@ -2648,17 +2081,8 @@
|
|
|
2648
2081
|
],
|
|
2649
2082
|
"repo.commitAssets.download.get": [
|
|
2650
2083
|
{
|
|
2651
|
-
"security": [
|
|
2652
|
-
{
|
|
2653
|
-
"BearerAuth": []
|
|
2654
|
-
}
|
|
2655
|
-
],
|
|
2656
2084
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
2657
|
-
"
|
|
2658
|
-
"produces": null,
|
|
2659
|
-
"tags": [
|
|
2660
|
-
"Assets"
|
|
2661
|
-
],
|
|
2085
|
+
"operationId": "GetCommitAssets",
|
|
2662
2086
|
"summary": "发起一个获取 commits 附件的请求,返回内容或者 302 到某个地址",
|
|
2663
2087
|
"parameters": [
|
|
2664
2088
|
{
|
|
@@ -2686,19 +2110,62 @@
|
|
|
2686
2110
|
"method": "get"
|
|
2687
2111
|
}
|
|
2688
2112
|
],
|
|
2689
|
-
"repo.
|
|
2113
|
+
"repo.contributor.trend.get": [
|
|
2690
2114
|
{
|
|
2691
|
-
"
|
|
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
|
+
},
|
|
2692
2133
|
{
|
|
2693
|
-
"
|
|
2134
|
+
"default": false,
|
|
2135
|
+
"description": "exclude_external_users, true|false",
|
|
2136
|
+
"in": "query",
|
|
2137
|
+
"name": "exclude_external_users",
|
|
2138
|
+
"type": "boolean"
|
|
2694
2139
|
}
|
|
2695
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
|
+
],
|
|
2165
|
+
"repo.files.get": [
|
|
2166
|
+
{
|
|
2696
2167
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
2697
|
-
"
|
|
2698
|
-
"produces": null,
|
|
2699
|
-
"tags": [
|
|
2700
|
-
"Assets"
|
|
2701
|
-
],
|
|
2168
|
+
"operationId": "GetFiles",
|
|
2702
2169
|
"summary": "发起一个获取 files 的请求,返回内容或者 302 到某个地址",
|
|
2703
2170
|
"parameters": [
|
|
2704
2171
|
{
|
|
@@ -2742,17 +2209,8 @@
|
|
|
2742
2209
|
],
|
|
2743
2210
|
"repo.files.put": [
|
|
2744
2211
|
{
|
|
2745
|
-
"security": [
|
|
2746
|
-
{
|
|
2747
|
-
"BearerAuth": []
|
|
2748
|
-
}
|
|
2749
|
-
],
|
|
2750
2212
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
2751
|
-
"
|
|
2752
|
-
"produces": null,
|
|
2753
|
-
"tags": [
|
|
2754
|
-
"Assets"
|
|
2755
|
-
],
|
|
2213
|
+
"operationId": "PutFiles",
|
|
2756
2214
|
"summary": "发起一个确认 files 的请求,上传的图片要调用此接口才能生效",
|
|
2757
2215
|
"parameters": [
|
|
2758
2216
|
{
|
|
@@ -2803,23 +2261,8 @@
|
|
|
2803
2261
|
],
|
|
2804
2262
|
"repo.forks.list": [
|
|
2805
2263
|
{
|
|
2806
|
-
"security": [
|
|
2807
|
-
{
|
|
2808
|
-
"BearerAuth": []
|
|
2809
|
-
}
|
|
2810
|
-
],
|
|
2811
2264
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-base-info:r",
|
|
2812
|
-
"
|
|
2813
|
-
"application/json"
|
|
2814
|
-
],
|
|
2815
|
-
"produces": [
|
|
2816
|
-
"application/json",
|
|
2817
|
-
"application/vnd.cnb.api+json",
|
|
2818
|
-
"application/vnd.cnb.web+json"
|
|
2819
|
-
],
|
|
2820
|
-
"tags": [
|
|
2821
|
-
"Repositories"
|
|
2822
|
-
],
|
|
2265
|
+
"operationId": "ListForksRepos",
|
|
2823
2266
|
"summary": "获取指定仓库的 fork 列表",
|
|
2824
2267
|
"parameters": [
|
|
2825
2268
|
{
|
|
@@ -2863,23 +2306,8 @@
|
|
|
2863
2306
|
],
|
|
2864
2307
|
"repo.forks.post": [
|
|
2865
2308
|
{
|
|
2866
|
-
"security": [
|
|
2867
|
-
{
|
|
2868
|
-
"BearerAuth": []
|
|
2869
|
-
}
|
|
2870
|
-
],
|
|
2871
2309
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-resource:rw",
|
|
2872
|
-
"
|
|
2873
|
-
"application/json"
|
|
2874
|
-
],
|
|
2875
|
-
"produces": [
|
|
2876
|
-
"application/json",
|
|
2877
|
-
"application/vnd.cnb.api+json",
|
|
2878
|
-
"application/vnd.cnb.web+json"
|
|
2879
|
-
],
|
|
2880
|
-
"tags": [
|
|
2881
|
-
"Repositories"
|
|
2882
|
-
],
|
|
2310
|
+
"operationId": "CreateAFork",
|
|
2883
2311
|
"summary": "fork 仓库",
|
|
2884
2312
|
"parameters": [
|
|
2885
2313
|
{
|
|
@@ -2908,22 +2336,57 @@
|
|
|
2908
2336
|
"method": "post"
|
|
2909
2337
|
}
|
|
2910
2338
|
],
|
|
2911
|
-
"repo.git.
|
|
2339
|
+
"repo.git.blobs.post": [
|
|
2912
2340
|
{
|
|
2913
|
-
"
|
|
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
|
+
},
|
|
2914
2352
|
{
|
|
2915
|
-
"
|
|
2353
|
+
"description": "PostBlobForm",
|
|
2354
|
+
"in": "body",
|
|
2355
|
+
"name": "post_blob_form",
|
|
2356
|
+
"required": true,
|
|
2357
|
+
"schema": {
|
|
2358
|
+
"$ref": "#/definitions/api.PostBlobForm"
|
|
2359
|
+
}
|
|
2916
2360
|
}
|
|
2917
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
|
+
],
|
|
2386
|
+
"repo.git.branches.list": [
|
|
2387
|
+
{
|
|
2918
2388
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2919
|
-
"
|
|
2920
|
-
"produces": [
|
|
2921
|
-
"application/json",
|
|
2922
|
-
"application/vnd.cnb.api+json"
|
|
2923
|
-
],
|
|
2924
|
-
"tags": [
|
|
2925
|
-
"Git"
|
|
2926
|
-
],
|
|
2389
|
+
"operationId": "ListBranches",
|
|
2927
2390
|
"summary": "查询分支列表",
|
|
2928
2391
|
"parameters": [
|
|
2929
2392
|
{
|
|
@@ -2977,20 +2440,8 @@
|
|
|
2977
2440
|
],
|
|
2978
2441
|
"repo.git.branches.post": [
|
|
2979
2442
|
{
|
|
2980
|
-
"security": [
|
|
2981
|
-
{
|
|
2982
|
-
"BearerAuth": []
|
|
2983
|
-
}
|
|
2984
|
-
],
|
|
2985
2443
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2986
|
-
"
|
|
2987
|
-
"produces": [
|
|
2988
|
-
"application/json",
|
|
2989
|
-
"application/vnd.cnb.api+json"
|
|
2990
|
-
],
|
|
2991
|
-
"tags": [
|
|
2992
|
-
"Git"
|
|
2993
|
-
],
|
|
2444
|
+
"operationId": "CreateBranch",
|
|
2994
2445
|
"summary": "创建新分支",
|
|
2995
2446
|
"parameters": [
|
|
2996
2447
|
{
|
|
@@ -3033,20 +2484,8 @@
|
|
|
3033
2484
|
],
|
|
3034
2485
|
"repo.git.branches.delete": [
|
|
3035
2486
|
{
|
|
3036
|
-
"security": [
|
|
3037
|
-
{
|
|
3038
|
-
"BearerAuth": []
|
|
3039
|
-
}
|
|
3040
|
-
],
|
|
3041
2487
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3042
|
-
"
|
|
3043
|
-
"produces": [
|
|
3044
|
-
"application/json",
|
|
3045
|
-
"application/vnd.cnb.api+json"
|
|
3046
|
-
],
|
|
3047
|
-
"tags": [
|
|
3048
|
-
"Git"
|
|
3049
|
-
],
|
|
2488
|
+
"operationId": "DeleteBranch",
|
|
3050
2489
|
"summary": "删除指定分支",
|
|
3051
2490
|
"parameters": [
|
|
3052
2491
|
{
|
|
@@ -3087,20 +2526,8 @@
|
|
|
3087
2526
|
],
|
|
3088
2527
|
"repo.git.branches.get": [
|
|
3089
2528
|
{
|
|
3090
|
-
"security": [
|
|
3091
|
-
{
|
|
3092
|
-
"BearerAuth": []
|
|
3093
|
-
}
|
|
3094
|
-
],
|
|
3095
2529
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3096
|
-
"
|
|
3097
|
-
"produces": [
|
|
3098
|
-
"application/json",
|
|
3099
|
-
"application/vnd.cnb.api+json"
|
|
3100
|
-
],
|
|
3101
|
-
"tags": [
|
|
3102
|
-
"Git"
|
|
3103
|
-
],
|
|
2530
|
+
"operationId": "GetBranch",
|
|
3104
2531
|
"summary": "查询指定分支",
|
|
3105
2532
|
"parameters": [
|
|
3106
2533
|
{
|
|
@@ -3143,22 +2570,8 @@
|
|
|
3143
2570
|
],
|
|
3144
2571
|
"repo.git.commitAnnotationsInBatch.post": [
|
|
3145
2572
|
{
|
|
3146
|
-
"security": [
|
|
3147
|
-
{
|
|
3148
|
-
"BearerAuth": []
|
|
3149
|
-
}
|
|
3150
|
-
],
|
|
3151
2573
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3152
|
-
"
|
|
3153
|
-
"application/json"
|
|
3154
|
-
],
|
|
3155
|
-
"produces": [
|
|
3156
|
-
"application/json",
|
|
3157
|
-
"application/vnd.cnb.api+json"
|
|
3158
|
-
],
|
|
3159
|
-
"tags": [
|
|
3160
|
-
"Git"
|
|
3161
|
-
],
|
|
2574
|
+
"operationId": "GetCommitAnnotationsInBatch",
|
|
3162
2575
|
"summary": "查询指定 commit 的元数据",
|
|
3163
2576
|
"parameters": [
|
|
3164
2577
|
{
|
|
@@ -3207,20 +2620,8 @@
|
|
|
3207
2620
|
],
|
|
3208
2621
|
"repo.git.commitAnnotations.list": [
|
|
3209
2622
|
{
|
|
3210
|
-
"security": [
|
|
3211
|
-
{
|
|
3212
|
-
"BearerAuth": []
|
|
3213
|
-
}
|
|
3214
|
-
],
|
|
3215
2623
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3216
|
-
"
|
|
3217
|
-
"produces": [
|
|
3218
|
-
"application/json",
|
|
3219
|
-
"application/vnd.cnb.api+json"
|
|
3220
|
-
],
|
|
3221
|
-
"tags": [
|
|
3222
|
-
"Git"
|
|
3223
|
-
],
|
|
2624
|
+
"operationId": "GetCommitAnnotations",
|
|
3224
2625
|
"summary": "查询指定 commit 的元数据",
|
|
3225
2626
|
"parameters": [
|
|
3226
2627
|
{
|
|
@@ -3267,22 +2668,8 @@
|
|
|
3267
2668
|
],
|
|
3268
2669
|
"repo.git.commitAnnotations.put": [
|
|
3269
2670
|
{
|
|
3270
|
-
"security": [
|
|
3271
|
-
{
|
|
3272
|
-
"BearerAuth": []
|
|
3273
|
-
}
|
|
3274
|
-
],
|
|
3275
2671
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3276
|
-
"
|
|
3277
|
-
"application/json"
|
|
3278
|
-
],
|
|
3279
|
-
"produces": [
|
|
3280
|
-
"application/json",
|
|
3281
|
-
"application/vnd.cnb.api+json"
|
|
3282
|
-
],
|
|
3283
|
-
"tags": [
|
|
3284
|
-
"Git"
|
|
3285
|
-
],
|
|
2672
|
+
"operationId": "PutCommitAnnotations",
|
|
3286
2673
|
"summary": "设定指定 commit 的元数据",
|
|
3287
2674
|
"parameters": [
|
|
3288
2675
|
{
|
|
@@ -3332,21 +2719,8 @@
|
|
|
3332
2719
|
],
|
|
3333
2720
|
"repo.git.commitAnnotations.delete": [
|
|
3334
2721
|
{
|
|
3335
|
-
"security": [
|
|
3336
|
-
{
|
|
3337
|
-
"BearerAuth": []
|
|
3338
|
-
}
|
|
3339
|
-
],
|
|
3340
2722
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3341
|
-
"
|
|
3342
|
-
"application/json"
|
|
3343
|
-
],
|
|
3344
|
-
"produces": [
|
|
3345
|
-
"application/vnd.cnb.api+json"
|
|
3346
|
-
],
|
|
3347
|
-
"tags": [
|
|
3348
|
-
"Git"
|
|
3349
|
-
],
|
|
2723
|
+
"operationId": "DeleteCommitAnnotation",
|
|
3350
2724
|
"summary": "删除指定 commit 的元数据",
|
|
3351
2725
|
"parameters": [
|
|
3352
2726
|
{
|
|
@@ -3394,22 +2768,8 @@
|
|
|
3394
2768
|
],
|
|
3395
2769
|
"repo.git.commitAssets.list": [
|
|
3396
2770
|
{
|
|
3397
|
-
"security": [
|
|
3398
|
-
{
|
|
3399
|
-
"BearerAuth": []
|
|
3400
|
-
}
|
|
3401
|
-
],
|
|
3402
2771
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3403
|
-
"
|
|
3404
|
-
"application/json"
|
|
3405
|
-
],
|
|
3406
|
-
"produces": [
|
|
3407
|
-
"application/json",
|
|
3408
|
-
"application/vnd.cnb.api+json"
|
|
3409
|
-
],
|
|
3410
|
-
"tags": [
|
|
3411
|
-
"Git"
|
|
3412
|
-
],
|
|
2772
|
+
"operationId": "GetCommitAssetsBySha",
|
|
3413
2773
|
"summary": "查询指定 commit 的附件",
|
|
3414
2774
|
"parameters": [
|
|
3415
2775
|
{
|
|
@@ -3456,22 +2816,8 @@
|
|
|
3456
2816
|
],
|
|
3457
2817
|
"repo.git.commitAssets.assetUploadConfirmation.post": [
|
|
3458
2818
|
{
|
|
3459
|
-
"security": [
|
|
3460
|
-
{
|
|
3461
|
-
"BearerAuth": []
|
|
3462
|
-
}
|
|
3463
|
-
],
|
|
3464
2819
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3465
|
-
"
|
|
3466
|
-
"application/json"
|
|
3467
|
-
],
|
|
3468
|
-
"produces": [
|
|
3469
|
-
"application/json",
|
|
3470
|
-
"application/vnd.cnb.api+json"
|
|
3471
|
-
],
|
|
3472
|
-
"tags": [
|
|
3473
|
-
"Git"
|
|
3474
|
-
],
|
|
2820
|
+
"operationId": "PostCommitAssetUploadConfirmation",
|
|
3475
2821
|
"summary": "确认 Commit asset 上传完成",
|
|
3476
2822
|
"parameters": [
|
|
3477
2823
|
{
|
|
@@ -3526,22 +2872,8 @@
|
|
|
3526
2872
|
],
|
|
3527
2873
|
"repo.git.commitAssets.assetUploadUrl.post": [
|
|
3528
2874
|
{
|
|
3529
|
-
"security": [
|
|
3530
|
-
{
|
|
3531
|
-
"BearerAuth": []
|
|
3532
|
-
}
|
|
3533
|
-
],
|
|
3534
2875
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3535
|
-
"
|
|
3536
|
-
"application/json"
|
|
3537
|
-
],
|
|
3538
|
-
"produces": [
|
|
3539
|
-
"application/json",
|
|
3540
|
-
"application/vnd.cnb.api+json"
|
|
3541
|
-
],
|
|
3542
|
-
"tags": [
|
|
3543
|
-
"Git"
|
|
3544
|
-
],
|
|
2876
|
+
"operationId": "PostCommitAssetUploadURL",
|
|
3545
2877
|
"summary": "新增一个 Commit asset",
|
|
3546
2878
|
"parameters": [
|
|
3547
2879
|
{
|
|
@@ -3594,22 +2926,8 @@
|
|
|
3594
2926
|
],
|
|
3595
2927
|
"repo.git.commitAssets.delete": [
|
|
3596
2928
|
{
|
|
3597
|
-
"security": [
|
|
3598
|
-
{
|
|
3599
|
-
"BearerAuth": []
|
|
3600
|
-
}
|
|
3601
|
-
],
|
|
3602
2929
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
3603
|
-
"
|
|
3604
|
-
"application/json"
|
|
3605
|
-
],
|
|
3606
|
-
"produces": [
|
|
3607
|
-
"application/json",
|
|
3608
|
-
"application/vnd.cnb.api+json"
|
|
3609
|
-
],
|
|
3610
|
-
"tags": [
|
|
3611
|
-
"Git"
|
|
3612
|
-
],
|
|
2930
|
+
"operationId": "DeleteCommitAsset",
|
|
3613
2931
|
"summary": "删除指定 commit 的附件",
|
|
3614
2932
|
"parameters": [
|
|
3615
2933
|
{
|
|
@@ -3657,20 +2975,8 @@
|
|
|
3657
2975
|
],
|
|
3658
2976
|
"repo.git.commitStatuses.list": [
|
|
3659
2977
|
{
|
|
3660
|
-
"security": [
|
|
3661
|
-
{
|
|
3662
|
-
"BearerAuth": []
|
|
3663
|
-
}
|
|
3664
|
-
],
|
|
3665
2978
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3666
|
-
"
|
|
3667
|
-
"produces": [
|
|
3668
|
-
"application/json",
|
|
3669
|
-
"application/vnd.cnb.api+json"
|
|
3670
|
-
],
|
|
3671
|
-
"tags": [
|
|
3672
|
-
"Git"
|
|
3673
|
-
],
|
|
2979
|
+
"operationId": "GetCommitStatuses",
|
|
3674
2980
|
"summary": "查询指定 commit 的 check statuses",
|
|
3675
2981
|
"parameters": [
|
|
3676
2982
|
{
|
|
@@ -3683,7 +2989,7 @@
|
|
|
3683
2989
|
{
|
|
3684
2990
|
"description": "commitish",
|
|
3685
2991
|
"in": "path",
|
|
3686
|
-
"name": "
|
|
2992
|
+
"name": "commitish",
|
|
3687
2993
|
"required": true,
|
|
3688
2994
|
"type": "string"
|
|
3689
2995
|
}
|
|
@@ -3717,20 +3023,8 @@
|
|
|
3717
3023
|
],
|
|
3718
3024
|
"repo.git.commits.list": [
|
|
3719
3025
|
{
|
|
3720
|
-
"security": [
|
|
3721
|
-
{
|
|
3722
|
-
"BearerAuth": []
|
|
3723
|
-
}
|
|
3724
|
-
],
|
|
3725
3026
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3726
|
-
"
|
|
3727
|
-
"produces": [
|
|
3728
|
-
"application/json",
|
|
3729
|
-
"application/vnd.cnb.api+json"
|
|
3730
|
-
],
|
|
3731
|
-
"tags": [
|
|
3732
|
-
"Git"
|
|
3733
|
-
],
|
|
3027
|
+
"operationId": "ListCommits",
|
|
3734
3028
|
"summary": "查询 commit 列表",
|
|
3735
3029
|
"parameters": [
|
|
3736
3030
|
{
|
|
@@ -3814,20 +3108,8 @@
|
|
|
3814
3108
|
],
|
|
3815
3109
|
"repo.git.commits.get": [
|
|
3816
3110
|
{
|
|
3817
|
-
"security": [
|
|
3818
|
-
{
|
|
3819
|
-
"BearerAuth": []
|
|
3820
|
-
}
|
|
3821
|
-
],
|
|
3822
3111
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3823
|
-
"
|
|
3824
|
-
"produces": [
|
|
3825
|
-
"application/json",
|
|
3826
|
-
"application/vnd.cnb.api+json"
|
|
3827
|
-
],
|
|
3828
|
-
"tags": [
|
|
3829
|
-
"Git"
|
|
3830
|
-
],
|
|
3112
|
+
"operationId": "GetCommit",
|
|
3831
3113
|
"summary": "查询指定 commit",
|
|
3832
3114
|
"parameters": [
|
|
3833
3115
|
{
|
|
@@ -3871,20 +3153,8 @@
|
|
|
3871
3153
|
],
|
|
3872
3154
|
"repo.git.compare.get": [
|
|
3873
3155
|
{
|
|
3874
|
-
"security": [
|
|
3875
|
-
{
|
|
3876
|
-
"BearerAuth": []
|
|
3877
|
-
}
|
|
3878
|
-
],
|
|
3879
3156
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3880
|
-
"
|
|
3881
|
-
"produces": [
|
|
3882
|
-
"application/json",
|
|
3883
|
-
"application/vnd.cnb.api+json"
|
|
3884
|
-
],
|
|
3885
|
-
"tags": [
|
|
3886
|
-
"Git"
|
|
3887
|
-
],
|
|
3157
|
+
"operationId": "GetCompareCommits",
|
|
3888
3158
|
"summary": "对比 base...head",
|
|
3889
3159
|
"parameters": [
|
|
3890
3160
|
{
|
|
@@ -3928,20 +3198,8 @@
|
|
|
3928
3198
|
],
|
|
3929
3199
|
"repo.git.contents.get": [
|
|
3930
3200
|
{
|
|
3931
|
-
"security": [
|
|
3932
|
-
{
|
|
3933
|
-
"BearerAuth": []
|
|
3934
|
-
}
|
|
3935
|
-
],
|
|
3936
3201
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
3937
|
-
"
|
|
3938
|
-
"produces": [
|
|
3939
|
-
"application/json",
|
|
3940
|
-
"application/vnd.cnb.api+json"
|
|
3941
|
-
],
|
|
3942
|
-
"tags": [
|
|
3943
|
-
"Git"
|
|
3944
|
-
],
|
|
3202
|
+
"operationId": "GetContent",
|
|
3945
3203
|
"summary": "查询仓库文件列表或文件",
|
|
3946
3204
|
"parameters": [
|
|
3947
3205
|
{
|
|
@@ -3991,20 +3249,8 @@
|
|
|
3991
3249
|
],
|
|
3992
3250
|
"repo.git.head.get": [
|
|
3993
3251
|
{
|
|
3994
|
-
"security": [
|
|
3995
|
-
{
|
|
3996
|
-
"BearerAuth": []
|
|
3997
|
-
}
|
|
3998
|
-
],
|
|
3999
3252
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
4000
|
-
"
|
|
4001
|
-
"produces": [
|
|
4002
|
-
"application/json",
|
|
4003
|
-
"application/vnd.cnb.api+json"
|
|
4004
|
-
],
|
|
4005
|
-
"tags": [
|
|
4006
|
-
"Git"
|
|
4007
|
-
],
|
|
3253
|
+
"operationId": "GetHead",
|
|
4008
3254
|
"summary": "获取仓库默认分支",
|
|
4009
3255
|
"parameters": [
|
|
4010
3256
|
{
|
|
@@ -4041,19 +3287,8 @@
|
|
|
4041
3287
|
],
|
|
4042
3288
|
"repo.git.tagAnnotations.delete": [
|
|
4043
3289
|
{
|
|
4044
|
-
"
|
|
4045
|
-
|
|
4046
|
-
"BearerAuth": []
|
|
4047
|
-
}
|
|
4048
|
-
],
|
|
4049
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
4050
|
-
"consumes": null,
|
|
4051
|
-
"produces": [
|
|
4052
|
-
"application/vnd.cnb.api+json"
|
|
4053
|
-
],
|
|
4054
|
-
"tags": [
|
|
4055
|
-
"Git"
|
|
4056
|
-
],
|
|
3290
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3291
|
+
"operationId": "DeleteTagAnnotation",
|
|
4057
3292
|
"summary": "删除指定 tag 的元数据",
|
|
4058
3293
|
"parameters": [
|
|
4059
3294
|
{
|
|
@@ -4094,19 +3329,8 @@
|
|
|
4094
3329
|
],
|
|
4095
3330
|
"repo.git.tagAnnotations.list": [
|
|
4096
3331
|
{
|
|
4097
|
-
"
|
|
4098
|
-
|
|
4099
|
-
"BearerAuth": []
|
|
4100
|
-
}
|
|
4101
|
-
],
|
|
4102
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
4103
|
-
"consumes": null,
|
|
4104
|
-
"produces": [
|
|
4105
|
-
"application/vnd.cnb.api+json"
|
|
4106
|
-
],
|
|
4107
|
-
"tags": [
|
|
4108
|
-
"Git"
|
|
4109
|
-
],
|
|
3332
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3333
|
+
"operationId": "GetTagAnnotations",
|
|
4110
3334
|
"summary": "查询指定 tag 的元数据",
|
|
4111
3335
|
"parameters": [
|
|
4112
3336
|
{
|
|
@@ -4153,22 +3377,8 @@
|
|
|
4153
3377
|
],
|
|
4154
3378
|
"repo.git.tagAnnotations.put": [
|
|
4155
3379
|
{
|
|
4156
|
-
"
|
|
4157
|
-
|
|
4158
|
-
"BearerAuth": []
|
|
4159
|
-
}
|
|
4160
|
-
],
|
|
4161
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
4162
|
-
"consumes": [
|
|
4163
|
-
"application/json"
|
|
4164
|
-
],
|
|
4165
|
-
"produces": [
|
|
4166
|
-
"application/json",
|
|
4167
|
-
"application/vnd.cnb.api+json"
|
|
4168
|
-
],
|
|
4169
|
-
"tags": [
|
|
4170
|
-
"Git"
|
|
4171
|
-
],
|
|
3380
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
3381
|
+
"operationId": "PutTagAnnotations",
|
|
4172
3382
|
"summary": "设定指定 tag 的元数据",
|
|
4173
3383
|
"parameters": [
|
|
4174
3384
|
{
|
|
@@ -4218,20 +3428,8 @@
|
|
|
4218
3428
|
],
|
|
4219
3429
|
"repo.git.tags.list": [
|
|
4220
3430
|
{
|
|
4221
|
-
"
|
|
4222
|
-
|
|
4223
|
-
"BearerAuth": []
|
|
4224
|
-
}
|
|
4225
|
-
],
|
|
4226
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
4227
|
-
"consumes": null,
|
|
4228
|
-
"produces": [
|
|
4229
|
-
"application/json",
|
|
4230
|
-
"application/vnd.cnb.api+json"
|
|
4231
|
-
],
|
|
4232
|
-
"tags": [
|
|
4233
|
-
"Git"
|
|
4234
|
-
],
|
|
3431
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3432
|
+
"operationId": "ListTags",
|
|
4235
3433
|
"summary": "查询标签列表",
|
|
4236
3434
|
"parameters": [
|
|
4237
3435
|
{
|
|
@@ -4283,22 +3481,57 @@
|
|
|
4283
3481
|
"method": "get"
|
|
4284
3482
|
}
|
|
4285
3483
|
],
|
|
4286
|
-
"repo.git.tags.
|
|
3484
|
+
"repo.git.tags.post": [
|
|
4287
3485
|
{
|
|
4288
|
-
"
|
|
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
|
+
},
|
|
4289
3497
|
{
|
|
4290
|
-
"
|
|
3498
|
+
"description": "PostTagFrom",
|
|
3499
|
+
"in": "body",
|
|
3500
|
+
"name": "post_tag_form",
|
|
3501
|
+
"required": true,
|
|
3502
|
+
"schema": {
|
|
3503
|
+
"$ref": "#/definitions/api.PostTagFrom"
|
|
3504
|
+
}
|
|
4291
3505
|
}
|
|
4292
3506
|
],
|
|
4293
|
-
"
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
"
|
|
4301
|
-
|
|
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",
|
|
4302
3535
|
"summary": "删除指定标签",
|
|
4303
3536
|
"parameters": [
|
|
4304
3537
|
{
|
|
@@ -4339,20 +3572,8 @@
|
|
|
4339
3572
|
],
|
|
4340
3573
|
"repo.git.tags.get": [
|
|
4341
3574
|
{
|
|
4342
|
-
"
|
|
4343
|
-
|
|
4344
|
-
"BearerAuth": []
|
|
4345
|
-
}
|
|
4346
|
-
],
|
|
4347
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
4348
|
-
"consumes": null,
|
|
4349
|
-
"produces": [
|
|
4350
|
-
"application/json",
|
|
4351
|
-
"application/vnd.cnb.api+json"
|
|
4352
|
-
],
|
|
4353
|
-
"tags": [
|
|
4354
|
-
"Git"
|
|
4355
|
-
],
|
|
3575
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
3576
|
+
"operationId": "GetTag",
|
|
4356
3577
|
"summary": "查询指定 Tag",
|
|
4357
3578
|
"parameters": [
|
|
4358
3579
|
{
|
|
@@ -4396,17 +3617,8 @@
|
|
|
4396
3617
|
],
|
|
4397
3618
|
"repo.imgs.get": [
|
|
4398
3619
|
{
|
|
4399
|
-
"security": [
|
|
4400
|
-
{
|
|
4401
|
-
"BearerAuth": []
|
|
4402
|
-
}
|
|
4403
|
-
],
|
|
4404
3620
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
4405
|
-
"
|
|
4406
|
-
"produces": null,
|
|
4407
|
-
"tags": [
|
|
4408
|
-
"Assets"
|
|
4409
|
-
],
|
|
3621
|
+
"operationId": "GetImgs",
|
|
4410
3622
|
"summary": "发起一个获取 imgs 的请求,返回内容或者 302 到某个地址",
|
|
4411
3623
|
"parameters": [
|
|
4412
3624
|
{
|
|
@@ -4443,17 +3655,8 @@
|
|
|
4443
3655
|
],
|
|
4444
3656
|
"repo.imgs.put": [
|
|
4445
3657
|
{
|
|
4446
|
-
"security": [
|
|
4447
|
-
{
|
|
4448
|
-
"BearerAuth": []
|
|
4449
|
-
}
|
|
4450
|
-
],
|
|
4451
3658
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
4452
|
-
"
|
|
4453
|
-
"produces": null,
|
|
4454
|
-
"tags": [
|
|
4455
|
-
"Assets"
|
|
4456
|
-
],
|
|
3659
|
+
"operationId": "PutImgs",
|
|
4457
3660
|
"summary": "发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效",
|
|
4458
3661
|
"parameters": [
|
|
4459
3662
|
{
|
|
@@ -4497,23 +3700,8 @@
|
|
|
4497
3700
|
],
|
|
4498
3701
|
"repo.inheritMembers.list": [
|
|
4499
3702
|
{
|
|
4500
|
-
"security": [
|
|
4501
|
-
{
|
|
4502
|
-
"BearerAuth": []
|
|
4503
|
-
}
|
|
4504
|
-
],
|
|
4505
3703
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
4506
|
-
"
|
|
4507
|
-
"application/json"
|
|
4508
|
-
],
|
|
4509
|
-
"produces": [
|
|
4510
|
-
"application/json",
|
|
4511
|
-
"application/vnd.cnb.api+json",
|
|
4512
|
-
"application/vnd.cnb.web+json"
|
|
4513
|
-
],
|
|
4514
|
-
"tags": [
|
|
4515
|
-
"Collaborators"
|
|
4516
|
-
],
|
|
3704
|
+
"operationId": "ListInheritMembers",
|
|
4517
3705
|
"summary": "获取指定组织或仓库内的继承成员",
|
|
4518
3706
|
"parameters": [
|
|
4519
3707
|
{
|
|
@@ -4575,20 +3763,8 @@
|
|
|
4575
3763
|
],
|
|
4576
3764
|
"repo.issues.list": [
|
|
4577
3765
|
{
|
|
4578
|
-
"security": [
|
|
4579
|
-
{
|
|
4580
|
-
"BearerAuth": []
|
|
4581
|
-
}
|
|
4582
|
-
],
|
|
4583
3766
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4584
|
-
"
|
|
4585
|
-
"produces": [
|
|
4586
|
-
"application/json",
|
|
4587
|
-
"application/vnd.cnb.api+json"
|
|
4588
|
-
],
|
|
4589
|
-
"tags": [
|
|
4590
|
-
"Issues"
|
|
4591
|
-
],
|
|
3767
|
+
"operationId": "ListIssues",
|
|
4592
3768
|
"summary": "查询仓库的 Issues",
|
|
4593
3769
|
"parameters": [
|
|
4594
3770
|
{
|
|
@@ -4692,23 +3868,13 @@
|
|
|
4692
3868
|
},
|
|
4693
3869
|
"path": "/{repo}/-/issues",
|
|
4694
3870
|
"method": "get"
|
|
4695
|
-
}
|
|
3871
|
+
}
|
|
3872
|
+
],
|
|
3873
|
+
"repo.issues.post": [
|
|
4696
3874
|
{
|
|
4697
|
-
"
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
}
|
|
4701
|
-
],
|
|
4702
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4703
|
-
"consumes": null,
|
|
4704
|
-
"produces": [
|
|
4705
|
-
"application/json",
|
|
4706
|
-
"application/vnd.cnb.api+json"
|
|
4707
|
-
],
|
|
4708
|
-
"tags": [
|
|
4709
|
-
"Issues"
|
|
4710
|
-
],
|
|
4711
|
-
"summary": "查询指定的 Issues",
|
|
3875
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
3876
|
+
"operationId": "CreateIssue",
|
|
3877
|
+
"summary": "创建一个 Issue",
|
|
4712
3878
|
"parameters": [
|
|
4713
3879
|
{
|
|
4714
3880
|
"description": "repo",
|
|
@@ -4718,21 +3884,20 @@
|
|
|
4718
3884
|
"type": "string"
|
|
4719
3885
|
},
|
|
4720
3886
|
{
|
|
4721
|
-
"description": "
|
|
4722
|
-
"in": "
|
|
4723
|
-
"name": "
|
|
3887
|
+
"description": "Post Issue Form",
|
|
3888
|
+
"in": "body",
|
|
3889
|
+
"name": "post_issue_form",
|
|
4724
3890
|
"required": true,
|
|
4725
|
-
"
|
|
3891
|
+
"schema": {
|
|
3892
|
+
"$ref": "#/definitions/api.PostIssueForm"
|
|
3893
|
+
}
|
|
4726
3894
|
}
|
|
4727
3895
|
],
|
|
4728
3896
|
"responses": {
|
|
4729
|
-
"
|
|
4730
|
-
"description": "
|
|
3897
|
+
"201": {
|
|
3898
|
+
"description": "Created",
|
|
4731
3899
|
"schema": {
|
|
4732
|
-
"
|
|
4733
|
-
"$ref": "#/definitions/api.IssueDetail"
|
|
4734
|
-
},
|
|
4735
|
-
"type": "array"
|
|
3900
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4736
3901
|
}
|
|
4737
3902
|
},
|
|
4738
3903
|
"404": {
|
|
@@ -4748,27 +3913,15 @@
|
|
|
4748
3913
|
}
|
|
4749
3914
|
}
|
|
4750
3915
|
},
|
|
4751
|
-
"path": "/{repo}/-/issues
|
|
4752
|
-
"method": "
|
|
3916
|
+
"path": "/{repo}/-/issues",
|
|
3917
|
+
"method": "post"
|
|
4753
3918
|
}
|
|
4754
3919
|
],
|
|
4755
|
-
"repo.issues.
|
|
3920
|
+
"repo.issues.get": [
|
|
4756
3921
|
{
|
|
4757
|
-
"
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
}
|
|
4761
|
-
],
|
|
4762
|
-
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4763
|
-
"consumes": null,
|
|
4764
|
-
"produces": [
|
|
4765
|
-
"application/json",
|
|
4766
|
-
"application/vnd.cnb.api+json"
|
|
4767
|
-
],
|
|
4768
|
-
"tags": [
|
|
4769
|
-
"Issues"
|
|
4770
|
-
],
|
|
4771
|
-
"summary": "创建一个 Issue",
|
|
3922
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
3923
|
+
"operationId": "GetIssue",
|
|
3924
|
+
"summary": "查询指定的 Issues",
|
|
4772
3925
|
"parameters": [
|
|
4773
3926
|
{
|
|
4774
3927
|
"description": "repo",
|
|
@@ -4778,18 +3931,16 @@
|
|
|
4778
3931
|
"type": "string"
|
|
4779
3932
|
},
|
|
4780
3933
|
{
|
|
4781
|
-
"description": "
|
|
4782
|
-
"in": "
|
|
4783
|
-
"name": "
|
|
3934
|
+
"description": "issue number",
|
|
3935
|
+
"in": "path",
|
|
3936
|
+
"name": "number",
|
|
4784
3937
|
"required": true,
|
|
4785
|
-
"
|
|
4786
|
-
"$ref": "#/definitions/api.PostIssueForm"
|
|
4787
|
-
}
|
|
3938
|
+
"type": "integer"
|
|
4788
3939
|
}
|
|
4789
3940
|
],
|
|
4790
3941
|
"responses": {
|
|
4791
|
-
"
|
|
4792
|
-
"description": "
|
|
3942
|
+
"200": {
|
|
3943
|
+
"description": "OK",
|
|
4793
3944
|
"schema": {
|
|
4794
3945
|
"$ref": "#/definitions/api.IssueDetail"
|
|
4795
3946
|
}
|
|
@@ -4807,26 +3958,14 @@
|
|
|
4807
3958
|
}
|
|
4808
3959
|
}
|
|
4809
3960
|
},
|
|
4810
|
-
"path": "/{repo}/-/issues",
|
|
4811
|
-
"method": "
|
|
3961
|
+
"path": "/{repo}/-/issues/{number}",
|
|
3962
|
+
"method": "get"
|
|
4812
3963
|
}
|
|
4813
3964
|
],
|
|
4814
3965
|
"repo.issues.patch": [
|
|
4815
3966
|
{
|
|
4816
|
-
"security": [
|
|
4817
|
-
{
|
|
4818
|
-
"BearerAuth": []
|
|
4819
|
-
}
|
|
4820
|
-
],
|
|
4821
3967
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4822
|
-
"
|
|
4823
|
-
"produces": [
|
|
4824
|
-
"application/json",
|
|
4825
|
-
"application/vnd.cnb.api+json"
|
|
4826
|
-
],
|
|
4827
|
-
"tags": [
|
|
4828
|
-
"Issues"
|
|
4829
|
-
],
|
|
3968
|
+
"operationId": "UpdateIssue",
|
|
4830
3969
|
"summary": "更新一个 Issue",
|
|
4831
3970
|
"parameters": [
|
|
4832
3971
|
{
|
|
@@ -4879,20 +4018,8 @@
|
|
|
4879
4018
|
],
|
|
4880
4019
|
"repo.issues.comments.list": [
|
|
4881
4020
|
{
|
|
4882
|
-
"security": [
|
|
4883
|
-
{
|
|
4884
|
-
"BearerAuth": []
|
|
4885
|
-
}
|
|
4886
|
-
],
|
|
4887
4021
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
4888
|
-
"
|
|
4889
|
-
"produces": [
|
|
4890
|
-
"application/json",
|
|
4891
|
-
"application/vnd.cnb.api+json"
|
|
4892
|
-
],
|
|
4893
|
-
"tags": [
|
|
4894
|
-
"Issues"
|
|
4895
|
-
],
|
|
4022
|
+
"operationId": "ListIssueComments",
|
|
4896
4023
|
"summary": "查询仓库的 Issue 评论列表",
|
|
4897
4024
|
"parameters": [
|
|
4898
4025
|
{
|
|
@@ -4953,20 +4080,8 @@
|
|
|
4953
4080
|
],
|
|
4954
4081
|
"repo.issues.comments.post": [
|
|
4955
4082
|
{
|
|
4956
|
-
"security": [
|
|
4957
|
-
{
|
|
4958
|
-
"BearerAuth": []
|
|
4959
|
-
}
|
|
4960
|
-
],
|
|
4961
4083
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
4962
|
-
"
|
|
4963
|
-
"produces": [
|
|
4964
|
-
"application/json",
|
|
4965
|
-
"application/vnd.cnb.api+json"
|
|
4966
|
-
],
|
|
4967
|
-
"tags": [
|
|
4968
|
-
"Issues"
|
|
4969
|
-
],
|
|
4084
|
+
"operationId": "PostIssueComment",
|
|
4970
4085
|
"summary": "创建一个 Issue Comment",
|
|
4971
4086
|
"parameters": [
|
|
4972
4087
|
{
|
|
@@ -5019,20 +4134,8 @@
|
|
|
5019
4134
|
],
|
|
5020
4135
|
"repo.issues.comments.get": [
|
|
5021
4136
|
{
|
|
5022
|
-
"security": [
|
|
5023
|
-
{
|
|
5024
|
-
"BearerAuth": []
|
|
5025
|
-
}
|
|
5026
|
-
],
|
|
5027
4137
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
5028
|
-
"
|
|
5029
|
-
"produces": [
|
|
5030
|
-
"application/json",
|
|
5031
|
-
"application/vnd.cnb.api+json"
|
|
5032
|
-
],
|
|
5033
|
-
"tags": [
|
|
5034
|
-
"Issues"
|
|
5035
|
-
],
|
|
4138
|
+
"operationId": "GetIssueComment",
|
|
5036
4139
|
"summary": "获取一个 Issue Comment",
|
|
5037
4140
|
"parameters": [
|
|
5038
4141
|
{
|
|
@@ -5083,20 +4186,8 @@
|
|
|
5083
4186
|
],
|
|
5084
4187
|
"repo.issues.comments.patch": [
|
|
5085
4188
|
{
|
|
5086
|
-
"security": [
|
|
5087
|
-
{
|
|
5088
|
-
"BearerAuth": []
|
|
5089
|
-
}
|
|
5090
|
-
],
|
|
5091
4189
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5092
|
-
"
|
|
5093
|
-
"produces": [
|
|
5094
|
-
"application/json",
|
|
5095
|
-
"application/vnd.cnb.api+json"
|
|
5096
|
-
],
|
|
5097
|
-
"tags": [
|
|
5098
|
-
"Issues"
|
|
5099
|
-
],
|
|
4190
|
+
"operationId": "PatchIssueComment",
|
|
5100
4191
|
"summary": "修改一个 Issue Comment",
|
|
5101
4192
|
"parameters": [
|
|
5102
4193
|
{
|
|
@@ -5156,22 +4247,8 @@
|
|
|
5156
4247
|
],
|
|
5157
4248
|
"repo.issues.labels.delete": [
|
|
5158
4249
|
{
|
|
5159
|
-
"security": [
|
|
5160
|
-
{
|
|
5161
|
-
"BearerAuth": []
|
|
5162
|
-
}
|
|
5163
|
-
],
|
|
5164
4250
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5165
|
-
"
|
|
5166
|
-
"application/json"
|
|
5167
|
-
],
|
|
5168
|
-
"produces": [
|
|
5169
|
-
"application/json",
|
|
5170
|
-
"application/vnd.cnb.api+json"
|
|
5171
|
-
],
|
|
5172
|
-
"tags": [
|
|
5173
|
-
"Issues"
|
|
5174
|
-
],
|
|
4251
|
+
"operationId": "DeleteIssueLabels",
|
|
5175
4252
|
"summary": "清空 Issue 标签",
|
|
5176
4253
|
"parameters": [
|
|
5177
4254
|
{
|
|
@@ -5210,22 +4287,8 @@
|
|
|
5210
4287
|
"method": "delete"
|
|
5211
4288
|
},
|
|
5212
4289
|
{
|
|
5213
|
-
"security": [
|
|
5214
|
-
{
|
|
5215
|
-
"BearerAuth": []
|
|
5216
|
-
}
|
|
5217
|
-
],
|
|
5218
4290
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
5219
|
-
"
|
|
5220
|
-
"application/json"
|
|
5221
|
-
],
|
|
5222
|
-
"produces": [
|
|
5223
|
-
"application/json",
|
|
5224
|
-
"application/vnd.cnb.api+json"
|
|
5225
|
-
],
|
|
5226
|
-
"tags": [
|
|
5227
|
-
"Issues"
|
|
5228
|
-
],
|
|
4291
|
+
"operationId": "ListIssueLabels",
|
|
5229
4292
|
"summary": "查询 Issue 的标签(label) 列表",
|
|
5230
4293
|
"parameters": [
|
|
5231
4294
|
{
|
|
@@ -5284,22 +4347,8 @@
|
|
|
5284
4347
|
"method": "get"
|
|
5285
4348
|
},
|
|
5286
4349
|
{
|
|
5287
|
-
"security": [
|
|
5288
|
-
{
|
|
5289
|
-
"BearerAuth": []
|
|
5290
|
-
}
|
|
5291
|
-
],
|
|
5292
4350
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5293
|
-
"
|
|
5294
|
-
"application/json"
|
|
5295
|
-
],
|
|
5296
|
-
"produces": [
|
|
5297
|
-
"application/json",
|
|
5298
|
-
"application/vnd.cnb.api+json"
|
|
5299
|
-
],
|
|
5300
|
-
"tags": [
|
|
5301
|
-
"Issues"
|
|
5302
|
-
],
|
|
4351
|
+
"operationId": "PostIssueLabels",
|
|
5303
4352
|
"summary": "新增 Issue 标签",
|
|
5304
4353
|
"parameters": [
|
|
5305
4354
|
{
|
|
@@ -5350,22 +4399,8 @@
|
|
|
5350
4399
|
"method": "post"
|
|
5351
4400
|
},
|
|
5352
4401
|
{
|
|
5353
|
-
"security": [
|
|
5354
|
-
{
|
|
5355
|
-
"BearerAuth": []
|
|
5356
|
-
}
|
|
5357
|
-
],
|
|
5358
4402
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5359
|
-
"
|
|
5360
|
-
"application/json"
|
|
5361
|
-
],
|
|
5362
|
-
"produces": [
|
|
5363
|
-
"application/json",
|
|
5364
|
-
"application/vnd.cnb.api+json"
|
|
5365
|
-
],
|
|
5366
|
-
"tags": [
|
|
5367
|
-
"Issues"
|
|
5368
|
-
],
|
|
4403
|
+
"operationId": "PutIssueLabels",
|
|
5369
4404
|
"summary": "设置 Issue 标签",
|
|
5370
4405
|
"parameters": [
|
|
5371
4406
|
{
|
|
@@ -5418,22 +4453,8 @@
|
|
|
5418
4453
|
],
|
|
5419
4454
|
"repo.issues.labels.deleteByName": [
|
|
5420
4455
|
{
|
|
5421
|
-
"security": [
|
|
5422
|
-
{
|
|
5423
|
-
"BearerAuth": []
|
|
5424
|
-
}
|
|
5425
|
-
],
|
|
5426
4456
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5427
|
-
"
|
|
5428
|
-
"application/json"
|
|
5429
|
-
],
|
|
5430
|
-
"produces": [
|
|
5431
|
-
"application/json",
|
|
5432
|
-
"application/vnd.cnb.api+json"
|
|
5433
|
-
],
|
|
5434
|
-
"tags": [
|
|
5435
|
-
"Issues"
|
|
5436
|
-
],
|
|
4457
|
+
"operationId": "DeleteIssueLabel",
|
|
5437
4458
|
"summary": "删除 Issue 标签",
|
|
5438
4459
|
"parameters": [
|
|
5439
4460
|
{
|
|
@@ -5484,20 +4505,8 @@
|
|
|
5484
4505
|
],
|
|
5485
4506
|
"repo.labels.list": [
|
|
5486
4507
|
{
|
|
5487
|
-
"security": [
|
|
5488
|
-
{
|
|
5489
|
-
"BearerAuth": []
|
|
5490
|
-
}
|
|
5491
|
-
],
|
|
5492
4508
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
5493
|
-
"
|
|
5494
|
-
"produces": [
|
|
5495
|
-
"application/json",
|
|
5496
|
-
"application/vnd.cnb.api+json"
|
|
5497
|
-
],
|
|
5498
|
-
"tags": [
|
|
5499
|
-
"RepoLabels"
|
|
5500
|
-
],
|
|
4509
|
+
"operationId": "ListLabels",
|
|
5501
4510
|
"summary": "查询仓库的标签(label) 列表",
|
|
5502
4511
|
"parameters": [
|
|
5503
4512
|
{
|
|
@@ -5557,20 +4566,8 @@
|
|
|
5557
4566
|
],
|
|
5558
4567
|
"repo.labels.post": [
|
|
5559
4568
|
{
|
|
5560
|
-
"security": [
|
|
5561
|
-
{
|
|
5562
|
-
"BearerAuth": []
|
|
5563
|
-
}
|
|
5564
|
-
],
|
|
5565
4569
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5566
|
-
"
|
|
5567
|
-
"produces": [
|
|
5568
|
-
"application/json",
|
|
5569
|
-
"application/vnd.cnb.api+json"
|
|
5570
|
-
],
|
|
5571
|
-
"tags": [
|
|
5572
|
-
"RepoLabels"
|
|
5573
|
-
],
|
|
4570
|
+
"operationId": "PostLabel",
|
|
5574
4571
|
"summary": "创建一个 标签",
|
|
5575
4572
|
"parameters": [
|
|
5576
4573
|
{
|
|
@@ -5616,20 +4613,8 @@
|
|
|
5616
4613
|
],
|
|
5617
4614
|
"repo.labels.delete": [
|
|
5618
4615
|
{
|
|
5619
|
-
"security": [
|
|
5620
|
-
{
|
|
5621
|
-
"BearerAuth": []
|
|
5622
|
-
}
|
|
5623
|
-
],
|
|
5624
4616
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5625
|
-
"
|
|
5626
|
-
"produces": [
|
|
5627
|
-
"application/json",
|
|
5628
|
-
"application/vnd.cnb.api+json"
|
|
5629
|
-
],
|
|
5630
|
-
"tags": [
|
|
5631
|
-
"RepoLabels"
|
|
5632
|
-
],
|
|
4617
|
+
"operationId": "DeleteLabel",
|
|
5633
4618
|
"summary": "删除指定的仓库标签 label",
|
|
5634
4619
|
"parameters": [
|
|
5635
4620
|
{
|
|
@@ -5670,20 +4655,8 @@
|
|
|
5670
4655
|
],
|
|
5671
4656
|
"repo.labels.patch": [
|
|
5672
4657
|
{
|
|
5673
|
-
"security": [
|
|
5674
|
-
{
|
|
5675
|
-
"BearerAuth": []
|
|
5676
|
-
}
|
|
5677
|
-
],
|
|
5678
4658
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
5679
|
-
"
|
|
5680
|
-
"produces": [
|
|
5681
|
-
"application/json",
|
|
5682
|
-
"application/vnd.cnb.api+json"
|
|
5683
|
-
],
|
|
5684
|
-
"tags": [
|
|
5685
|
-
"RepoLabels"
|
|
5686
|
-
],
|
|
4659
|
+
"operationId": "PatchLabel",
|
|
5687
4660
|
"summary": "更新标签信息",
|
|
5688
4661
|
"parameters": [
|
|
5689
4662
|
{
|
|
@@ -5736,23 +4709,8 @@
|
|
|
5736
4709
|
],
|
|
5737
4710
|
"repo.listMembers.list": [
|
|
5738
4711
|
{
|
|
5739
|
-
"security": [
|
|
5740
|
-
{
|
|
5741
|
-
"BearerAuth": []
|
|
5742
|
-
}
|
|
5743
|
-
],
|
|
5744
4712
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5745
|
-
"
|
|
5746
|
-
"application/json"
|
|
5747
|
-
],
|
|
5748
|
-
"produces": [
|
|
5749
|
-
"application/json",
|
|
5750
|
-
"application/vnd.cnb.api+json",
|
|
5751
|
-
"application/vnd.cnb.web+json"
|
|
5752
|
-
],
|
|
5753
|
-
"tags": [
|
|
5754
|
-
"Collaborators"
|
|
5755
|
-
],
|
|
4713
|
+
"operationId": "ListAllMembers",
|
|
5756
4714
|
"summary": "获取指定组织或仓库内的有效成员列表,包含继承成员",
|
|
5757
4715
|
"parameters": [
|
|
5758
4716
|
{
|
|
@@ -5839,23 +4797,8 @@
|
|
|
5839
4797
|
],
|
|
5840
4798
|
"repo.members.list": [
|
|
5841
4799
|
{
|
|
5842
|
-
"security": [
|
|
5843
|
-
{
|
|
5844
|
-
"BearerAuth": []
|
|
5845
|
-
}
|
|
5846
|
-
],
|
|
5847
4800
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5848
|
-
"
|
|
5849
|
-
"application/json"
|
|
5850
|
-
],
|
|
5851
|
-
"produces": [
|
|
5852
|
-
"application/json",
|
|
5853
|
-
"application/vnd.cnb.api+json",
|
|
5854
|
-
"application/vnd.cnb.web+json"
|
|
5855
|
-
],
|
|
5856
|
-
"tags": [
|
|
5857
|
-
"Collaborators"
|
|
5858
|
-
],
|
|
4801
|
+
"operationId": "ListMembers",
|
|
5859
4802
|
"summary": "获取指定组织或仓库内的所有直接成员",
|
|
5860
4803
|
"parameters": [
|
|
5861
4804
|
{
|
|
@@ -5917,23 +4860,8 @@
|
|
|
5917
4860
|
],
|
|
5918
4861
|
"repo.members.accessLevel.get": [
|
|
5919
4862
|
{
|
|
5920
|
-
"security": [
|
|
5921
|
-
{
|
|
5922
|
-
"BearerAuth": []
|
|
5923
|
-
}
|
|
5924
|
-
],
|
|
5925
4863
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5926
|
-
"
|
|
5927
|
-
"application/json"
|
|
5928
|
-
],
|
|
5929
|
-
"produces": [
|
|
5930
|
-
"application/json",
|
|
5931
|
-
"application/vnd.cnb.api+json",
|
|
5932
|
-
"application/vnd.cnb.web+json"
|
|
5933
|
-
],
|
|
5934
|
-
"tags": [
|
|
5935
|
-
"Contributors"
|
|
5936
|
-
],
|
|
4864
|
+
"operationId": "GetMemberAccessLevel",
|
|
5937
4865
|
"summary": "获取指定组织或仓库内, 访问成员在当前层级内的权限信息",
|
|
5938
4866
|
"parameters": [
|
|
5939
4867
|
{
|
|
@@ -5965,23 +4893,8 @@
|
|
|
5965
4893
|
],
|
|
5966
4894
|
"repo.members.delete": [
|
|
5967
4895
|
{
|
|
5968
|
-
"security": [
|
|
5969
|
-
{
|
|
5970
|
-
"BearerAuth": []
|
|
5971
|
-
}
|
|
5972
|
-
],
|
|
5973
4896
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5974
|
-
"
|
|
5975
|
-
"application/json"
|
|
5976
|
-
],
|
|
5977
|
-
"produces": [
|
|
5978
|
-
"application/json",
|
|
5979
|
-
"application/vnd.cnb.api+json",
|
|
5980
|
-
"application/vnd.cnb.web+json"
|
|
5981
|
-
],
|
|
5982
|
-
"tags": [
|
|
5983
|
-
"Collaborators"
|
|
5984
|
-
],
|
|
4897
|
+
"operationId": "DeleteMembers",
|
|
5985
4898
|
"summary": "删除指定组织或仓库的直接成员, 包含两种场景: 1. 作为直接成员的用户自己退出 2. 由管理者移除指定的直接成员",
|
|
5986
4899
|
"parameters": [
|
|
5987
4900
|
{
|
|
@@ -6010,23 +4923,8 @@
|
|
|
6010
4923
|
],
|
|
6011
4924
|
"repo.members.put": [
|
|
6012
4925
|
{
|
|
6013
|
-
"security": [
|
|
6014
|
-
{
|
|
6015
|
-
"BearerAuth": []
|
|
6016
|
-
}
|
|
6017
|
-
],
|
|
6018
4926
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6019
|
-
"
|
|
6020
|
-
"application/json"
|
|
6021
|
-
],
|
|
6022
|
-
"produces": [
|
|
6023
|
-
"application/json",
|
|
6024
|
-
"application/vnd.cnb.api+json",
|
|
6025
|
-
"application/vnd.cnb.web+json"
|
|
6026
|
-
],
|
|
6027
|
-
"tags": [
|
|
6028
|
-
"Collaborators"
|
|
6029
|
-
],
|
|
4927
|
+
"operationId": "UpdateMembers",
|
|
6030
4928
|
"summary": "更新指定组织或仓库内的直接成员权限信息",
|
|
6031
4929
|
"parameters": [
|
|
6032
4930
|
{
|
|
@@ -6064,23 +4962,8 @@
|
|
|
6064
4962
|
],
|
|
6065
4963
|
"repo.members.accessLevel.list": [
|
|
6066
4964
|
{
|
|
6067
|
-
"security": [
|
|
6068
|
-
{
|
|
6069
|
-
"BearerAuth": []
|
|
6070
|
-
}
|
|
6071
|
-
],
|
|
6072
4965
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6073
|
-
"
|
|
6074
|
-
"application/json"
|
|
6075
|
-
],
|
|
6076
|
-
"produces": [
|
|
6077
|
-
"application/json",
|
|
6078
|
-
"application/vnd.cnb.api+json",
|
|
6079
|
-
"application/vnd.cnb.web+json"
|
|
6080
|
-
],
|
|
6081
|
-
"tags": [
|
|
6082
|
-
"Contributors"
|
|
6083
|
-
],
|
|
4966
|
+
"operationId": "ListMemberAccessLevel",
|
|
6084
4967
|
"summary": "获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息",
|
|
6085
4968
|
"parameters": [
|
|
6086
4969
|
{
|
|
@@ -6115,23 +4998,8 @@
|
|
|
6115
4998
|
],
|
|
6116
4999
|
"repo.outsideCollaborators.list": [
|
|
6117
5000
|
{
|
|
6118
|
-
"security": [
|
|
6119
|
-
{
|
|
6120
|
-
"BearerAuth": []
|
|
6121
|
-
}
|
|
6122
|
-
],
|
|
6123
5001
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
6124
|
-
"
|
|
6125
|
-
"application/json"
|
|
6126
|
-
],
|
|
6127
|
-
"produces": [
|
|
6128
|
-
"application/json",
|
|
6129
|
-
"application/vnd.cnb.api+json",
|
|
6130
|
-
"application/vnd.cnb.web+json"
|
|
6131
|
-
],
|
|
6132
|
-
"tags": [
|
|
6133
|
-
"Collaborators"
|
|
6134
|
-
],
|
|
5002
|
+
"operationId": "ListOutsideCollaborators",
|
|
6135
5003
|
"summary": "获取指定仓库内的外部贡献者",
|
|
6136
5004
|
"parameters": [
|
|
6137
5005
|
{
|
|
@@ -6192,23 +5060,8 @@
|
|
|
6192
5060
|
],
|
|
6193
5061
|
"repo.outsideCollaborators.delete": [
|
|
6194
5062
|
{
|
|
6195
|
-
"security": [
|
|
6196
|
-
{
|
|
6197
|
-
"BearerAuth": []
|
|
6198
|
-
}
|
|
6199
|
-
],
|
|
6200
5063
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6201
|
-
"
|
|
6202
|
-
"application/json"
|
|
6203
|
-
],
|
|
6204
|
-
"produces": [
|
|
6205
|
-
"application/json",
|
|
6206
|
-
"application/vnd.cnb.api+json",
|
|
6207
|
-
"application/vnd.cnb.web+json"
|
|
6208
|
-
],
|
|
6209
|
-
"tags": [
|
|
6210
|
-
"Collaborators"
|
|
6211
|
-
],
|
|
5064
|
+
"operationId": "DeleteOutsideCollaborators",
|
|
6212
5065
|
"summary": "删除指定仓库的外部贡献者, 包含两种场景: 1. 作为外部贡献者的用户自己退出仓库 2. 由仓库管理者移除指定的外部贡献者",
|
|
6213
5066
|
"parameters": [
|
|
6214
5067
|
{
|
|
@@ -6237,23 +5090,8 @@
|
|
|
6237
5090
|
],
|
|
6238
5091
|
"repo.outsideCollaborators.put": [
|
|
6239
5092
|
{
|
|
6240
|
-
"security": [
|
|
6241
|
-
{
|
|
6242
|
-
"BearerAuth": []
|
|
6243
|
-
}
|
|
6244
|
-
],
|
|
6245
5093
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
6246
|
-
"
|
|
6247
|
-
"application/json"
|
|
6248
|
-
],
|
|
6249
|
-
"produces": [
|
|
6250
|
-
"application/json",
|
|
6251
|
-
"application/vnd.cnb.api+json",
|
|
6252
|
-
"application/vnd.cnb.web+json"
|
|
6253
|
-
],
|
|
6254
|
-
"tags": [
|
|
6255
|
-
"Collaborators"
|
|
6256
|
-
],
|
|
5094
|
+
"operationId": "UpdateOutsideCollaborators",
|
|
6257
5095
|
"summary": "更新指定仓库的外部贡献者权限信息",
|
|
6258
5096
|
"parameters": [
|
|
6259
5097
|
{
|
|
@@ -6292,24 +5130,58 @@
|
|
|
6292
5130
|
"method": "put"
|
|
6293
5131
|
}
|
|
6294
5132
|
],
|
|
6295
|
-
"repo.
|
|
5133
|
+
"repo.pullInBatch.list": [
|
|
6296
5134
|
{
|
|
6297
|
-
"
|
|
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
|
+
},
|
|
6298
5146
|
{
|
|
6299
|
-
"
|
|
5147
|
+
"description": "pull request numbers",
|
|
5148
|
+
"in": "query",
|
|
5149
|
+
"name": "n",
|
|
5150
|
+
"required": true,
|
|
5151
|
+
"type": "array"
|
|
6300
5152
|
}
|
|
6301
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
|
+
],
|
|
5181
|
+
"repo.pulls.list": [
|
|
5182
|
+
{
|
|
6302
5183
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:r",
|
|
6303
|
-
"
|
|
6304
|
-
"application/json"
|
|
6305
|
-
],
|
|
6306
|
-
"produces": [
|
|
6307
|
-
"application/json",
|
|
6308
|
-
"application/vnd.cnb.api+json"
|
|
6309
|
-
],
|
|
6310
|
-
"tags": [
|
|
6311
|
-
"Pulls"
|
|
6312
|
-
],
|
|
5184
|
+
"operationId": "ListPulls",
|
|
6313
5185
|
"summary": "[openapi] 查询 Pull 列表",
|
|
6314
5186
|
"parameters": [
|
|
6315
5187
|
{
|
|
@@ -6388,22 +5260,8 @@
|
|
|
6388
5260
|
],
|
|
6389
5261
|
"repo.pulls.post": [
|
|
6390
5262
|
{
|
|
6391
|
-
"security": [
|
|
6392
|
-
{
|
|
6393
|
-
"BearerAuth": []
|
|
6394
|
-
}
|
|
6395
|
-
],
|
|
6396
5263
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
6397
|
-
"
|
|
6398
|
-
"application/json"
|
|
6399
|
-
],
|
|
6400
|
-
"produces": [
|
|
6401
|
-
"application/json",
|
|
6402
|
-
"application/vnd.cnb.api+json"
|
|
6403
|
-
],
|
|
6404
|
-
"tags": [
|
|
6405
|
-
"Pulls"
|
|
6406
|
-
],
|
|
5264
|
+
"operationId": "PostPull",
|
|
6407
5265
|
"summary": "[openapi] 新增一个 Pull",
|
|
6408
5266
|
"parameters": [
|
|
6409
5267
|
{
|
|
@@ -6449,22 +5307,8 @@
|
|
|
6449
5307
|
],
|
|
6450
5308
|
"repo.pulls.get": [
|
|
6451
5309
|
{
|
|
6452
|
-
"security": [
|
|
6453
|
-
{
|
|
6454
|
-
"BearerAuth": []
|
|
6455
|
-
}
|
|
6456
|
-
],
|
|
6457
5310
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:r",
|
|
6458
|
-
"
|
|
6459
|
-
"application/json"
|
|
6460
|
-
],
|
|
6461
|
-
"produces": [
|
|
6462
|
-
"application/json",
|
|
6463
|
-
"application/vnd.cnb.api+json"
|
|
6464
|
-
],
|
|
6465
|
-
"tags": [
|
|
6466
|
-
"Pulls"
|
|
6467
|
-
],
|
|
5311
|
+
"operationId": "GetPull",
|
|
6468
5312
|
"summary": "[openapi] 查询指定 Pull",
|
|
6469
5313
|
"parameters": [
|
|
6470
5314
|
{
|
|
@@ -6508,22 +5352,8 @@
|
|
|
6508
5352
|
],
|
|
6509
5353
|
"repo.pulls.patch": [
|
|
6510
5354
|
{
|
|
6511
|
-
"security": [
|
|
6512
|
-
{
|
|
6513
|
-
"BearerAuth": []
|
|
6514
|
-
}
|
|
6515
|
-
],
|
|
6516
5355
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
6517
|
-
"
|
|
6518
|
-
"application/json"
|
|
6519
|
-
],
|
|
6520
|
-
"produces": [
|
|
6521
|
-
"application/json",
|
|
6522
|
-
"application/vnd.cnb.api+json"
|
|
6523
|
-
],
|
|
6524
|
-
"tags": [
|
|
6525
|
-
"Pulls"
|
|
6526
|
-
],
|
|
5356
|
+
"operationId": "PatchPull",
|
|
6527
5357
|
"summary": "[openapi] 更新一个 Pull Request",
|
|
6528
5358
|
"parameters": [
|
|
6529
5359
|
{
|
|
@@ -6576,22 +5406,8 @@
|
|
|
6576
5406
|
],
|
|
6577
5407
|
"repo.pulls.comments.list": [
|
|
6578
5408
|
{
|
|
6579
|
-
"security": [
|
|
6580
|
-
{
|
|
6581
|
-
"BearerAuth": []
|
|
6582
|
-
}
|
|
6583
|
-
],
|
|
6584
5409
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
6585
|
-
"
|
|
6586
|
-
"application/json"
|
|
6587
|
-
],
|
|
6588
|
-
"produces": [
|
|
6589
|
-
"application/json",
|
|
6590
|
-
"application/vnd.cnb.api+json"
|
|
6591
|
-
],
|
|
6592
|
-
"tags": [
|
|
6593
|
-
"Pulls"
|
|
6594
|
-
],
|
|
5410
|
+
"operationId": "ListPullComments",
|
|
6595
5411
|
"summary": "[openapi] 查询 Pull Comments 列表",
|
|
6596
5412
|
"parameters": [
|
|
6597
5413
|
{
|
|
@@ -6601,6 +5417,13 @@
|
|
|
6601
5417
|
"required": true,
|
|
6602
5418
|
"type": "string"
|
|
6603
5419
|
},
|
|
5420
|
+
{
|
|
5421
|
+
"description": "number",
|
|
5422
|
+
"in": "path",
|
|
5423
|
+
"name": "number",
|
|
5424
|
+
"required": true,
|
|
5425
|
+
"type": "string"
|
|
5426
|
+
},
|
|
6604
5427
|
{
|
|
6605
5428
|
"default": 1,
|
|
6606
5429
|
"description": "pagination page number",
|
|
@@ -6645,22 +5468,8 @@
|
|
|
6645
5468
|
],
|
|
6646
5469
|
"repo.pulls.comments.post": [
|
|
6647
5470
|
{
|
|
6648
|
-
"security": [
|
|
6649
|
-
{
|
|
6650
|
-
"BearerAuth": []
|
|
6651
|
-
}
|
|
6652
|
-
],
|
|
6653
5471
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
6654
|
-
"
|
|
6655
|
-
"application/json"
|
|
6656
|
-
],
|
|
6657
|
-
"produces": [
|
|
6658
|
-
"application/json",
|
|
6659
|
-
"application/vnd.cnb.api+json"
|
|
6660
|
-
],
|
|
6661
|
-
"tags": [
|
|
6662
|
-
"Pulls"
|
|
6663
|
-
],
|
|
5472
|
+
"operationId": "PostPullComment",
|
|
6664
5473
|
"summary": "[openapi] 新增一个 Pull Comment",
|
|
6665
5474
|
"parameters": [
|
|
6666
5475
|
{
|
|
@@ -6710,22 +5519,8 @@
|
|
|
6710
5519
|
],
|
|
6711
5520
|
"repo.pulls.labels.delete": [
|
|
6712
5521
|
{
|
|
6713
|
-
"security": [
|
|
6714
|
-
{
|
|
6715
|
-
"BearerAuth": []
|
|
6716
|
-
}
|
|
6717
|
-
],
|
|
6718
5522
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
6719
|
-
"
|
|
6720
|
-
"application/json"
|
|
6721
|
-
],
|
|
6722
|
-
"produces": [
|
|
6723
|
-
"application/json",
|
|
6724
|
-
"application/vnd.cnb.api+json"
|
|
6725
|
-
],
|
|
6726
|
-
"tags": [
|
|
6727
|
-
"Pulls"
|
|
6728
|
-
],
|
|
5523
|
+
"operationId": "DeletePullLabels",
|
|
6729
5524
|
"summary": "清空 Pull 标签",
|
|
6730
5525
|
"parameters": [
|
|
6731
5526
|
{
|
|
@@ -6766,22 +5561,8 @@
|
|
|
6766
5561
|
],
|
|
6767
5562
|
"repo.pulls.labels.list": [
|
|
6768
5563
|
{
|
|
6769
|
-
"security": [
|
|
6770
|
-
{
|
|
6771
|
-
"BearerAuth": []
|
|
6772
|
-
}
|
|
6773
|
-
],
|
|
6774
5564
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:r",
|
|
6775
|
-
"
|
|
6776
|
-
"application/json"
|
|
6777
|
-
],
|
|
6778
|
-
"produces": [
|
|
6779
|
-
"application/json",
|
|
6780
|
-
"application/vnd.cnb.api+json"
|
|
6781
|
-
],
|
|
6782
|
-
"tags": [
|
|
6783
|
-
"Pulls"
|
|
6784
|
-
],
|
|
5565
|
+
"operationId": "ListPullLabels",
|
|
6785
5566
|
"summary": "查询 Pull 的标签(label) 列表",
|
|
6786
5567
|
"parameters": [
|
|
6787
5568
|
{
|
|
@@ -6842,22 +5623,8 @@
|
|
|
6842
5623
|
],
|
|
6843
5624
|
"repo.pulls.labels.post": [
|
|
6844
5625
|
{
|
|
6845
|
-
"security": [
|
|
6846
|
-
{
|
|
6847
|
-
"BearerAuth": []
|
|
6848
|
-
}
|
|
6849
|
-
],
|
|
6850
5626
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
6851
|
-
"
|
|
6852
|
-
"application/json"
|
|
6853
|
-
],
|
|
6854
|
-
"produces": [
|
|
6855
|
-
"application/json",
|
|
6856
|
-
"application/vnd.cnb.api+json"
|
|
6857
|
-
],
|
|
6858
|
-
"tags": [
|
|
6859
|
-
"Pulls"
|
|
6860
|
-
],
|
|
5627
|
+
"operationId": "PostPullLabels",
|
|
6861
5628
|
"summary": "新增 Pull 标签",
|
|
6862
5629
|
"parameters": [
|
|
6863
5630
|
{
|
|
@@ -6910,22 +5677,8 @@
|
|
|
6910
5677
|
],
|
|
6911
5678
|
"repo.pulls.labels.put": [
|
|
6912
5679
|
{
|
|
6913
|
-
"security": [
|
|
6914
|
-
{
|
|
6915
|
-
"BearerAuth": []
|
|
6916
|
-
}
|
|
6917
|
-
],
|
|
6918
5680
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
6919
|
-
"
|
|
6920
|
-
"application/json"
|
|
6921
|
-
],
|
|
6922
|
-
"produces": [
|
|
6923
|
-
"application/json",
|
|
6924
|
-
"application/vnd.cnb.api+json"
|
|
6925
|
-
],
|
|
6926
|
-
"tags": [
|
|
6927
|
-
"Pulls"
|
|
6928
|
-
],
|
|
5681
|
+
"operationId": "PutPullLabels",
|
|
6929
5682
|
"summary": "设置 Pull 标签",
|
|
6930
5683
|
"parameters": [
|
|
6931
5684
|
{
|
|
@@ -6978,22 +5731,8 @@
|
|
|
6978
5731
|
],
|
|
6979
5732
|
"repo.pulls.labels.deleteByName": [
|
|
6980
5733
|
{
|
|
6981
|
-
"security": [
|
|
6982
|
-
{
|
|
6983
|
-
"BearerAuth": []
|
|
6984
|
-
}
|
|
6985
|
-
],
|
|
6986
5734
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
6987
|
-
"
|
|
6988
|
-
"application/json"
|
|
6989
|
-
],
|
|
6990
|
-
"produces": [
|
|
6991
|
-
"application/json",
|
|
6992
|
-
"application/vnd.cnb.api+json"
|
|
6993
|
-
],
|
|
6994
|
-
"tags": [
|
|
6995
|
-
"Pulls"
|
|
6996
|
-
],
|
|
5735
|
+
"operationId": "DeletePullLabel",
|
|
6997
5736
|
"summary": "删除 Pull 标签",
|
|
6998
5737
|
"parameters": [
|
|
6999
5738
|
{
|
|
@@ -7044,22 +5783,8 @@
|
|
|
7044
5783
|
],
|
|
7045
5784
|
"repo.pulls.merge.put": [
|
|
7046
5785
|
{
|
|
7047
|
-
"security": [
|
|
7048
|
-
{
|
|
7049
|
-
"BearerAuth": []
|
|
7050
|
-
}
|
|
7051
|
-
],
|
|
7052
5786
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-pr:rw",
|
|
7053
|
-
"
|
|
7054
|
-
"application/json"
|
|
7055
|
-
],
|
|
7056
|
-
"produces": [
|
|
7057
|
-
"application/json",
|
|
7058
|
-
"application/vnd.cnb.api+json"
|
|
7059
|
-
],
|
|
7060
|
-
"tags": [
|
|
7061
|
-
"Pulls"
|
|
7062
|
-
],
|
|
5787
|
+
"operationId": "MergePull",
|
|
7063
5788
|
"summary": "[openapi] 合并一个 Pull Request",
|
|
7064
5789
|
"parameters": [
|
|
7065
5790
|
{
|
|
@@ -7112,23 +5837,9 @@
|
|
|
7112
5837
|
],
|
|
7113
5838
|
"repo.pulls.reviews.post": [
|
|
7114
5839
|
{
|
|
7115
|
-
"security": [
|
|
7116
|
-
{
|
|
7117
|
-
"BearerAuth": []
|
|
7118
|
-
}
|
|
7119
|
-
],
|
|
7120
5840
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-notes:rw",
|
|
7121
|
-
"
|
|
7122
|
-
|
|
7123
|
-
],
|
|
7124
|
-
"produces": [
|
|
7125
|
-
"application/json",
|
|
7126
|
-
"application/vnd.cnb.api+json"
|
|
7127
|
-
],
|
|
7128
|
-
"tags": [
|
|
7129
|
-
"Pulls"
|
|
7130
|
-
],
|
|
7131
|
-
"summary": "[openapi] 新增一个 Pull Review",
|
|
5841
|
+
"operationId": "PostPullReview",
|
|
5842
|
+
"summary": "新增一次 pull request 评审",
|
|
7132
5843
|
"parameters": [
|
|
7133
5844
|
{
|
|
7134
5845
|
"description": "repo",
|
|
@@ -7158,6 +5869,12 @@
|
|
|
7158
5869
|
"201": {
|
|
7159
5870
|
"description": "Created"
|
|
7160
5871
|
},
|
|
5872
|
+
"403": {
|
|
5873
|
+
"description": "Forbidden",
|
|
5874
|
+
"schema": {
|
|
5875
|
+
"$ref": "#/definitions/die.WebError"
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
7161
5878
|
"404": {
|
|
7162
5879
|
"description": "Not Found",
|
|
7163
5880
|
"schema": {
|
|
@@ -7177,20 +5894,8 @@
|
|
|
7177
5894
|
],
|
|
7178
5895
|
"repo.releases.list": [
|
|
7179
5896
|
{
|
|
7180
|
-
"security": [
|
|
7181
|
-
{
|
|
7182
|
-
"BearerAuth": []
|
|
7183
|
-
}
|
|
7184
|
-
],
|
|
7185
5897
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
7186
|
-
"
|
|
7187
|
-
"produces": [
|
|
7188
|
-
"application/json",
|
|
7189
|
-
"application/vnd.cnb.api+json"
|
|
7190
|
-
],
|
|
7191
|
-
"tags": [
|
|
7192
|
-
"Releases"
|
|
7193
|
-
],
|
|
5898
|
+
"operationId": "ListReleases",
|
|
7194
5899
|
"summary": "[openapi] 查询 release 列表",
|
|
7195
5900
|
"parameters": [
|
|
7196
5901
|
{
|
|
@@ -7244,22 +5949,8 @@
|
|
|
7244
5949
|
],
|
|
7245
5950
|
"repo.releases.post": [
|
|
7246
5951
|
{
|
|
7247
|
-
"security": [
|
|
7248
|
-
{
|
|
7249
|
-
"BearerAuth": []
|
|
7250
|
-
}
|
|
7251
|
-
],
|
|
7252
5952
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7253
|
-
"
|
|
7254
|
-
"application/json"
|
|
7255
|
-
],
|
|
7256
|
-
"produces": [
|
|
7257
|
-
"application/json",
|
|
7258
|
-
"application/vnd.cnb.api+json"
|
|
7259
|
-
],
|
|
7260
|
-
"tags": [
|
|
7261
|
-
"Releases"
|
|
7262
|
-
],
|
|
5953
|
+
"operationId": "PostRelease",
|
|
7263
5954
|
"summary": "[openapi] 新增一个 Release",
|
|
7264
5955
|
"parameters": [
|
|
7265
5956
|
{
|
|
@@ -7305,17 +5996,8 @@
|
|
|
7305
5996
|
],
|
|
7306
5997
|
"repo.releases.download.get": [
|
|
7307
5998
|
{
|
|
7308
|
-
"security": [
|
|
7309
|
-
{
|
|
7310
|
-
"BearerAuth": []
|
|
7311
|
-
}
|
|
7312
|
-
],
|
|
7313
5999
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:r",
|
|
7314
|
-
"
|
|
7315
|
-
"produces": null,
|
|
7316
|
-
"tags": [
|
|
7317
|
-
"Assets"
|
|
7318
|
-
],
|
|
6000
|
+
"operationId": "GetReleasesAsset",
|
|
7319
6001
|
"summary": "发起一个获取 release 附件的请求,返回内容或者 302 到某个地址",
|
|
7320
6002
|
"parameters": [
|
|
7321
6003
|
{
|
|
@@ -7345,20 +6027,8 @@
|
|
|
7345
6027
|
],
|
|
7346
6028
|
"repo.releases.tags.get": [
|
|
7347
6029
|
{
|
|
7348
|
-
"security": [
|
|
7349
|
-
{
|
|
7350
|
-
"BearerAuth": []
|
|
7351
|
-
}
|
|
7352
|
-
],
|
|
7353
6030
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
7354
|
-
"
|
|
7355
|
-
"produces": [
|
|
7356
|
-
"application/json",
|
|
7357
|
-
"application/vnd.cnb.api+json"
|
|
7358
|
-
],
|
|
7359
|
-
"tags": [
|
|
7360
|
-
"Releases"
|
|
7361
|
-
],
|
|
6031
|
+
"operationId": "GetReleaseByTag",
|
|
7362
6032
|
"summary": "[openapi] 通过 tag 查询指定 release",
|
|
7363
6033
|
"parameters": [
|
|
7364
6034
|
{
|
|
@@ -7402,20 +6072,8 @@
|
|
|
7402
6072
|
],
|
|
7403
6073
|
"repo.releases.delete": [
|
|
7404
6074
|
{
|
|
7405
|
-
"security": [
|
|
7406
|
-
{
|
|
7407
|
-
"BearerAuth": []
|
|
7408
|
-
}
|
|
7409
|
-
],
|
|
7410
6075
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7411
|
-
"
|
|
7412
|
-
"produces": [
|
|
7413
|
-
"application/json",
|
|
7414
|
-
"application/vnd.cnb.api+json"
|
|
7415
|
-
],
|
|
7416
|
-
"tags": [
|
|
7417
|
-
"Releases"
|
|
7418
|
-
],
|
|
6076
|
+
"operationId": "DeleteRelease",
|
|
7419
6077
|
"summary": "[openapi] 删除指定的 release",
|
|
7420
6078
|
"parameters": [
|
|
7421
6079
|
{
|
|
@@ -7456,20 +6114,8 @@
|
|
|
7456
6114
|
],
|
|
7457
6115
|
"repo.releases.get": [
|
|
7458
6116
|
{
|
|
7459
|
-
"security": [
|
|
7460
|
-
{
|
|
7461
|
-
"BearerAuth": []
|
|
7462
|
-
}
|
|
7463
|
-
],
|
|
7464
6117
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
7465
|
-
"
|
|
7466
|
-
"produces": [
|
|
7467
|
-
"application/json",
|
|
7468
|
-
"application/vnd.cnb.api+json"
|
|
7469
|
-
],
|
|
7470
|
-
"tags": [
|
|
7471
|
-
"Releases"
|
|
7472
|
-
],
|
|
6118
|
+
"operationId": "GetReleaseByID",
|
|
7473
6119
|
"summary": "[openapi] 根据 id\t查询指定 release",
|
|
7474
6120
|
"parameters": [
|
|
7475
6121
|
{
|
|
@@ -7513,22 +6159,8 @@
|
|
|
7513
6159
|
],
|
|
7514
6160
|
"repo.releases.patch": [
|
|
7515
6161
|
{
|
|
7516
|
-
"security": [
|
|
7517
|
-
{
|
|
7518
|
-
"BearerAuth": []
|
|
7519
|
-
}
|
|
7520
|
-
],
|
|
7521
6162
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7522
|
-
"
|
|
7523
|
-
"application/json"
|
|
7524
|
-
],
|
|
7525
|
-
"produces": [
|
|
7526
|
-
"application/json",
|
|
7527
|
-
"application/vnd.cnb.api+json"
|
|
7528
|
-
],
|
|
7529
|
-
"tags": [
|
|
7530
|
-
"Releases"
|
|
7531
|
-
],
|
|
6163
|
+
"operationId": "PatchRelease",
|
|
7532
6164
|
"summary": "[openapi] 更新 release",
|
|
7533
6165
|
"parameters": [
|
|
7534
6166
|
{
|
|
@@ -7578,22 +6210,8 @@
|
|
|
7578
6210
|
],
|
|
7579
6211
|
"repo.releases.assetUploadConfirmation.post": [
|
|
7580
6212
|
{
|
|
7581
|
-
"security": [
|
|
7582
|
-
{
|
|
7583
|
-
"BearerAuth": []
|
|
7584
|
-
}
|
|
7585
|
-
],
|
|
7586
6213
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7587
|
-
"
|
|
7588
|
-
"application/json"
|
|
7589
|
-
],
|
|
7590
|
-
"produces": [
|
|
7591
|
-
"application/json",
|
|
7592
|
-
"application/vnd.cnb.api+json"
|
|
7593
|
-
],
|
|
7594
|
-
"tags": [
|
|
7595
|
-
"Releases"
|
|
7596
|
-
],
|
|
6214
|
+
"operationId": "PostReleaseAssetUploadConfirmation",
|
|
7597
6215
|
"summary": "[openapi] 确认 Release asset 上传完成",
|
|
7598
6216
|
"parameters": [
|
|
7599
6217
|
{
|
|
@@ -7648,22 +6266,8 @@
|
|
|
7648
6266
|
],
|
|
7649
6267
|
"repo.releases.assetUploadUrl.post": [
|
|
7650
6268
|
{
|
|
7651
|
-
"security": [
|
|
7652
|
-
{
|
|
7653
|
-
"BearerAuth": []
|
|
7654
|
-
}
|
|
7655
|
-
],
|
|
7656
6269
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7657
|
-
"
|
|
7658
|
-
"application/json"
|
|
7659
|
-
],
|
|
7660
|
-
"produces": [
|
|
7661
|
-
"application/json",
|
|
7662
|
-
"application/vnd.cnb.api+json"
|
|
7663
|
-
],
|
|
7664
|
-
"tags": [
|
|
7665
|
-
"Releases"
|
|
7666
|
-
],
|
|
6270
|
+
"operationId": "PostReleaseAssetUploadURL",
|
|
7667
6271
|
"summary": "[openapi] 新增一个 Release asset",
|
|
7668
6272
|
"parameters": [
|
|
7669
6273
|
{
|
|
@@ -7716,17 +6320,8 @@
|
|
|
7716
6320
|
],
|
|
7717
6321
|
"repo.releases.assets.delete": [
|
|
7718
6322
|
{
|
|
7719
|
-
"security": [
|
|
7720
|
-
{
|
|
7721
|
-
"BearerAuth": []
|
|
7722
|
-
}
|
|
7723
|
-
],
|
|
7724
6323
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
7725
|
-
"
|
|
7726
|
-
"produces": null,
|
|
7727
|
-
"tags": [
|
|
7728
|
-
"Releases"
|
|
7729
|
-
],
|
|
6324
|
+
"operationId": "DeleteReleaseAsset",
|
|
7730
6325
|
"summary": "[openapi] 删除指定的 release asset",
|
|
7731
6326
|
"parameters": [
|
|
7732
6327
|
{
|
|
@@ -7774,17 +6369,8 @@
|
|
|
7774
6369
|
],
|
|
7775
6370
|
"repo.releases.assets.get": [
|
|
7776
6371
|
{
|
|
7777
|
-
"security": [
|
|
7778
|
-
{
|
|
7779
|
-
"BearerAuth": []
|
|
7780
|
-
}
|
|
7781
|
-
],
|
|
7782
6372
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
7783
|
-
"
|
|
7784
|
-
"produces": null,
|
|
7785
|
-
"tags": [
|
|
7786
|
-
"Releases"
|
|
7787
|
-
],
|
|
6373
|
+
"operationId": "GetReleaseAsset",
|
|
7788
6374
|
"summary": "[openapi] 查询指定的 release asset",
|
|
7789
6375
|
"parameters": [
|
|
7790
6376
|
{
|
|
@@ -7835,20 +6421,8 @@
|
|
|
7835
6421
|
],
|
|
7836
6422
|
"repo.settings.branchProtections.list": [
|
|
7837
6423
|
{
|
|
7838
|
-
"security": [
|
|
7839
|
-
{
|
|
7840
|
-
"BearerAuth": []
|
|
7841
|
-
}
|
|
7842
|
-
],
|
|
7843
6424
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
7844
|
-
"
|
|
7845
|
-
"produces": [
|
|
7846
|
-
"application/json",
|
|
7847
|
-
"application/vnd.cnb.api+json"
|
|
7848
|
-
],
|
|
7849
|
-
"tags": [
|
|
7850
|
-
"GitSettings"
|
|
7851
|
-
],
|
|
6425
|
+
"operationId": "ListBranchProtections",
|
|
7852
6426
|
"summary": "查询仓库保护分支规则列表(openapi)",
|
|
7853
6427
|
"parameters": [
|
|
7854
6428
|
{
|
|
@@ -7888,21 +6462,8 @@
|
|
|
7888
6462
|
],
|
|
7889
6463
|
"repo.settings.branchProtections.post": [
|
|
7890
6464
|
{
|
|
7891
|
-
"security": [
|
|
7892
|
-
{
|
|
7893
|
-
"BearerAuth": []
|
|
7894
|
-
}
|
|
7895
|
-
],
|
|
7896
6465
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
7897
|
-
"
|
|
7898
|
-
"application/json"
|
|
7899
|
-
],
|
|
7900
|
-
"produces": [
|
|
7901
|
-
"application/vnd.cnb.api+json"
|
|
7902
|
-
],
|
|
7903
|
-
"tags": [
|
|
7904
|
-
"GitSettings"
|
|
7905
|
-
],
|
|
6466
|
+
"operationId": "PostBranchProtection",
|
|
7906
6467
|
"summary": "新增仓库保护分支规则(openapi)",
|
|
7907
6468
|
"parameters": [
|
|
7908
6469
|
{
|
|
@@ -7945,19 +6506,8 @@
|
|
|
7945
6506
|
],
|
|
7946
6507
|
"repo.settings.branchProtections.delete": [
|
|
7947
6508
|
{
|
|
7948
|
-
"security": [
|
|
7949
|
-
{
|
|
7950
|
-
"BearerAuth": []
|
|
7951
|
-
}
|
|
7952
|
-
],
|
|
7953
6509
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
7954
|
-
"
|
|
7955
|
-
"produces": [
|
|
7956
|
-
"application/vnd.cnb.api+json"
|
|
7957
|
-
],
|
|
7958
|
-
"tags": [
|
|
7959
|
-
"GitSettings"
|
|
7960
|
-
],
|
|
6510
|
+
"operationId": "DeleteBranchProtection",
|
|
7961
6511
|
"summary": "删除仓库保护分支规则(openapi)",
|
|
7962
6512
|
"parameters": [
|
|
7963
6513
|
{
|
|
@@ -7998,19 +6548,8 @@
|
|
|
7998
6548
|
],
|
|
7999
6549
|
"repo.settings.branchProtections.get": [
|
|
8000
6550
|
{
|
|
8001
|
-
"security": [
|
|
8002
|
-
{
|
|
8003
|
-
"BearerAuth": []
|
|
8004
|
-
}
|
|
8005
|
-
],
|
|
8006
6551
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
8007
|
-
"
|
|
8008
|
-
"produces": [
|
|
8009
|
-
"application/vnd.cnb.api+json"
|
|
8010
|
-
],
|
|
8011
|
-
"tags": [
|
|
8012
|
-
"GitSettings"
|
|
8013
|
-
],
|
|
6552
|
+
"operationId": "GetBranchProtection",
|
|
8014
6553
|
"summary": "查询仓库保护分支规则(openapi)",
|
|
8015
6554
|
"parameters": [
|
|
8016
6555
|
{
|
|
@@ -8054,21 +6593,8 @@
|
|
|
8054
6593
|
],
|
|
8055
6594
|
"repo.settings.branchProtections.patch": [
|
|
8056
6595
|
{
|
|
8057
|
-
"security": [
|
|
8058
|
-
{
|
|
8059
|
-
"BearerAuth": []
|
|
8060
|
-
}
|
|
8061
|
-
],
|
|
8062
6596
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
8063
|
-
"
|
|
8064
|
-
"application/json"
|
|
8065
|
-
],
|
|
8066
|
-
"produces": [
|
|
8067
|
-
"application/vnd.cnb.api+json"
|
|
8068
|
-
],
|
|
8069
|
-
"tags": [
|
|
8070
|
-
"GitSettings"
|
|
8071
|
-
],
|
|
6597
|
+
"operationId": "PatchBranchProtection",
|
|
8072
6598
|
"summary": "更新仓库保护分支规则(openapi)",
|
|
8073
6599
|
"parameters": [
|
|
8074
6600
|
{
|
|
@@ -8118,19 +6644,8 @@
|
|
|
8118
6644
|
],
|
|
8119
6645
|
"repo.settings.cloudNativeBuild.get": [
|
|
8120
6646
|
{
|
|
8121
|
-
"security": [
|
|
8122
|
-
{
|
|
8123
|
-
"BearerAuth": []
|
|
8124
|
-
}
|
|
8125
|
-
],
|
|
8126
6647
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
8127
|
-
"
|
|
8128
|
-
"produces": [
|
|
8129
|
-
"application/vnd.cnb.web+json"
|
|
8130
|
-
],
|
|
8131
|
-
"tags": [
|
|
8132
|
-
"GitSettings"
|
|
8133
|
-
],
|
|
6648
|
+
"operationId": "GetPipelineSettings",
|
|
8134
6649
|
"summary": "查询仓库云原生构建设置(openapi)",
|
|
8135
6650
|
"parameters": [
|
|
8136
6651
|
{
|
|
@@ -8167,21 +6682,8 @@
|
|
|
8167
6682
|
],
|
|
8168
6683
|
"repo.settings.cloudNativeBuild.put": [
|
|
8169
6684
|
{
|
|
8170
|
-
"security": [
|
|
8171
|
-
{
|
|
8172
|
-
"BearerAuth": []
|
|
8173
|
-
}
|
|
8174
|
-
],
|
|
8175
6685
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
8176
|
-
"
|
|
8177
|
-
"application/json"
|
|
8178
|
-
],
|
|
8179
|
-
"produces": [
|
|
8180
|
-
"application/vnd.cnb.api+json"
|
|
8181
|
-
],
|
|
8182
|
-
"tags": [
|
|
8183
|
-
"GitSettings"
|
|
8184
|
-
],
|
|
6686
|
+
"operationId": "PutPipelineSettings",
|
|
8185
6687
|
"summary": "更新仓库云原生构建设置(openapi)",
|
|
8186
6688
|
"parameters": [
|
|
8187
6689
|
{
|
|
@@ -8224,19 +6726,8 @@
|
|
|
8224
6726
|
],
|
|
8225
6727
|
"repo.settings.pullRequest.get": [
|
|
8226
6728
|
{
|
|
8227
|
-
"security": [
|
|
8228
|
-
{
|
|
8229
|
-
"BearerAuth": []
|
|
8230
|
-
}
|
|
8231
|
-
],
|
|
8232
6729
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
8233
|
-
"
|
|
8234
|
-
"produces": [
|
|
8235
|
-
"application/vnd.cnb.api+json"
|
|
8236
|
-
],
|
|
8237
|
-
"tags": [
|
|
8238
|
-
"GitSettings"
|
|
8239
|
-
],
|
|
6730
|
+
"operationId": "GetPullRequestSettings",
|
|
8240
6731
|
"summary": "查询仓库合并请求设置(openapi)",
|
|
8241
6732
|
"parameters": [
|
|
8242
6733
|
{
|
|
@@ -8273,21 +6764,8 @@
|
|
|
8273
6764
|
],
|
|
8274
6765
|
"repo.settings.pullRequest.put": [
|
|
8275
6766
|
{
|
|
8276
|
-
"security": [
|
|
8277
|
-
{
|
|
8278
|
-
"BearerAuth": []
|
|
8279
|
-
}
|
|
8280
|
-
],
|
|
8281
6767
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
8282
|
-
"
|
|
8283
|
-
"application/json"
|
|
8284
|
-
],
|
|
8285
|
-
"produces": [
|
|
8286
|
-
"application/vnd.cnb.api+json"
|
|
8287
|
-
],
|
|
8288
|
-
"tags": [
|
|
8289
|
-
"GitSettings"
|
|
8290
|
-
],
|
|
6768
|
+
"operationId": "PutPullRequestSettings",
|
|
8291
6769
|
"summary": "设置仓库推送设置(openapi)",
|
|
8292
6770
|
"parameters": [
|
|
8293
6771
|
{
|
|
@@ -8330,19 +6808,8 @@
|
|
|
8330
6808
|
],
|
|
8331
6809
|
"repo.settings.pushLimit.get": [
|
|
8332
6810
|
{
|
|
8333
|
-
"security": [
|
|
8334
|
-
{
|
|
8335
|
-
"BearerAuth": []
|
|
8336
|
-
}
|
|
8337
|
-
],
|
|
8338
6811
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
8339
|
-
"
|
|
8340
|
-
"produces": [
|
|
8341
|
-
"application/vnd.cnb.api+json"
|
|
8342
|
-
],
|
|
8343
|
-
"tags": [
|
|
8344
|
-
"GitSettings"
|
|
8345
|
-
],
|
|
6812
|
+
"operationId": "GetPushLimitSettings",
|
|
8346
6813
|
"summary": "查询仓库推送设置(openapi)",
|
|
8347
6814
|
"parameters": [
|
|
8348
6815
|
{
|
|
@@ -8379,21 +6846,8 @@
|
|
|
8379
6846
|
],
|
|
8380
6847
|
"repo.settings.pushLimit.put": [
|
|
8381
6848
|
{
|
|
8382
|
-
"security": [
|
|
8383
|
-
{
|
|
8384
|
-
"BearerAuth": []
|
|
8385
|
-
}
|
|
8386
|
-
],
|
|
8387
6849
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
8388
|
-
"
|
|
8389
|
-
"application/json"
|
|
8390
|
-
],
|
|
8391
|
-
"produces": [
|
|
8392
|
-
"application/vnd.cnb.api+json"
|
|
8393
|
-
],
|
|
8394
|
-
"tags": [
|
|
8395
|
-
"GitSettings"
|
|
8396
|
-
],
|
|
6850
|
+
"operationId": "PutPushLimitSettings",
|
|
8397
6851
|
"summary": "设置仓库推送设置(openapi)",
|
|
8398
6852
|
"parameters": [
|
|
8399
6853
|
{
|
|
@@ -8436,23 +6890,8 @@
|
|
|
8436
6890
|
],
|
|
8437
6891
|
"repo.stars.get": [
|
|
8438
6892
|
{
|
|
8439
|
-
"security": [
|
|
8440
|
-
{
|
|
8441
|
-
"BearerAuth": []
|
|
8442
|
-
}
|
|
8443
|
-
],
|
|
8444
6893
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-basic-info:r",
|
|
8445
|
-
"
|
|
8446
|
-
"application/json"
|
|
8447
|
-
],
|
|
8448
|
-
"produces": [
|
|
8449
|
-
"application/json",
|
|
8450
|
-
"application/vnd.cnb.api+json",
|
|
8451
|
-
"application/vnd.cnb.web+json"
|
|
8452
|
-
],
|
|
8453
|
-
"tags": [
|
|
8454
|
-
"Starring"
|
|
8455
|
-
],
|
|
6894
|
+
"operationId": "ListStarUsers",
|
|
8456
6895
|
"summary": "获取指定仓库的star用户列表",
|
|
8457
6896
|
"parameters": [
|
|
8458
6897
|
{
|
|
@@ -8504,23 +6943,8 @@
|
|
|
8504
6943
|
],
|
|
8505
6944
|
"repo.topActivityUsers.list": [
|
|
8506
6945
|
{
|
|
8507
|
-
"security": [
|
|
8508
|
-
{
|
|
8509
|
-
"BearerAuth": []
|
|
8510
|
-
}
|
|
8511
|
-
],
|
|
8512
6946
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-base-info:r",
|
|
8513
|
-
"
|
|
8514
|
-
"application/json"
|
|
8515
|
-
],
|
|
8516
|
-
"produces": [
|
|
8517
|
-
"application/json",
|
|
8518
|
-
"application/vnd.cnb.api+json",
|
|
8519
|
-
"application/vnd.cnb.web+json"
|
|
8520
|
-
],
|
|
8521
|
-
"tags": [
|
|
8522
|
-
"Collaborators"
|
|
8523
|
-
],
|
|
6947
|
+
"operationId": "TopContributors",
|
|
8524
6948
|
"summary": "获取 top 贡献用户",
|
|
8525
6949
|
"parameters": [
|
|
8526
6950
|
{
|
|
@@ -8555,22 +6979,8 @@
|
|
|
8555
6979
|
],
|
|
8556
6980
|
"repo.upload.files.post": [
|
|
8557
6981
|
{
|
|
8558
|
-
"security": [
|
|
8559
|
-
{
|
|
8560
|
-
"BearerAuth": []
|
|
8561
|
-
}
|
|
8562
|
-
],
|
|
8563
6982
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
8564
|
-
"
|
|
8565
|
-
"application/json"
|
|
8566
|
-
],
|
|
8567
|
-
"produces": [
|
|
8568
|
-
"application/json",
|
|
8569
|
-
"application/vnd.cnb.web+json"
|
|
8570
|
-
],
|
|
8571
|
-
"tags": [
|
|
8572
|
-
"Assets"
|
|
8573
|
-
],
|
|
6983
|
+
"operationId": "UploadFiles",
|
|
8574
6984
|
"summary": "发起一个上传 files(issue,pr 及其评论中文档,压缩包等)的请求,返回上传 cos 的 url 和 form 内容",
|
|
8575
6985
|
"parameters": [
|
|
8576
6986
|
{
|
|
@@ -8605,22 +7015,8 @@
|
|
|
8605
7015
|
],
|
|
8606
7016
|
"repo.upload.imgs.post": [
|
|
8607
7017
|
{
|
|
8608
|
-
"security": [
|
|
8609
|
-
{
|
|
8610
|
-
"BearerAuth": []
|
|
8611
|
-
}
|
|
8612
|
-
],
|
|
8613
7018
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
8614
|
-
"
|
|
8615
|
-
"application/json"
|
|
8616
|
-
],
|
|
8617
|
-
"produces": [
|
|
8618
|
-
"application/json",
|
|
8619
|
-
"application/vnd.cnb.web+json"
|
|
8620
|
-
],
|
|
8621
|
-
"tags": [
|
|
8622
|
-
"Assets"
|
|
8623
|
-
],
|
|
7019
|
+
"operationId": "UploadImgs",
|
|
8624
7020
|
"summary": "发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容",
|
|
8625
7021
|
"parameters": [
|
|
8626
7022
|
{
|
|
@@ -8655,22 +7051,8 @@
|
|
|
8655
7051
|
],
|
|
8656
7052
|
"repo.upload.releases.post": [
|
|
8657
7053
|
{
|
|
8658
|
-
"security": [
|
|
8659
|
-
{
|
|
8660
|
-
"BearerAuth": []
|
|
8661
|
-
}
|
|
8662
|
-
],
|
|
8663
7054
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-contents:rw",
|
|
8664
|
-
"
|
|
8665
|
-
"application/json"
|
|
8666
|
-
],
|
|
8667
|
-
"produces": [
|
|
8668
|
-
"application/json",
|
|
8669
|
-
"application/vnd.cnb.web+json"
|
|
8670
|
-
],
|
|
8671
|
-
"tags": [
|
|
8672
|
-
"Assets"
|
|
8673
|
-
],
|
|
7055
|
+
"operationId": "UploadReleases",
|
|
8674
7056
|
"summary": "发起一个上传 release 附件的请求,返回上传 cos 的 url 和 form 内容",
|
|
8675
7057
|
"parameters": [
|
|
8676
7058
|
{
|
|
@@ -8712,23 +7094,8 @@
|
|
|
8712
7094
|
],
|
|
8713
7095
|
"repo.workspace.detail.get": [
|
|
8714
7096
|
{
|
|
8715
|
-
"security": [
|
|
8716
|
-
{
|
|
8717
|
-
"BearerAuth": []
|
|
8718
|
-
}
|
|
8719
|
-
],
|
|
8720
7097
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-cnb-detail:r",
|
|
8721
|
-
"
|
|
8722
|
-
"application/json"
|
|
8723
|
-
],
|
|
8724
|
-
"produces": [
|
|
8725
|
-
"application/json",
|
|
8726
|
-
"application/vnd.cnb.api+json",
|
|
8727
|
-
"application/vnd.cnb.web+json"
|
|
8728
|
-
],
|
|
8729
|
-
"tags": [
|
|
8730
|
-
"Workspace"
|
|
8731
|
-
],
|
|
7098
|
+
"operationId": "GetWorkspaceDetail",
|
|
8732
7099
|
"summary": "根据流水线sn查询云原生开发访问地址",
|
|
8733
7100
|
"parameters": [
|
|
8734
7101
|
{
|
|
@@ -8757,5 +7124,584 @@
|
|
|
8757
7124
|
"path": "/{repo}/-/workspace/detail/{sn}",
|
|
8758
7125
|
"method": "get"
|
|
8759
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
|
+
}
|
|
8760
7706
|
]
|
|
8761
7707
|
}
|