Merged in feature/download-pdf (pull request #216)

retrieve document by id and tests

* working

* missing files
This commit is contained in:
Jay Brown
2026-03-17 17:06:57 +00:00
parent aafe7d5b5f
commit 2eff52877b
16 changed files with 1152 additions and 343 deletions
+42
View File
@@ -645,6 +645,48 @@ paths:
"500":
$ref: "#/components/responses/InternalError"
/document/{id}/download:
parameters:
- $ref: "#/components/parameters/DocumentID"
get:
operationId: downloadDocument
tags:
- DocumentsService
summary: Download the original document file
description: |
Streams the original uploaded document file. The response Content-Type
is auto-detected from the stored filename extension. No query parameters
are required; the system resolves the file type automatically.
security:
- jwtAuth: []
responses:
"200":
description: Document file bytes.
headers:
RateLimit:
$ref: "#/components/headers/RateLimit"
Content-Disposition:
schema:
type: string
maxLength: 4096
description: 'Attachment header with original filename, e.g. attachment; filename="report.pdf"'
content:
application/octet-stream:
schema:
type: string
format: binary
maxLength: 107374182400
"400":
$ref: "#/components/responses/InvalidRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalError"
/folders:
post:
operationId: createFolder