mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 04:11:43 +00:00
Update: Minified and booleans in LibraryController
This commit is contained in:
parent
faa31471b4
commit
c53f849cbf
2 changed files with 23 additions and 24 deletions
|
|
@ -78,10 +78,10 @@ components:
|
|||
in: query
|
||||
name: desc
|
||||
description: Return items in reversed order if true.
|
||||
example: true
|
||||
example: 0
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
type: integer
|
||||
default: 0
|
||||
|
||||
responses:
|
||||
library200:
|
||||
|
|
@ -166,6 +166,7 @@ paths:
|
|||
name: include
|
||||
schema:
|
||||
type: string
|
||||
- $ref: '../schemas.yaml#/components/parameters/minified'
|
||||
responses:
|
||||
'200':
|
||||
$ref: '#/components/responses/library200'
|
||||
|
|
@ -262,7 +263,6 @@ paths:
|
|||
example: 'numBooks'
|
||||
schema:
|
||||
type: string
|
||||
enum: ['name', 'numBooks', 'totalDuration', 'addedAt', 'lastBookAdded', 'lastBookUpdated']
|
||||
default: 'name'
|
||||
- $ref: '#/components/parameters/desc'
|
||||
- in: query
|
||||
|
|
@ -386,6 +386,7 @@ paths:
|
|||
example: 'rssfeed'
|
||||
schema:
|
||||
type: string
|
||||
- $ref: '../schemas.yaml#/components/parameters/minified'
|
||||
responses:
|
||||
'200':
|
||||
description: getLibrarySeries OK
|
||||
|
|
|
|||
|
|
@ -499,6 +499,9 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/minified"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
@ -654,14 +657,6 @@
|
|||
"example": "numBooks",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"name",
|
||||
"numBooks",
|
||||
"totalDuration",
|
||||
"addedAt",
|
||||
"lastBookAdded",
|
||||
"lastBookUpdated"
|
||||
],
|
||||
"default": "name"
|
||||
}
|
||||
},
|
||||
|
|
@ -857,6 +852,9 @@
|
|||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/parameters/minified"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
|
@ -2007,6 +2005,16 @@
|
|||
}
|
||||
},
|
||||
"parameters": {
|
||||
"minified": {
|
||||
"in": "query",
|
||||
"name": "minified",
|
||||
"description": "Return minified items if true",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"example": 1
|
||||
}
|
||||
},
|
||||
"limit": {
|
||||
"in": "query",
|
||||
"name": "limit",
|
||||
|
|
@ -2031,20 +2039,10 @@
|
|||
"in": "query",
|
||||
"name": "desc",
|
||||
"description": "Return items in reversed order if true.",
|
||||
"example": true,
|
||||
"schema": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"minified": {
|
||||
"in": "query",
|
||||
"name": "minified",
|
||||
"description": "Return minified items if true",
|
||||
"example": 0,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"example": 1
|
||||
"default": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue