mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-10 04:20:52 +00:00
split get and delete endpoint
This commit is contained in:
15
src/paths/library/[sectionKey]/delete-library.yaml
Normal file
15
src/paths/library/[sectionKey]/delete-library.yaml
Normal 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"
|
||||||
@@ -229,20 +229,3 @@ get:
|
|||||||
$ref: "../../../responses/400.yaml"
|
$ref: "../../../responses/400.yaml"
|
||||||
"401":
|
"401":
|
||||||
$ref: "../../../responses/401.yaml"
|
$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"
|
|
||||||
@@ -119,19 +119,23 @@ paths:
|
|||||||
$ref: "./paths/library/get-recently-added.yaml"
|
$ref: "./paths/library/get-recently-added.yaml"
|
||||||
/library/sections:
|
/library/sections:
|
||||||
$ref: "./paths/library/get-all-libraries.yaml"
|
$ref: "./paths/library/get-all-libraries.yaml"
|
||||||
|
|
||||||
/library/sections/{sectionKey}:
|
/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
|
# Watchlist
|
||||||
/library/sections/watchlist/{filter}:
|
/library/sections/watchlist/{filter}:
|
||||||
$ref: "./paths/library/sections/watchlist/get-watch-list.yaml"
|
$ref: "./paths/library/sections/watchlist/get-watch-list.yaml"
|
||||||
|
|
||||||
/library/sections/{sectionKey}/{tag}:
|
/library/sections/{sectionKey}/{tag}:
|
||||||
$ref: "./paths/library/[sectionId]/get-library-items.yaml"
|
$ref: "./paths/library/[sectionKey]/get-library-items.yaml"
|
||||||
/library/sections/{sectionKey}/refresh:
|
/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:
|
/library/sections/{sectionKey}/search:
|
||||||
$ref: "./paths/library/[sectionId]/get-search-library.yaml"
|
$ref: "./paths/library/[sectionKey]/get-search-library.yaml"
|
||||||
|
|
||||||
|
|
||||||
/library/metadata/{ratingKey}:
|
/library/metadata/{ratingKey}:
|
||||||
|
|||||||
Reference in New Issue
Block a user