audiobookshelf/docs/objects/entities/Author.yaml

87 lines
3.5 KiB
YAML
Raw Normal View History

2024-03-31 22:47:14 +00:00
components:
schemas:
authorId:
type: string
description: The ID of the author.
format: uuid
example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b
2024-04-20 14:55:57 -05:00
authorAsin:
2024-03-31 22:47:14 +00:00
description: The Audible identifier (ASIN) of the author. Will be null if unknown. Not the Amazon identifier.
2024-05-18 22:25:52 +00:00
type: string
2024-03-31 22:47:14 +00:00
nullable: true
example: B000APZOQA
authorName:
description: The name of the author.
type: string
example: Terry Goodkind
2024-05-18 22:25:52 +00:00
authorDescription:
description: The new description of the author.
type: string
nullable: true
example: Terry Goodkind is a #1 New York Times Bestselling Author and creator of the critically acclaimed masterwork, The Sword of Truth. He has written 30+ major, bestselling novels, has been published in more than 20 languages world-wide, and has sold more than 26 Million books. The Sword of Truth is a revered literary tour de force, comprised of 17 volumes, borne from over 25 years of dedicated writing.
authorImagePath:
description: The absolute path for the author image. This will be in the `metadata/` directory. Will be null if there is no image.
type: string
nullable: true
example: /metadata/authors/aut_z3leimgybl7uf3y4ab.jpg
2024-03-31 22:47:14 +00:00
authorSeries:
type: object
description: Series and the included library items that an author has written.
properties:
id:
$ref: './Series.yaml#/components/schemas/seriesId'
name:
$ref: './Series.yaml#/components/schemas/seriesName'
items:
description: The items in the series. Each library item's media's metadata will have a `series` attribute, a `Series Sequence`, which is the matching series.
type: array
items:
2024-05-18 22:25:52 +00:00
$ref: '../LibraryItem.yaml#/components/schemas/libraryItemMinified'
2024-03-31 22:47:14 +00:00
author:
2024-05-14 04:01:44 +00:00
description: An author object which includes a description and image path. The library items and series associated with the author are optionally included.
2024-03-31 22:47:14 +00:00
type: object
properties:
id:
$ref: '#/components/schemas/authorId'
asin:
2024-04-20 14:55:57 -05:00
$ref: '#/components/schemas/authorAsin'
2024-03-31 22:47:14 +00:00
name:
$ref: '#/components/schemas/authorName'
description:
2024-05-18 22:25:52 +00:00
$ref: '#/components/schemas/authorDescription'
2024-03-31 22:47:14 +00:00
imagePath:
2024-05-18 22:25:52 +00:00
$ref: '#/components/schemas/authorImagePath'
2024-03-31 22:47:14 +00:00
addedAt:
$ref: '../../schemas.yaml#/components/schemas/addedAt'
updatedAt:
$ref: '../../schemas.yaml#/components/schemas/updatedAt'
2024-05-14 04:01:44 +00:00
libraryItems:
description: The items associated with the author
type: array
items:
$ref: '../LibraryItem.yaml#/components/schemas/libraryItemMinified'
series:
description: The series associated with the author
type: array
items:
$ref: '#/components/schemas/authorSeries'
2024-03-31 22:47:14 +00:00
authorMinified:
type: object
description: Minified author object which only contains the author name and ID.
properties:
id:
$ref: '#/components/schemas/authorId'
name:
$ref: '#/components/schemas/authorName'
authorExpanded:
type: object
description: The author schema with the total number of books in the library.
allOf:
- $ref: '#/components/schemas/author'
- type: object
properties:
numBooks:
description: The number of books associated with the author in the library.
type: integer
2024-05-06 02:20:12 +00:00
example: 1