added include meta param to library items

This commit is contained in:
JasonLandbridge
2024-08-25 12:17:15 +02:00
parent cc7f2a9cc0
commit df68dcc561
2 changed files with 21 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ get:
tags:
- Library
summary: Get Library Items
operationId: getLibraryItems
operationId: get-library-items
description: |
Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:
- `all`: All items in the section.
@@ -68,9 +68,23 @@ get:
description: |
Adds the Guids object to the response
schema:
type: integer
required: false
type: enum
enum:
- 0
- 1
example: 1
required: false
- name: includeMeta
in: query
description: |
Adds the Meta object to the response
schema:
type: enum
enum:
- 0
- 1
example: 1
required: false
responses:
"200":
description: The contents of the library by section and tag
@@ -430,6 +444,6 @@ get:
type: string
example: /library/metadata/66/theme/1705716261
"400":
$ref: "../../responses/400.yaml"
$ref: "../../../responses/400.yaml"
"401":
$ref: "../../responses/401.yaml"
$ref: "../../../responses/401.yaml"

View File

@@ -124,7 +124,7 @@ paths:
/library/sections/{sectionId}/{tag}:
$ref: "./paths/library/content.yaml"
$ref: "./paths/library/[sectionId]/get-library-items.yaml"
/library/sections/{sectionId}/refresh:
$ref: "./paths/library/[sectionId]/refresh/get-refresh-library-metadata.yaml"
/library/sections/{sectionId}/search: