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: 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,27 +106,40 @@ paths:
tags: tags:
- Libraries - Libraries
requestBody: requestBody:
$ref: '#/components/requestBody/libraryName' required: true
$ref: '#/components/requestBody/libraryFolders' content:
$ref: '#/components/requestBody/libraryDisplayOrder' application/json:
$ref: '#/components/requestBody/libraryIcon' schema:
$ref: '#/components/requestBody/libraryMediaType' type: object
$ref: '#/components/requestBody/libraryProvider' properties:
$ref: '#/components/requestBody/librarySettings' 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: responses:
'200': '200':
$ref: '#/components/responses/library200' $ref: '#/components/responses/library200'
'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,13 +152,26 @@ paths:
tags: tags:
- Libraries - Libraries
requestBody: requestBody:
$ref: '#/components/requestBody/libraryName' required: true
$ref: '#/components/requestBody/libraryFolders' content:
$ref: '#/components/requestBody/libraryDisplayOrder' application/json:
$ref: '#/components/requestBody/libraryIcon' schema:
$ref: '#/components/requestBody/libraryMediaType' type: object
$ref: '#/components/requestBody/libraryProvider' properties:
$ref: '#/components/requestBody/librarySettings' 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: responses:
'200': '200':
$ref: '#/components/responses/library200' $ref: '#/components/responses/library200'