mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Update requestBody on LibraryController
This commit is contained in:
parent
9af5b8d96d
commit
0e9cf0df68
1 changed files with 50 additions and 24 deletions
|
|
@ -1,4 +1,12 @@
|
||||||
components:
|
components:
|
||||||
|
parameters:
|
||||||
|
libraryId:
|
||||||
|
name: id
|
||||||
|
in: path
|
||||||
|
description: The ID of the library.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
|
||||||
requestBody:
|
requestBody:
|
||||||
libraryName:
|
libraryName:
|
||||||
name: name
|
name: name
|
||||||
|
|
@ -59,14 +67,6 @@ components:
|
||||||
description: The settings for the library.
|
description: The settings for the library.
|
||||||
schema:
|
schema:
|
||||||
$ref: '../objects/Library.yaml#/components/schemas/librarySettings'
|
$ref: '../objects/Library.yaml#/components/schemas/librarySettings'
|
||||||
parameters:
|
|
||||||
libraryId:
|
|
||||||
name: id
|
|
||||||
in: path
|
|
||||||
description: The ID of the library.
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
|
|
||||||
responses:
|
responses:
|
||||||
library200:
|
library200:
|
||||||
description: Library found.
|
description: Library found.
|
||||||
|
|
@ -106,12 +106,25 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- Libraries
|
- Libraries
|
||||||
requestBody:
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
$ref: '#/components/requestBody/libraryName'
|
$ref: '#/components/requestBody/libraryName'
|
||||||
|
folders:
|
||||||
$ref: '#/components/requestBody/libraryFolders'
|
$ref: '#/components/requestBody/libraryFolders'
|
||||||
|
displayOrder:
|
||||||
$ref: '#/components/requestBody/libraryDisplayOrder'
|
$ref: '#/components/requestBody/libraryDisplayOrder'
|
||||||
|
icon:
|
||||||
$ref: '#/components/requestBody/libraryIcon'
|
$ref: '#/components/requestBody/libraryIcon'
|
||||||
|
mediaType:
|
||||||
$ref: '#/components/requestBody/libraryMediaType'
|
$ref: '#/components/requestBody/libraryMediaType'
|
||||||
|
provider:
|
||||||
$ref: '#/components/requestBody/libraryProvider'
|
$ref: '#/components/requestBody/libraryProvider'
|
||||||
|
settings:
|
||||||
$ref: '#/components/requestBody/librarySettings'
|
$ref: '#/components/requestBody/librarySettings'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
|
@ -119,14 +132,14 @@ paths:
|
||||||
'404':
|
'404':
|
||||||
$ref: '#/components/responses/library404'
|
$ref: '#/components/responses/library404'
|
||||||
/api/libraries/{id}:
|
/api/libraries/{id}:
|
||||||
|
parameters:
|
||||||
|
$ref: '#/components/parameters/libraryId'
|
||||||
get:
|
get:
|
||||||
operationId: getLibraryById
|
operationId: getLibraryById
|
||||||
summary: Get a single library by ID on server
|
summary: Get a single library by ID on server
|
||||||
description: Get a single library by ID on server.
|
description: Get a single library by ID on server.
|
||||||
tags:
|
tags:
|
||||||
- Libraries
|
- Libraries
|
||||||
parameters:
|
|
||||||
$ref: '#/components/parameters/libraryId'
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
$ref: '#/components/responses/library200'
|
$ref: '#/components/responses/library200'
|
||||||
|
|
@ -139,12 +152,25 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- Libraries
|
- Libraries
|
||||||
requestBody:
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
$ref: '#/components/requestBody/libraryName'
|
$ref: '#/components/requestBody/libraryName'
|
||||||
|
folders:
|
||||||
$ref: '#/components/requestBody/libraryFolders'
|
$ref: '#/components/requestBody/libraryFolders'
|
||||||
|
displayOrder:
|
||||||
$ref: '#/components/requestBody/libraryDisplayOrder'
|
$ref: '#/components/requestBody/libraryDisplayOrder'
|
||||||
|
icon:
|
||||||
$ref: '#/components/requestBody/libraryIcon'
|
$ref: '#/components/requestBody/libraryIcon'
|
||||||
|
mediaType:
|
||||||
$ref: '#/components/requestBody/libraryMediaType'
|
$ref: '#/components/requestBody/libraryMediaType'
|
||||||
|
provider:
|
||||||
$ref: '#/components/requestBody/libraryProvider'
|
$ref: '#/components/requestBody/libraryProvider'
|
||||||
|
settings:
|
||||||
$ref: '#/components/requestBody/librarySettings'
|
$ref: '#/components/requestBody/librarySettings'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue