获取git-code代码仓 - ShowGitCodeRepository
功能介绍
获取git-code代码仓
调用方法
请参见如何调用API。
授权信息
当前API调用无需身份策略权限。
URI
GET /v1/code/git-code/{endpoint_id}/repositories
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
endpoint_id | 是 | String | 参数解释: 拓展点id。 约束限制: 不涉及。 取值范围: 数字、小写字母组合。 |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
page | 否 | Integer | 参数解释: 分页页码, 表示从此页开始查询。 约束限制: 不涉及。 取值范围: page大于等于1。 默认取值: 1 |
page_size | 否 | Integer | 参数解释: 每页显示的条目数量。 约束限制: 正整数。 取值范围: page_size小于等于100。 默认取值: 10 |
search | 否 | String | 参数解释: 查询过滤条件。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 |
limit | 否 | Integer | 参数解释: 每页显示的条目数量,limit大于0小于等于100。 约束限制: 不涉及。 取值范围: 只能使用数字,大于0小于等于100。 默认取值: 10 |
offset | 否 | Integer | 参数解释: 分页页码,表示从此页开始查询。 约束限制: 不涉及。 取值范围: 只能使用数字,大于等于0。 默认取值: 0 |
ids | 否 | String | 参数解释: 代码仓id。 约束限制: 不涉及。 取值范围: 不涉及。 |
请求参数
无
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
result | Array of GitCodeRepository objects | 结果 |
error | Object | 返回错误信息 |
status | String | 返回状态信息 |
请求示例
GET https://{endpoint}/v1/code/git-code/{endpoint_id}/repositories 响应示例
状态码:200
OK
{
"result" : [ {
"id" : 4267732,
"uuid" : null,
"name" : "CodeArtsBuild",
"http_url" : "https://gitcode.com/chopinwang/CodeArtsBuild",
"git_url" : "https://gitcode.com/chopinwang/CodeArtsBuild.git"
} ],
"error" : null,
"status" : "success"
} 状态码
状态码 | 描述 |
|---|---|
200 | OK |
错误码
请参见错误码。

