文档

查询代码库 Webhook 列表

该接口用于查询代码库的 Webhook 列表

请求方式GET/api/v3/projects/[ProjectId]/hooks

请求Action:ListRepositoryWebhook

请求 参数

参数名

类型

说明

是否必须

默认值

ProjectId

long

代码库 ID

Page

long

页数,最小为1

1

PageSize

long

每页条数,范围[1, 100]

20

返回 body :

{
    "RequestId": "",
    "Success":true,
 "Total": 1,
    "Result": [
  {
   "Id": 100,
   "Url": "http://example.com",
   "CreatedAt": "2020-11-13T10:50:32.167+08:00",
   "ProjectId": 500,
   "PushEvents": true,
   "MergeRequestsEvents": true,
   "TagPushEvents": true,
   "NoteEvents": true,
   "EnableSslVerification": true,
   "LastTestResult": "",
   "Description": ""
   "SecretToken": ""
  }
    ]
}

返回结果说明:

参数名

类型

说明

Id

long

Webhook Id

Url

string

Webhook url 回调地址

CreatedAt

string

创建时间

ProjectId

long

代码库 Id

PushEvents

boolean

分支推送事件

MergeRequestsEvents

boolean

合并请求事件

TagPushEvents

boolean

标签推送事件

NoteEvents

boolean

评论事件

EnableSslVerification

boolean

使用SSL认证

LastTestResult

string

最后执行结果

Description

string

描述

SecretToken

string

Webhook合法性验证Token

  • 本页导读 (0)
文档反馈