Applications API
Applications API
在 GitLab 10.5 中引入 .
应用程序 API 在以下 OAuth 应用程序上运行:
- .
注意:只有管理员用户才能使用 Applications API.
通过发布 JSON 有效负载来创建应用程序.
Parameters:
请求示例:
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "name=MyApplication&redirect_uri=http://redirect.uri&scopes=" "https://gitlab.example.com/api/v4/applications"
响应示例:
列出所有注册的应用程序.
GET /applications
响应示例:
注意:此 API 不会公开secret
值.
删除特定的应用程序.
如果请求成功,则返回204
.
Attribute | Type | Required | Description |
---|---|---|---|
id |
integer | yes | 应用程序的 ID(不是 application_id). |
请求示例: