File Info

Endpoints for managing uploaded file information and metadata.

'/files'

GET

async find(
    @param.filter(FileInfo) filter?: Filter<FileInfo>,
  ): Promise<FileInfo[]>

Auth: Yes RBAC: Admin

Search uploaded files.

'/files/{id}'

GET

async findById(
    @param.path.string('id') id: string,
    @param.filter(FileInfo, {exclude: 'where'}) filter?: FilterExcludingWhere<FileInfo>
  ): Promise<FileInfo>

Auth: Yes RBAC: Admin

Search for a specific file by ID.

'/files/{id}/download'

GET

async downloadById(
    @param.path.string('id') id: string,
    @inject(RestBindings.Http.RESPONSE) response: Response,
  ): Promise<Response>

Auth: Yes RBAC: Admin

Download a specific file by ID.

Last updated