mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Public API: Update /media/upload
route with supported content-types
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
c2c51f1eef
commit
eb77642604
1 changed files with 60 additions and 5 deletions
|
@ -458,19 +458,74 @@ paths:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- media
|
- media
|
||||||
summary: Uploads an image to the backend storage
|
summary: Uploads a media file to the backend storage
|
||||||
description: Uploads an image to be processed by the backend.
|
description: Uploads a file to be processed by the backend.
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
description: The binary image to upload.
|
description: The binary file to upload.
|
||||||
content:
|
content:
|
||||||
image/*:
|
application/pdf:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: binary
|
format: binary
|
||||||
|
image/apng:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/bmp:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/gif:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/heif:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/heic:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/heif-sequence:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/heic-sequence:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/jpeg:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/png:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/svg+xml:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/tiff:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
image/webp:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
parameters:
|
||||||
|
- in: header
|
||||||
|
name: HedgeDoc-Note
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: ID or alias of the parent note
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: The image was uploaded successfully.
|
description: The file was uploaded successfully.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
Loading…
Reference in a new issue