1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Added woldcard content type

This commit is contained in:
Eldad Fux 2020-11-12 07:12:25 +02:00
parent e1837c01d5
commit 5b06f4d71d

View file

@ -356,7 +356,7 @@ App::get('/v1/storage/files/:fileId/download')
->label('sdk.method', 'getFileDownload')
->label('sdk.description', '/docs/references/storage/get-file-download.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', '*')
->label('sdk.response.type', '*/*')
->label('sdk.methodType', 'location')
->param('fileId', '', new UID(), 'File unique ID.')
->action(function ($fileId, $response, $projectDB) {
@ -412,7 +412,7 @@ App::get('/v1/storage/files/:fileId/view')
->label('sdk.method', 'getFileView')
->label('sdk.description', '/docs/references/storage/get-file-view.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', '*')
->label('sdk.response.type', '*/*')
->label('sdk.methodType', 'location')
->param('fileId', '', new UID(), 'File unique ID.')
->param('as', '', new WhiteList(['pdf', /*'html',*/ 'text'], true), 'Choose a file format to convert your file to. Currently you can only convert word and pdf files to pdf or txt. This option is currently experimental only, use at your own risk.', true)