Open API

API 服务地址

服务请求地址为 api.cnb.cool

API 文档

API 文档地址 api.cnb.cool

调用方式

Header 头信息

其中${token}访问令牌

请求示例

curl 请求示例

1curl  -X "GET" \
2      -H "accept: application/json" \
3      -H "Authorization: Bearer 1Z00000000000000000000000vA" \
4  "api.cnb.cool/user/groups?page=1&page_size=10"

返回示例

 1[
 2  {
 3    "id": 1816756487609032700,
 4    "name": "test",
 5    "remark": "测试组织",
 6    "description": "",
 7    "site": "",
 8    "email": "",
 9    "freeze": false,
10    "wechat_mp": "hello-world",
11    "created_at": "2024-07-26T08:44:35Z",
12    "updated_at": "2024-08-13T07:32:13Z",
13    "follow_count": 0,
14    "member_count": 4,
15    "all_member_count": 4,
16    "sub_group_count": 5,
17    "sub_repo_count": 7,
18    "sub_mission_count": 1,
19    "all_sub_group_count": 13,
20    "all_sub_repo_count": 12,
21    "all_sub_mission_count": 1,
22    "has_sub_group": true,
23    "path": "test",
24    "access_role": "Owner"
25  }
26]