服务接入点与授权信息
产品 | 资源 | 所需权限 |
项目协作 | 标签 | 只读 |
请求语法
Region版
GET https://{domain}/oapi/v1/projex/projects/{id}/labels请求头
参数 | 类型 | 是否必填 | 描述 | 示例值 |
x-yunxiao-token | string | 是 | 个人访问令牌。 | pt-0fh3****0fbG_35af****0484 |
请求参数
参数 | 类型 | 位置 | 是否必填 | 描述 | 示例值 |
id | string | path | 是 | 项目唯一标识。 | |
page | integer | query | 否 | 页码。 | |
perPage | integer | query | 否 | 每页数据条数。 |
请求示例
Region版
curl -X 'GET' \
'https://{domain}/oapi/v1/projex/projects/{id}/labels?page={page}&perPage={perPage}' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'返回参数
参数 | 类型 | 描述 | 示例值 |
| - | array | ||
| - | object | ||
color | string | 颜色。 | test |
id | string | id。 | id-xxx |
name | string | 名称。 | test |
返回示例
[
{
"color": "test",
"id": "id-xxx",
"name": "test"
}
]响应头
参数 | 描述 | 示例值 |
x-next-page | 下一页。 | |
x-page | 当前页。 | |
x-per-page | 每页数据条数。 | |
x-prev-page | 上一页。 | |
x-total | 总数据量。 | |
x-total-pages | 总分页数。 |
错误码
访问错误码中心查看 API 相关错误码。