Merge pull request #1135 from hedgedoc/publicApi/swaggerUpload

PublicAPI: Add file upload dialog to openapi docs
This commit is contained in:
David Mehren 2021-04-18 22:44:01 +02:00 committed by GitHub
commit 1785190f75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',