audiobookshelf/docs/controllers/LibraryController.yaml

91 lines
2.4 KiB
YAML
Raw Normal View History

2024-05-09 06:10:02 +00:00
components:
parameters:
libraryName:
name: name
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: The name of the library.
required: true
schema:
type: string
example: My Audiobooks
libraryFolders:
name: folders
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: The folders of the library. Only specify the fullPath.
required: true
schema:
type: array
items:
$ref: '../objects/Folder.yaml#/components/schemas/folder'
2024-05-12 07:01:46 +00:00
libraryDisplayOrder:
name: displayOrder
2024-05-12 18:09:00 +00:00
in: body
2024-05-12 07:01:46 +00:00
description: The display order of the library. Must be >= 1.
required: false
schema:
type: integer
minimum: 1
example: 1
2024-05-09 06:10:02 +00:00
libraryIcon:
name: icon
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: The icon of the library. See Library Icons for a list of possible icons.
required: false
schema:
type: string
example: 'audiobookshelf'
libraryMediaType:
name: mediaType
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: The type of media that the library contains. Must be `book` or `podcast`.
required: false
schema:
type: string
example: 'book'
libraryProvider:
name: provider
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: Preferred metadata provider for the library. See Metadata Providers for a list of possible providers.
required: false
schema:
type: string
example: 'audible'
librarySettings:
name: settings
2024-05-12 18:09:00 +00:00
in: body
2024-05-09 06:10:02 +00:00
description: The settings for the library.
required: false
schema:
$ref: '../objects/Library.yaml#/components/schemas/librarySettings'
2024-05-12 07:01:46 +00:00
libraryId:
name: id
2024-05-12 07:13:38 +00:00
in: path
2024-05-12 07:01:46 +00:00
description: The ID of the library.
required: true
schema:
type: string
format: uuid
example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b
librarySettings:
name: settings
2024-05-12 18:09:00 +00:00
in: body
2024-05-12 07:01:46 +00:00
description: The settings for the library.
required: false
schema:
$ref: '../objects/Library.yaml#/components/schemas/librarySettings'
responses:
2024-05-12 07:13:38 +00:00
library200:
description: Library found.
content:
application/json:
schema:
$ref: '../objects/Library.yaml#/components/schemas/library'
2024-05-12 07:01:46 +00:00
library404:
description: Library not found.
content:
text/html:
schema:
type: string
example: Library not found.