Commit 59451ea1 authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch 'ld-docs-discord-api' into 'master'

Add missing API docs for Discord integration

See merge request gitlab-org/gitlab!71422
parents db2d8cb5 e35d77ed
...@@ -467,6 +467,40 @@ Get Custom Issue Tracker integration settings for a project. ...@@ -467,6 +467,40 @@ Get Custom Issue Tracker integration settings for a project.
GET /projects/:id/integrations/custom-issue-tracker GET /projects/:id/integrations/custom-issue-tracker
``` ```
## Discord
Send notifications about project events to a Discord channel.
### Create/Edit Discord integration
Set Discord integration for a project.
```plaintext
PUT /projects/:id/integrations/discord
```
Parameters:
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `webhook` | string | true | Discord webhook. For example, `https://discord.com/api/webhooks/…` |
### Delete Discord integration
Delete Discord integration for a project.
```plaintext
DELETE /projects/:id/integrations/discord
```
### Get Discord integration settings
Get Discord integration settings for a project.
```plaintext
GET /projects/:id/integrations/discord
```
## Drone CI ## Drone CI
Drone is a Continuous Integration platform built on Docker, written in Go Drone is a Continuous Integration platform built on Docker, written in Go
......
...@@ -340,7 +340,7 @@ module API ...@@ -340,7 +340,7 @@ module API
required: true, required: true,
name: :webhook, name: :webhook,
type: String, type: String,
desc: 'Discord webhook. e.g. https://discordapp.com/api/webhooks/…' desc: 'Discord webhook. For example, https://discord.com/api/webhooks/…'
} }
], ],
'drone-ci' => [ 'drone-ci' => [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment