mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
@ -4823,6 +4823,72 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
/sec/attachment/{id}/extracted-text:
|
||||
get:
|
||||
operationId: "sec-attachment-get-extracted-text"
|
||||
tags: [ Attachment ]
|
||||
summary: Get the extracted text of the given attachment.
|
||||
description: |
|
||||
Returns the extracted text of the attachment with the given
|
||||
id.
|
||||
security:
|
||||
- authTokenHeader: []
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
422:
|
||||
description: BadRequest
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OptionalText"
|
||||
delete:
|
||||
operationId: "sec-attachment-delete-extracted-text"
|
||||
summary: Removes extracted text for the given attachment.
|
||||
description: |
|
||||
Removes any extracted text for the given attachment.
|
||||
security:
|
||||
- authTokenHeader: []
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
422:
|
||||
description: BadRequest
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
post:
|
||||
operationId: "sec-attachment-post-extracted-text"
|
||||
tags: [ Attachment ]
|
||||
summary: Changes the extracted text for an attachment
|
||||
description: |
|
||||
Changes the extracted text of the attachment with the given
|
||||
id. The attachment must be part of an item that belongs to the
|
||||
collective of the current user. This can be used to correct
|
||||
poor ocr-ed files.
|
||||
security:
|
||||
- authTokenHeader: []
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/id"
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OptionalText"
|
||||
responses:
|
||||
422:
|
||||
description: BadRequest
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/BasicResult"
|
||||
|
||||
/sec/attachments/delete:
|
||||
post:
|
||||
|
Reference in New Issue
Block a user