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: tags:
- Library - Library
summary: Get Library Items summary: Get Library Items
operationId: getLibraryItems operationId: get-library-items
description: | 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: 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. - `all`: All items in the section.
@@ -68,9 +68,23 @@ get:
description: | description: |
Adds the Guids object to the response Adds the Guids object to the response
schema: schema:
type: integer type: enum
required: false enum:
- 0
- 1
example: 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: responses:
"200": "200":
description: The contents of the library by section and tag description: The contents of the library by section and tag
@@ -430,6 +444,6 @@ get:
type: string type: string
example: /library/metadata/66/theme/1705716261 example: /library/metadata/66/theme/1705716261
"400": "400":
$ref: "../../responses/400.yaml" $ref: "../../../responses/400.yaml"
"401": "401":
$ref: "../../responses/401.yaml" $ref: "../../../responses/401.yaml"

View File

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