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
|
in: query
|
||||||
name: desc
|
name: desc
|
||||||
description: Return items in reversed order if true.
|
description: Return items in reversed order if true.
|
||||||
example: true
|
example: 0
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: integer
|
||||||
default: false
|
default: 0
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
library200:
|
library200:
|
||||||
|
|
@ -166,6 +166,7 @@ paths:
|
||||||
name: include
|
name: include
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- $ref: '../schemas.yaml#/components/parameters/minified'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
$ref: '#/components/responses/library200'
|
$ref: '#/components/responses/library200'
|
||||||
|
|
@ -262,7 +263,6 @@ paths:
|
||||||
example: 'numBooks'
|
example: 'numBooks'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
enum: ['name', 'numBooks', 'totalDuration', 'addedAt', 'lastBookAdded', 'lastBookUpdated']
|
|
||||||
default: 'name'
|
default: 'name'
|
||||||
- $ref: '#/components/parameters/desc'
|
- $ref: '#/components/parameters/desc'
|
||||||
- in: query
|
- in: query
|
||||||
|
|
@ -386,6 +386,7 @@ paths:
|
||||||
example: 'rssfeed'
|
example: 'rssfeed'
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
- $ref: '../schemas.yaml#/components/parameters/minified'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: getLibrarySeries OK
|
description: getLibrarySeries OK
|
||||||
|
|
|
||||||
|
|
@ -499,6 +499,9 @@
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/minified"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -654,14 +657,6 @@
|
||||||
"example": "numBooks",
|
"example": "numBooks",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
|
||||||
"name",
|
|
||||||
"numBooks",
|
|
||||||
"totalDuration",
|
|
||||||
"addedAt",
|
|
||||||
"lastBookAdded",
|
|
||||||
"lastBookUpdated"
|
|
||||||
],
|
|
||||||
"default": "name"
|
"default": "name"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -857,6 +852,9 @@
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/parameters/minified"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -2007,6 +2005,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
|
"minified": {
|
||||||
|
"in": "query",
|
||||||
|
"name": "minified",
|
||||||
|
"description": "Return minified items if true",
|
||||||
|
"schema": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"example": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
"limit": {
|
"limit": {
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "limit",
|
"name": "limit",
|
||||||
|
|
@ -2031,20 +2039,10 @@
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"name": "desc",
|
"name": "desc",
|
||||||
"description": "Return items in reversed order if true.",
|
"description": "Return items in reversed order if true.",
|
||||||
"example": true,
|
"example": 0,
|
||||||
"schema": {
|
|
||||||
"type": "boolean",
|
|
||||||
"default": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minified": {
|
|
||||||
"in": "query",
|
|
||||||
"name": "minified",
|
|
||||||
"description": "Return minified items if true",
|
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 0,
|
"default": 0
|
||||||
"example": 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue