split get and delete endpoint

This commit is contained in:
JasonLandbridge
2024-09-03 16:53:31 +02:00
parent 6b4e460765
commit 0188055bbd
6 changed files with 23 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
delete:
tags:
- Library
summary: Delete Library Section
description: Delete a library using a specific section id
operationId: deleteLibrary
parameters:
- $ref: "../../../parameters/library/section-key.yaml"
responses:
"200":
description: The library is deleted
"400":
$ref: "../../../responses/400.yaml"
"401":
$ref: "../../../responses/401.yaml"

View File

@@ -229,20 +229,3 @@ get:
$ref: "../../../responses/400.yaml"
"401":
$ref: "../../../responses/401.yaml"
# TODO Move the deleteLibrary operation to its own file, there is currently a bug in the SDKEasy lint that prevents this referencing two methods from the same path url
delete:
tags:
- Library
summary: Delete Library Section
description: Delete a library using a specific section id
operationId: deleteLibrary
parameters:
- $ref: "../../../parameters/library/section-key.yaml"
responses:
"200":
description: The library is deleted
"400":
$ref: "../../../responses/400.yaml"
"401":
$ref: "../../../responses/401.yaml"

View File

@@ -119,19 +119,23 @@ paths:
$ref: "./paths/library/get-recently-added.yaml"
/library/sections:
$ref: "./paths/library/get-all-libraries.yaml"
/library/sections/{sectionKey}:
$ref: "./paths/library/[sectionId]/get-and-delete-library-details.yaml"
get:
$ref: "./paths/library/[sectionKey]/get-library-details.yaml#/get"
delete:
$ref: "./paths/library/[sectionKey]/delete-library.yaml#/delete"
# Watchlist
/library/sections/watchlist/{filter}:
$ref: "./paths/library/sections/watchlist/get-watch-list.yaml"
/library/sections/{sectionKey}/{tag}:
$ref: "./paths/library/[sectionId]/get-library-items.yaml"
$ref: "./paths/library/[sectionKey]/get-library-items.yaml"
/library/sections/{sectionKey}/refresh:
$ref: "./paths/library/[sectionId]/refresh/get-refresh-library-metadata.yaml"
$ref: "./paths/library/[sectionKey]/refresh/get-refresh-library-metadata.yaml"
/library/sections/{sectionKey}/search:
$ref: "./paths/library/[sectionId]/get-search-library.yaml"
$ref: "./paths/library/[sectionKey]/get-search-library.yaml"
/library/metadata/{ratingKey}: