mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-26 13:51:16 +02:00
Add: series endpoints
This commit is contained in:
parent
da6afc7664
commit
e85fd0835d
@ -34,6 +34,14 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
pathSeriesId:
|
||||||
|
name: id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The ID of the series.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: uuid
|
||||||
pathPodcastId:
|
pathPodcastId:
|
||||||
name: id
|
name: id
|
||||||
in: path
|
in: path
|
||||||
@ -3531,3 +3539,70 @@ paths:
|
|||||||
format: binary
|
format: binary
|
||||||
'404':
|
'404':
|
||||||
$ref: '#/components/responses/notFound'
|
$ref: '#/components/responses/notFound'
|
||||||
|
/api/series/{id}:
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/pathSeriesId'
|
||||||
|
get:
|
||||||
|
operationId: getSeriesById
|
||||||
|
summary: Get series by ID
|
||||||
|
description: Get a series by its ID. This endpoint returns all of the information needed for the series page.
|
||||||
|
tags:
|
||||||
|
- Series
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/seriesDisplayObject'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/notFound'
|
||||||
|
patch:
|
||||||
|
operationId: updateSeriesById
|
||||||
|
summary: Update series by ID
|
||||||
|
description: Update a series by its ID. The request body should contain only the fields that need to be updated. If a field should be cleared, the field should exist and have a value of `null`. At least one field must be present.
|
||||||
|
tags:
|
||||||
|
- Series
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
$ref: '#/components/schemas/title'
|
||||||
|
descrption:
|
||||||
|
$ref: '#/components/schemas/description'
|
||||||
|
imageUrl:
|
||||||
|
$ref: '#/components/schemas/imageUrl'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/seriesDisplayObject'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/badRequest'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/responses/forbidden'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/notFound'
|
||||||
|
delete:
|
||||||
|
operationId: deleteSeriesById
|
||||||
|
summary: Remove series by ID
|
||||||
|
description: Remove the series and associated entries from the database. This does not delete any files from the filesystem.
|
||||||
|
tags:
|
||||||
|
- Series
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/seriesDisplayObject'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/responses/forbidden'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/responses/notFound'
|
||||||
|
Loading…
Reference in New Issue
Block a user