Update requestBody on LibraryController

This commit is contained in:
Nicholas Wallace 2024-05-15 03:03:48 +00:00
parent 9af5b8d96d
commit 0e9cf0df68

View file

@ -1,4 +1,12 @@
components:
parameters:
libraryId:
name: id
in: path
description: The ID of the library.
required: true
schema:
$ref: '../objects/Library.yaml#/components/schemas/libraryId'
requestBody:
libraryName:
name: name
@ -59,14 +67,6 @@ components:
description: The settings for the library.
schema:
$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:
library200:
description: Library found.
@ -106,12 +106,25 @@ paths:
tags:
- Libraries
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
$ref: '#/components/requestBody/libraryName'
folders:
$ref: '#/components/requestBody/libraryFolders'
displayOrder:
$ref: '#/components/requestBody/libraryDisplayOrder'
icon:
$ref: '#/components/requestBody/libraryIcon'
mediaType:
$ref: '#/components/requestBody/libraryMediaType'
provider:
$ref: '#/components/requestBody/libraryProvider'
settings:
$ref: '#/components/requestBody/librarySettings'
responses:
'200':
@ -119,14 +132,14 @@ paths:
'404':
$ref: '#/components/responses/library404'
/api/libraries/{id}:
parameters:
$ref: '#/components/parameters/libraryId'
get:
operationId: getLibraryById
summary: Get a single library by ID on server
description: Get a single library by ID on server.
tags:
- Libraries
parameters:
$ref: '#/components/parameters/libraryId'
responses:
'200':
$ref: '#/components/responses/library200'
@ -139,12 +152,25 @@ paths:
tags:
- Libraries
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
$ref: '#/components/requestBody/libraryName'
folders:
$ref: '#/components/requestBody/libraryFolders'
displayOrder:
$ref: '#/components/requestBody/libraryDisplayOrder'
icon:
$ref: '#/components/requestBody/libraryIcon'
mediaType:
$ref: '#/components/requestBody/libraryMediaType'
provider:
$ref: '#/components/requestBody/libraryProvider'
settings:
$ref: '#/components/requestBody/librarySettings'
responses:
'200':