mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
PublicAPI: Add file upload dialog to swagger api
This makes it possible to truly upload a file with swagger api documentation. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
caa4b1c927
commit
b490fe3ffc
1 changed files with 9 additions and 1 deletions
|
@ -67,7 +67,15 @@ export class MediaController {
|
|||
@Post()
|
||||
@ApiConsumes('multipart/form-data')
|
||||
@ApiBody({
|
||||
description: 'The binary file to upload',
|
||||
schema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
file: {
|
||||
type: 'string',
|
||||
format: 'binary',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@ApiHeader({
|
||||
name: 'HedgeDoc-Note',
|
||||
|
|
Loading…
Reference in a new issue