Refactor particle management: remove secret key from file operations, add ParticleManagerComponent, update frame naming conventions, and enhance style and functionality.
This commit is contained in:
@@ -79,7 +79,7 @@ paths:
|
||||
$ref: './schemas/particles/particles.yml#/SaveFile'
|
||||
/api/files/save/{uuid}/{filename}:
|
||||
$ref: './schemas/particles/particles.yml#/SaveFileForUser'
|
||||
/api/files/download/{filename}/{secret}:
|
||||
/api/files/download/{filename}:
|
||||
$ref: './schemas/particles/particles.yml#/DownloadFile'
|
||||
/api/files/download/{uuid}/{filename}:
|
||||
$ref: './schemas/particles/particles.yml#/DownloadFileForUser'
|
||||
|
||||
@@ -7,13 +7,6 @@ components:
|
||||
schema:
|
||||
type: string
|
||||
description: The name of the file
|
||||
Secret:
|
||||
name: Authorization
|
||||
in: header
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: Secret
|
||||
schemas:
|
||||
FileData:
|
||||
type: object
|
||||
@@ -109,10 +102,9 @@ DownloadFile:
|
||||
tags:
|
||||
- particles
|
||||
summary: Download a file
|
||||
description: Download a file from the server using a secret key
|
||||
description: Download a file from the server
|
||||
operationId: downloadFile
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/Secret'
|
||||
- $ref: '#/components/parameters/Filename'
|
||||
responses:
|
||||
'200':
|
||||
@@ -140,12 +132,11 @@ DownloadFileForUser:
|
||||
tags:
|
||||
- particles
|
||||
summary: Download a file for a specific user
|
||||
description: Download a file from the server for a specific user (requires authorization)
|
||||
description: Download a file from the server for a specific user
|
||||
operationId: downloadFileForUser
|
||||
security:
|
||||
- bearerAuth: []
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/Secret'
|
||||
- $ref: '../generic/parameters.yml#/components/parameters/Uuid'
|
||||
- $ref: '#/components/parameters/Filename'
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user