调用GetRepoWebhook查询仓库触发器列表。
请求信息
请求行RequestLine
GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1
请求行参数URI Param
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
RepoNamespace | String | 是 | 命名空间名称 |
RepoName | String | 是 | 仓库名称 |
特有请求头RequestHead
无
请求体RequestBody
无
返回信息
返回行ResponseLine
HTTP/1.1 200 OK
特有返回头ResponseHead
无
返回体ResponseBody
{
"data": {
"webhooks":[
{
"webhookId": Long,
"triggerTag": String,
"webhookName": String,
"triggerType": String,
"webhookUrl": String
}
]
},
"requestId": String
}
返回体解析
名称 | 类型 | 描述 |
---|---|---|
webhookId | Long | webhook ID |
triggerTag | String | 触发Tag |
webhookName | String | webhook名 |
triggerType | String | 触发方式 |
webhookUrl | String | 触发url |
RequestId | String | 唯一请求ID |
示例
请求示例
GET /repos/[RepoNamespace]/[RepoName]/webhooks HTTP/1.1
<公共请求头>
返回示例
HTTP/1.1 200 OK
<公共响应头>
{
"data": {
"webhooks":[
{
"webhookId": 39726,
"triggerTag": "",
"webhookName": "justForTest",
"triggerType": "ALL",
"webhookUrl": "https://www.****.com"
}
]
},
"requestId": "A86AB63A-758B-4FD9-9CB1-1421083A2EF5"
}