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

View File

@ -21,6 +21,14 @@ paths:
$ref: './controllers/AuthorController.yaml#/paths/~1api~1authors~1{id}~1image' $ref: './controllers/AuthorController.yaml#/paths/~1api~1authors~1{id}~1image'
/api/authors/{id}/match: /api/authors/{id}/match:
$ref: './controllers/AuthorController.yaml#/paths/~1api~1authors~1{id}~1match' $ref: './controllers/AuthorController.yaml#/paths/~1api~1authors~1{id}~1match'
/api/emails:
$ref: './controllers/EmailController.yaml#/paths/~1api~1emails'
/api/emails/test:
$ref: './controllers/EmailController.yaml#/paths/~1api~1emails~1test'
/api/emails/ereader-devices:
$ref: './controllers/EmailController.yaml#/paths/~1api~1emails~1ereader-devices'
/api/emails/send-ebook-to-device:
$ref: './controllers/EmailController.yaml#/paths/~1api~1emails~1send-ebook-to-device'
/api/libraries: /api/libraries:
$ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries' $ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries'
/api/libraries/{id}: /api/libraries/{id}:
@ -54,5 +62,7 @@ tags:
description: Library endpoints description: Library endpoints
- name: Series - name: Series
description: Series endpoints description: Series endpoints
- name: Email
description: Email endpoints
- name: Notification - name: Notification
description: Notifications endpoints description: Notifications endpoints