diff --git a/referenced/paths/library-details.yaml b/referenced/paths/library-details.yaml index 74229ca9..e61c0a92 100644 --- a/referenced/paths/library-details.yaml +++ b/referenced/paths/library-details.yaml @@ -42,7 +42,7 @@ get: - 0 - 1 default: 0 - required: fallse + required: false responses: "200": description: The details of the library diff --git a/referenced/paths/library-hashes.yaml b/referenced/paths/library-hashes.yaml new file mode 100644 index 00000000..1261e78a --- /dev/null +++ b/referenced/paths/library-hashes.yaml @@ -0,0 +1,25 @@ +get: + tags: + - Hashes + summary: Get Hash Value + description: This resource returns hash values for local files + operationId: getFileHash + parameters: + - name: url + description: This is the path to the local file, must be prefixed by `file://` + in: path + schema: + type: string + example: file://C:\Image.png&type=13 + required: true + - name: type + description: Item type + in: query + schema: + type: number + required: false + responses: + "200": + description: The hash of the file + "401": + $ref: "../responses/401.yaml" diff --git a/referenced/plex-api-spec.yaml b/referenced/plex-api-spec.yaml index 2fb41c37..f5c7103d 100644 --- a/referenced/plex-api-spec.yaml +++ b/referenced/plex-api-spec.yaml @@ -67,6 +67,8 @@ paths: $ref: "./paths/library-details.yaml" /library/sections: $ref: "./paths/all-libraries.yaml" + /library/hashes: + $ref: "./paths/library-hashes.yaml" /hubs: $ref: "./paths/hubs.yaml" /hubs/sections/{sectionId}: