mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-15 06:05:02 +00:00
Merge pull request #1135 from hedgedoc/publicApi/swaggerUpload
PublicAPI: Add file upload dialog to openapi docs
This commit is contained in:
commit
1785190f75
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…
Add table
Reference in a new issue