refactor: update includeGuids parameter and restructure MediaContainer properties in YAML files

This commit is contained in:
JasonLandbridge
2025-06-03 13:54:07 +02:00
parent 315ef8fd2f
commit 687a36687b

View File

@@ -6,15 +6,8 @@ get:
This endpoint will return the top watched content from libraries of a certain type This endpoint will return the top watched content from libraries of a certain type
operationId: getTopWatchedContent operationId: getTopWatchedContent
parameters: parameters:
- name: includeGuids
in: query
description: |
Adds the Guids object to the response
schema:
type: integer
required: false
example: 1
- $ref: "../../parameters/type.yaml" - $ref: "../../parameters/type.yaml"
- $ref: "../../parameters/include-guids.yaml"
responses: responses:
"200": "200":
description: The metadata of the library item. description: The metadata of the library item.
@@ -24,25 +17,14 @@ get:
type: object type: object
properties: properties:
MediaContainer: MediaContainer:
type: object allOf:
- $ref: "../../models/media-container/size.yaml"
- $ref: "../../models/media-container/allow-sync.yaml"
- $ref: "../../models/media-container/identifier.yaml"
- $ref: "../../models/media-container/media-tag-prefix.yaml"
- $ref: "../../models/media-container/media-tag-version.yaml"
- type: object
properties: properties:
size:
type: integer
format: int32
example: 1
allowSync:
type: boolean
example: true
identifier:
type: string
example: com.plexapp.plugins.library
mediaTagPrefix:
type: string
example: /system/bundle/media/flags/
mediaTagVersion:
type: integer
format: int32
example: 1698860922
Metadata: Metadata:
type: array type: array
items: items: