Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
111 additions
and 0 deletions.
- +1 −0 Makefile
- +22 −0 source/definitions.yaml
- +88 −0 source/incoming-webhooks.yaml
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,88 @@ | ||
'/teams/{team_id}/hooks/incoming/list': | ||
get: | ||
tags: | ||
- incoming-webhooks | ||
summary: Get incoming webhooks for the team | ||
paramaters: | ||
- name: team_id | ||
in: path | ||
description: Team ID of incoming webhooks to return | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: The list of incoming webhooks | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/definitions/IncomingWebhook | ||
'/teams/{team_id}/hooks/incoming/create': | ||
post: | ||
tags: | ||
- incoming-webhooks | ||
summary: Create a incoming webhook to team | ||
parameters: | ||
- name: team_id | ||
in: path | ||
description: Team ID the incoming webhook belong to | ||
required: true | ||
type: string | ||
- in: body | ||
name: body | ||
description: Abbreviated incoming webhook object | ||
required: true | ||
schema: | ||
type: object | ||
required: | ||
- channel_id | ||
properties: | ||
channel_id: | ||
type: string | ||
description: The ID of a public channel or private group that receives the webhook payloads | ||
display_name: | ||
type: string | ||
description: The display name for this incoming webhook | ||
description: | ||
type: string | ||
description: The description for this incoming webhook | ||
responses: | ||
'200': | ||
description: Incoming webhook created successfully | ||
schema: | ||
$ref: '#/definitions/IncomingWebhook | ||
'/teams/{team_id}/hooks/incoming/delete': | ||
post: | ||
tags: | ||
- incoming-webhooks | ||
summary: Delete a incoming webhook | ||
parameters: | ||
- name: team_id | ||
in: path | ||
description: Team ID of the incoming webhook | ||
required: true | ||
type: string | ||
- in: body | ||
name: body | ||
description: The incoming webhook id object | ||
required: true | ||
schema: | ||
type: object | ||
required: | ||
- id | ||
properties: | ||
id: | ||
type: string | ||
description: The ID of the incoming webhook to delete | ||
responses: | ||
'200': | ||
description: The incoming webhook id that was successfully deleted. | ||
schema: | ||
type: object | ||
required: | ||
- id | ||
properties: | ||
id: | ||
type: string | ||
description: The incoming webhook ID |