cleaned up Get All Libraries endpoint

This commit is contained in:
JasonLandbridge
2025-04-05 11:13:38 +02:00
parent 5cbcef13ba
commit 462b30f914
24 changed files with 426 additions and 190 deletions

View File

@@ -0,0 +1,8 @@
type: object
required:
- agent
properties:
agent:
type: string
description: The Plex agent used to match and retrieve media metadata.
example: tv.plex.agents.movie

View File

@@ -0,0 +1,8 @@
type: object
required:
- composite
properties:
composite:
type: string
description: The relative path to the composite media item.
example: /library/sections/1/composite/1743824484

View File

@@ -0,0 +1,9 @@
type: object
required:
- contentChangedAt
properties:
contentChangedAt:
type: integer
format: int32
description: The number of seconds since the content was last changed relative to now.
example: 9173960

View File

@@ -0,0 +1,8 @@
type: object
required:
- content
properties:
content:
type: boolean
description: UNKNOWN
example: true

View File

@@ -0,0 +1,8 @@
type: object
properties:
createdAt:
allOf:
- $ref: "../../models/common/PlexDateTime.yaml"
- description: "The date and time when the library was created."
type: integer
format: int64

View File

@@ -0,0 +1,8 @@
type: object
required:
- directory
properties:
directory:
type: boolean
description: UNKNOWN
example: true

View File

@@ -0,0 +1,8 @@
type: object
required:
- filters
properties:
filters:
type: boolean
description: UNKNOWN
example: true

View File

@@ -0,0 +1,10 @@
type: object
required:
- hidden
properties:
hidden:
allOf:
- $ref: "../common/PlexBoolean.yaml"
- type: integer
format: int32
description: UNKNOWN

View File

@@ -0,0 +1,8 @@
type: object
required:
- key
properties:
key:
type: string
description: The library key representing the unique identifier
example: "1"

View File

@@ -0,0 +1,8 @@
type: object
required:
- language
properties:
language:
type: string
description: The Plex library language that has been set
example: en-US

View File

@@ -0,0 +1,8 @@
type: object
required:
- refreshing
properties:
refreshing:
type: boolean
description: "Indicates whether the library is currently being refreshed or updated"
example: true

View File

@@ -0,0 +1,6 @@
type: object
required:
- scannedAt
properties:
scannedAt:
$ref: "../../models/common/PlexDateTime.yaml"

View File

@@ -0,0 +1,8 @@
type: object
required:
- scanner
properties:
scanner:
type: string
description: UNKNOWN
example: Plex Movie

View File

@@ -0,0 +1,8 @@
type: object
required:
- title
properties:
title:
type: string
description: "The title of the library"
example: "Movies"

View File

@@ -0,0 +1,9 @@
type: object
required:
- type
properties:
type:
allOf:
- $ref: "../common/PlexMediaTypeString.yaml"
- type: string
description: "The library type"

View File

@@ -0,0 +1,6 @@
type: object
required:
- updatedAt
properties:
updatedAt:
$ref: "../../models/common/PlexDateTime.yaml"

View File

@@ -0,0 +1,8 @@
type: object
required:
- uuid
properties:
uuid:
type: string
description: "The universally unique identifier for the library."
example: "e69655a2-ef48-4aba-bb19-01e7d3cc34d6"