Add: EmailController to root.yaml

This commit is contained in:
Nicholas Wallace 2024-07-04 03:45:04 +00:00
parent e60a91379a
commit b8e17de8b4
2 changed files with 22 additions and 2 deletions

View file

@ -27,12 +27,16 @@ paths:
get:
description: Get email settings
operationId: getEmailSettings
tags:
- Email
responses:
200:
$ref: '#/components/responses/email200'
patch:
summary: Update email settings
operationId: updateEmailSettings
tags:
- Email
requestBody:
required: true
content:
@ -46,6 +50,8 @@ paths:
post:
summary: Send test email
operationId: sendTestEmail
tags:
- Email
responses:
200:
description: Successful response
@ -53,6 +59,8 @@ paths:
post:
summary: Update e-reader devices
operationId: updateEReaderDevices
tags:
- Email
requestBody:
required: true
content:
@ -63,7 +71,7 @@ paths:
ereaderDevices:
type: array
items:
$ref: '#/components/schemas/EreaderDeviceObject'
$ref: '../objects/settings/EmailSettings.yaml#/components/schemas/EreaderDeviceObject'
responses:
200:
$ref: '#/components/responses/ereader200'
@ -73,6 +81,8 @@ paths:
post:
summary: Send ebook to device
operationId: sendEBookToDevice
tags:
- Email
requestBody:
required: true
content:
@ -83,7 +93,7 @@ paths:
libraryItemId:
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItemId'
deviceName:
$ref: '../objects/schemas/EmailSettings.yaml#/components/schemas/ereaderName'
$ref: '../objects/settings/EmailSettings.yaml#/components/schemas/ereaderName'
responses:
200:
description: Successful response