gitlhub&lab几个常用的API
# GithubAPI
# 获取列表
https://api.github.com/orgs/xxx/repos?per_page=100&page=1
//https://api.github.com/orgs/bdp-blk/repos?per_page=100&page=1
///api/v4/groups/bdp-fe%2fbdp-tpl/projects?simple=true&private_token=xxx
1
2
3
2
3
# 获取tag
https://api.github.com/repos/xxx/page-form/tags
// https://api.github.com/repos/bdp-blk/page-form/tags
// /api/v4/projects/14344/repository/tags?private_token=xxx
1
2
3
2
3
# GitlabAPI
# 普通项目
http://gitlab.xxx.com/api/v4/projects?private_token=dve3YxQY3_mL4VHqAjaGxx
http://gitlab.xxx.com/api/v4/projects?private_token=dve3YxQY3_mL4VHqAjaGxx&simple=true
1
2
2
# 获取组内的子项目
http://gitlab.xx.com/api/v4/groups/bdp-fe%2fbdp-block?private_token=dve3YxQY3_mL4VHqAjaGxx&simple=true
1
# 单独获取项目
http://gitlab.xx.com/api/v4/groups/bdp-fe%2fbdp-block/projects?private_token=dve3YxQY3_mL4VHqAjaGxx&simple=true
1
# tag的获取
http://gitlab.xxx.com/api/v4/projects/14344/repository/tags?private_token=xxx
1
# 参考链接
https://docs.gitlab.com/ee/api/
https://docs.github.com/en/rest
上次更新: 2022/04/15, 05:41:30