sct 4 years ago
parent 2e05c664b0
commit 19d2e5a773

@ -92,17 +92,12 @@ components:
UserSettings:
type: object
properties:
enableNotifications:
type: boolean
default: true
discordId:
type: string
telegramChatId:
region:
type: string
language:
type: string
telegramSendSilently:
type: boolean
required:
- enableNotifications
MainSettings:
type: object
properties:
@ -1201,12 +1196,6 @@ components:
type: string
priority:
type: number
NotificationSettings:
type: object
properties:
enabled:
type: boolean
example: true
NotificationEmailSettings:
type: object
properties:
@ -1559,20 +1548,30 @@ components:
UserSettingsNotifications:
type: object
properties:
enableNotifications:
notificationAgents:
type: number
example: 0
emailEnabled:
type: boolean
pgpKey:
type: string
nullable: true
discordEnabled:
type: boolean
default: true
discordId:
type: string
nullable: true
telegramEnabled:
type: boolean
telegramBotUsername:
type: string
nullable: true
telegramChatId:
type: string
nullable: true
telegramSendSilently:
type: boolean
nullable: true
required:
- enableNotifications
securitySchemes:
cookieAuth:
type: apiKey
@ -2306,37 +2305,6 @@ paths:
timestamp:
type: string
example: 2020-12-15T16:20:00.069Z
/settings/notifications:
get:
summary: Return notification settings
description: Returns current notification settings in a JSON object.
tags:
- settings
responses:
'200':
description: Returned settings
content:
application/json:
schema:
$ref: '#/components/schemas/NotificationSettings'
post:
summary: Update notification settings
description: Updates notification settings with the provided values.
tags:
- settings
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/NotificationSettings'
responses:
'200':
description: 'Values were sucessfully updated'
content:
application/json:
schema:
$ref: '#/components/schemas/NotificationSettings'
/settings/notifications/email:
get:
summary: Get email notification settings

Loading…
Cancel
Save