Changed Share Object logic to use Access Keys (#2827)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-05-24 11:52:40 -06:00
committed by GitHub
parent 17e791afb9
commit 7a9b775b09
16 changed files with 661 additions and 296 deletions

View File

@@ -484,7 +484,7 @@ paths:
- Object
/buckets/{bucket_name}/objects/share:
get:
post:
summary: Shares an Object on a url
operationId: ShareObject
parameters:
@@ -492,18 +492,11 @@ paths:
in: path
required: true
type: string
- name: prefix
in: query
- name: body
in: body
required: true
type: string
- name: version_id
in: query
required: true
type: string
- name: expires
in: query
required: false
type: string
schema:
$ref: "#/definitions/shareRequest"
responses:
200:
description: A successful response.
@@ -6152,4 +6145,23 @@ definitions:
groups:
type: array
items:
type: string
type: string
shareRequest:
type: object
required:
- prefix
- version_id
- access_key
- secret_key
properties:
prefix:
type: string
version_id:
type: string
expires:
type: string
access_key:
type: string
secret_key:
type: string