mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 19:31:33 +00: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
846bbeb390
commit
aa41bebbf0
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