本项目提供了一系列与 GitLab 交互的 API 接口,涵盖项目管理、组织项目管理、标签管理等功能,帮助开发者更高效地使用 GitLab 服务。
在使用这些 API 之前,你需要在运行服务器之前设置以下环境变量:
GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token
GITLAB_API_URL=your_gitlab_api_url # 默认: https://gitlab.com/api/v4
GITLAB_READ_ONLY_MODE=true # 可选: 启用只读模式
/projects/{project_id}include_subgroups:是否包含子组中的项目,默认为falsestatistics:是否返回项目统计信息,可选值:true 或 false/projects{
"name": string,
"description": string,
"visibility": string,
"namespace": string,
"ssh_url": string,
"http_url": string,
"auto_clone": boolean
}
/groups/{group_id}/projectsinclude_subgroups:是否包含子组中的项目,默认为falsesearch:搜索关键字,按项目名称或描述筛选archived:是否包括已存档的项目,默认为false/projects/{project_id}/labelswith_counts:是否包含标签的 Issue 和合并请求数量,默认为falseinclude_ancestor_groups:是否包括祖先组中的标签,默认为false本项目采用 MIT License。