Add endpoint for presigned uploads
This commit is contained in:
@@ -573,6 +573,32 @@
|
||||
application/json:
|
||||
schema:
|
||||
$ref: './schemas.yaml#/CreatePresignedUrlRequest'
|
||||
responses:
|
||||
'201':
|
||||
description: Presigned URL created
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: './schemas.yaml#/CreatePresignedUrlResponse'
|
||||
|
||||
/api/buckets/{bucketName}/objects/{objectKey}/presigned-upload:
|
||||
parameters:
|
||||
- $ref: './parameters.yaml#/BucketName'
|
||||
- $ref: './parameters.yaml#/ObjectKey'
|
||||
post:
|
||||
operationId: createPresignedUpload
|
||||
tags:
|
||||
- Management - Presigned URLs
|
||||
summary: Create presigned upload URL
|
||||
description: Creates an empty object and returns a presigned URL for uploading content
|
||||
security:
|
||||
- ApiKey: []
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: './schemas.yaml#/CreatePresignedUploadRequest'
|
||||
responses:
|
||||
'201':
|
||||
description: Presigned URL created
|
||||
|
||||
Reference in New Issue
Block a user