Merged in feature/download-pdf (pull request #216)
retrieve document by id and tests * working * missing files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user