added library hashes endpoint

This commit is contained in:
Luke Hagar
2023-04-10 10:39:47 -05:00
parent 8e1eafa630
commit a34f9bc3d2
3 changed files with 28 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ get:
- 0
- 1
default: 0
required: fallse
required: false
responses:
"200":
description: The details of the library

View File

@@ -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"

View File

@@ -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}: