mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Provide tasks with ability to return data and human message
To allow better communication from background tasks, tasks can return not only data (json), but also a human readable message which is send via notification channels
This commit is contained in:
@ -2516,6 +2516,30 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
|
||||
/admin/files/integrityCheck:
|
||||
post:
|
||||
operationId: "admin-files-integrityCheck"
|
||||
tags: [ Admin ]
|
||||
summary: Verifies the stored checksum
|
||||
description: |
|
||||
Submits a task that goes through the files and compares the
|
||||
stored checksum (at the time of inserting) against a newly
|
||||
calculated one.
|
||||
security:
|
||||
- adminHeader: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/FileIntegrityCheckRequest"
|
||||
responses:
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
|
||||
/sec/source:
|
||||
get:
|
||||
operationId: "sec-source-get-all"
|
||||
@ -5462,6 +5486,14 @@ paths:
|
||||
|
||||
components:
|
||||
schemas:
|
||||
FileIntegrityCheckRequest:
|
||||
description: |
|
||||
Data for running a file integrity check
|
||||
properties:
|
||||
collective:
|
||||
type: string
|
||||
format: ident
|
||||
|
||||
FileRepositoryCloneRequest:
|
||||
description: |
|
||||
Clone the file repository to a new location.
|
||||
|
Reference in New Issue
Block a user