mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Fix: errors
This commit is contained in:
parent
955f6ffcff
commit
802e14adc6
2 changed files with 1 additions and 65 deletions
|
|
@ -185,66 +185,6 @@ paths:
|
||||||
$ref: '#/components/responses/library200'
|
$ref: '#/components/responses/library200'
|
||||||
'404':
|
'404':
|
||||||
$ref: '#/components/responses/library404'
|
$ref: '#/components/responses/library404'
|
||||||
/api/libraries/{id}/items:
|
|
||||||
parameters:
|
|
||||||
- name: id
|
|
||||||
in: path
|
|
||||||
description: The ID of the library.
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
|
|
||||||
get:
|
|
||||||
operationId: getLibraryItems
|
|
||||||
summary: Get all items in a library by ID on server
|
|
||||||
description: Get all items in a library by ID on server.
|
|
||||||
tags:
|
|
||||||
- Libraries
|
|
||||||
requestBody:
|
|
||||||
required: false
|
|
||||||
description: The filters to apply to the requested library items.
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
limit:
|
|
||||||
$ref: '../schemas.yaml#/components/schemas/limit'
|
|
||||||
page:
|
|
||||||
$ref: '../schemas.yaml#/components/schemas/page'
|
|
||||||
sort:
|
|
||||||
$ref: '#/components/schemas/librarySort'
|
|
||||||
desc:
|
|
||||||
$ref: '../schemas.yaml#/components/schemas/sortDesc'
|
|
||||||
filter:
|
|
||||||
$ref: '#/components/schemas/libraryFilter'
|
|
||||||
minified:
|
|
||||||
$ref: '../schemas.yaml#/components/schemas/minified'
|
|
||||||
collapseSeries:
|
|
||||||
$ref: '#/components/schemas/libraryCollapseSeries'
|
|
||||||
include:
|
|
||||||
$ref: '#/components/schemas/libraryInclude'
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: getLibraryItems OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
oneOf:
|
|
||||||
- type: array
|
|
||||||
items:
|
|
||||||
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItem'
|
|
||||||
- $ref: '../schemas.yaml#/components/schemas/total'
|
|
||||||
- $ref: '../schemas.yaml#/components/schemas/limit'
|
|
||||||
- $ref: '../schemas.yaml#/components/schemas/page'
|
|
||||||
- $ref: '#/components/schemas/sortBy'
|
|
||||||
- $ref: '#/components/schemas/sortDesc'
|
|
||||||
- $ref: '#/components/schemas/filterBy'
|
|
||||||
- $ref: '../objects/mediaTypes/media.yaml#/components/schemas/mediaType'
|
|
||||||
- $ref: '../schemas.yaml#/components/schemas/minified'
|
|
||||||
- $ref: '#/components/schemas/collapseSeries'
|
|
||||||
- $ref: '#/components/schemas/libraryInclude'
|
|
||||||
'404':
|
|
||||||
$ref: '#/components/responses/library404'
|
|
||||||
/api/libraries/{id}/issues:
|
/api/libraries/{id}/issues:
|
||||||
parameters:
|
parameters:
|
||||||
- name: id
|
- name: id
|
||||||
|
|
@ -318,7 +258,7 @@ paths:
|
||||||
results:
|
results:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItem'
|
$ref: '../objects/LibraryItem.yaml#/components/schemas/libraryItemBase'
|
||||||
total:
|
total:
|
||||||
$ref: '../schemas.yaml#/components/schemas/total'
|
$ref: '../schemas.yaml#/components/schemas/total'
|
||||||
limit:
|
limit:
|
||||||
|
|
|
||||||
|
|
@ -36,28 +36,24 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
example: 100
|
example: 100
|
||||||
limit:
|
limit:
|
||||||
name: limit
|
|
||||||
description: The number of items to return. If 0, no items are returned.
|
description: The number of items to return. If 0, no items are returned.
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
example: 10
|
example: 10
|
||||||
default: 0
|
default: 0
|
||||||
page:
|
page:
|
||||||
name: page
|
|
||||||
description: The page number (zero indexed) to return. If no limit is specified, then page will have no effect.
|
description: The page number (zero indexed) to return. If no limit is specified, then page will have no effect.
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
example: 1
|
example: 1
|
||||||
default: 0
|
default: 0
|
||||||
sortDesc:
|
sortDesc:
|
||||||
name: desc
|
|
||||||
description: Return items in reversed order if true.
|
description: Return items in reversed order if true.
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
default: false
|
default: false
|
||||||
minified:
|
minified:
|
||||||
name: minified
|
|
||||||
description: Return minified items if true.
|
description: Return minified items if true.
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue