feat(notifications): add pushover integration (#574)

* feat(notifications): add pushover integration

* refactor(pushover): group i18n translations
This commit is contained in:
Jakob Ankarhem
2021-01-05 05:19:25 +01:00
committed by GitHub
parent 67f2b57f00
commit ee5d0181fc
10 changed files with 558 additions and 0 deletions

View File

@@ -871,6 +871,26 @@ components:
type: string
chatId:
type: string
PushoverSettings:
type: object
properties:
enabled:
type: boolean
example: false
types:
type: number
example: 2
options:
type: object
properties:
accessToken:
type: string
userToken:
type: string
priority:
type: number
sound:
type: string
NotificationEmailSettings:
type: object
properties:
@@ -1720,6 +1740,52 @@ paths:
responses:
'204':
description: Test notification attempted
/settings/notifications/pushover:
get:
summary: Return current pushover notification settings
description: Returns current pushover notification settings in JSON format
tags:
- settings
responses:
'200':
description: Returned pushover settings
content:
application/json:
schema:
$ref: '#/components/schemas/PushoverSettings'
post:
summary: Update pushover notification settings
description: Update current pushover notification settings with provided values
tags:
- settings
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PushoverSettings'
responses:
'200':
description: 'Values were sucessfully updated'
content:
application/json:
schema:
$ref: '#/components/schemas/PushoverSettings'
/settings/notifications/pushover/test:
post:
summary: Test the provided pushover settings
description: Sends a test notification to the pushover agent
tags:
- settings
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PushoverSettings'
responses:
'204':
description: Test notification attempted
/settings/notifications/slack:
get:
summary: Return current slack notification settings