mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
96 lines
2.7 KiB
YAML
96 lines
2.7 KiB
YAML
components:
|
|
schemas:
|
|
emailSettings:
|
|
type: string
|
|
description: The field to sort by from the request.
|
|
example: 'media.metadata.title'
|
|
responses:
|
|
email200:
|
|
description: Successful response - Email
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../objects/settings/EmailSettings.yaml#/components/schemas/EmailSettings'
|
|
ereader200:
|
|
description: Successful response - Ereader
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
ereaderDevices:
|
|
type: array
|
|
items:
|
|
$ref: '../objects/settings/EmailSettings.yaml#/components/schemas/EreaderDeviceObject'
|
|
paths:
|
|
/api/emails:
|
|
get:
|
|
description: Get email settings
|
|
operationId: getEmailSettings
|
|
responses:
|
|
200:
|
|
$ref: '#/components/responses/email200'
|
|
patch:
|
|
summary: Update email settings
|
|
operationId: updateEmailSettings
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmailSettings'
|
|
responses:
|
|
200:
|
|
$ref: '#/components/responses/email200'
|
|
/api/emails/test:
|
|
post:
|
|
summary: Send test email
|
|
operationId: sendTestEmail
|
|
responses:
|
|
200:
|
|
description: Successful response
|
|
/api/emails/ereader-devices:
|
|
post:
|
|
summary: Update e-reader devices
|
|
operationId: updateEReaderDevices
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
ereaderDevices:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/EreaderDeviceObject'
|
|
responses:
|
|
200:
|
|
$ref: '#/components/responses/ereader200'
|
|
400:
|
|
description: Invalid payload
|
|
/api/emails/send-ebook-to-device:
|
|
post:
|
|
summary: Send ebook to device
|
|
operationId: sendEBookToDevice
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
libraryItemId:
|
|
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItemId'
|
|
deviceName:
|
|
$ref: '../objects/schemas/EmailSettings.yaml#/components/schemas/ereaderName'
|
|
responses:
|
|
200:
|
|
description: Successful response
|
|
400:
|
|
description: Invalid request
|
|
403:
|
|
description: Forbidden
|
|
404:
|
|
description: Not found
|