diff --git a/docs/controllers/EmailController.yaml b/docs/controllers/EmailController.yaml index e0025c14..3a7d990e 100644 --- a/docs/controllers/EmailController.yaml +++ b/docs/controllers/EmailController.yaml @@ -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 diff --git a/docs/root.yaml b/docs/root.yaml index ee9d7b9c..e3caedaa 100644 --- a/docs/root.yaml +++ b/docs/root.yaml @@ -21,6 +21,14 @@ paths: $ref: './controllers/AuthorController.yaml#/paths/~1api~1authors~1{id}~1image' /api/authors/{id}/match: $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: $ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries' /api/libraries/{id}: @@ -54,5 +62,7 @@ tags: description: Library endpoints - name: Series description: Series endpoints + - name: Email + description: Email endpoints - name: Notification description: Notifications endpoints