From 06467fc741ef1fff86feeacce2e519a8b4d883f4 Mon Sep 17 00:00:00 2001 From: sct Date: Fri, 14 Jan 2022 01:04:40 +0000 Subject: [PATCH] deploy: e0b6abe4796f5a324c0ff78cff317fcaead671f1 --- overseerr-api.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/overseerr-api.yml b/overseerr-api.yml index 213ef1d70..211f029cd 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -1231,6 +1231,22 @@ components: type: string userToken: type: string + GotifySettings: + type: object + properties: + enabled: + type: boolean + example: false + types: + type: number + example: 2 + options: + type: object + properties: + url: + type: string + token: + type: string LunaSeaSettings: type: object properties: @@ -2681,6 +2697,52 @@ paths: responses: '204': description: Test notification attempted + /settings/notifications/gotify: + get: + summary: Get Gotify notification settings + description: Returns current Gotify notification settings in a JSON object. + tags: + - settings + responses: + '200': + description: Returned Gotify settings + content: + application/json: + schema: + $ref: '#/components/schemas/GotifySettings' + post: + summary: Update Gotify notification settings + description: Update Gotify notification settings with the provided values. + tags: + - settings + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GotifySettings' + responses: + '200': + description: 'Values were sucessfully updated' + content: + application/json: + schema: + $ref: '#/components/schemas/GotifySettings' + /settings/notifications/gotify/test: + post: + summary: Test Gotify settings + description: Sends a test notification to the Gotify agent. + tags: + - settings + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GotifySettings' + responses: + '204': + description: Test notification attempted /settings/notifications/slack: get: summary: Get Slack notification settings