Merged in feature/import (pull request #157)
Feature/import * importstart * pp * tests * importtests * 100GB * lint * passtests * utc * awsprofile * doublequotes * host
This commit is contained in:
@@ -369,7 +369,7 @@ paths:
|
||||
"500":
|
||||
$ref: "#/components/responses/InternalError"
|
||||
|
||||
/client/{id}/documents:
|
||||
/client/{id}/document:
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/ClientID"
|
||||
get:
|
||||
@@ -398,6 +398,54 @@ paths:
|
||||
$ref: "#/components/responses/TooManyRequests"
|
||||
"500":
|
||||
$ref: "#/components/responses/InternalError"
|
||||
post:
|
||||
operationId: uploadDocument
|
||||
tags:
|
||||
- DocumentsService
|
||||
summary: Upload a file
|
||||
description: Upload a single file to the server with optional metadata
|
||||
security:
|
||||
- jwtAuth: []
|
||||
requestBody:
|
||||
required: true
|
||||
description: upload file body
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- file
|
||||
properties:
|
||||
file:
|
||||
type: string
|
||||
format: binary
|
||||
maxLength: 107374182400
|
||||
description: The file to upload
|
||||
filename:
|
||||
type: string
|
||||
pattern: ".+"
|
||||
maxLength: 4096
|
||||
description: Optional custom filename
|
||||
example: "document.pdf"
|
||||
encoding:
|
||||
file:
|
||||
contentType: application/pdf
|
||||
style: form
|
||||
explode: false
|
||||
responses:
|
||||
"200":
|
||||
description: Document uploaded.
|
||||
headers:
|
||||
RateLimit:
|
||||
$ref: "#/components/headers/RateLimit"
|
||||
"400":
|
||||
$ref: "#/components/responses/InvalidRequest"
|
||||
"401":
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
"429":
|
||||
$ref: "#/components/responses/TooManyRequests"
|
||||
"500":
|
||||
$ref: "#/components/responses/InternalError"
|
||||
|
||||
/document/{id}:
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user