mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Public API: Add media deletion
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
490e4cac69
commit
bd1a6e528e
1 changed files with 23 additions and 0 deletions
|
@ -537,6 +537,29 @@ paths:
|
||||||
"$ref": "#/components/responses/UnauthorizedError"
|
"$ref": "#/components/responses/UnauthorizedError"
|
||||||
'403':
|
'403':
|
||||||
"$ref": "#/components/responses/ForbiddenError"
|
"$ref": "#/components/responses/ForbiddenError"
|
||||||
|
/media/{filename}:
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- media
|
||||||
|
summary: Delete the specified file
|
||||||
|
operationId: deleteMedia
|
||||||
|
parameters:
|
||||||
|
- name: filename
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The name of the file to be deleted.
|
||||||
|
content:
|
||||||
|
text/plain:
|
||||||
|
example: e18d1b83e1821128615bad849ad0655a.jpg
|
||||||
|
responses:
|
||||||
|
'204':
|
||||||
|
"$ref": "#/components/responses/SuccessfullyDeleted"
|
||||||
|
'401':
|
||||||
|
"$ref": "#/components/responses/UnauthorizedError"
|
||||||
|
'403':
|
||||||
|
"$ref": "#/components/responses/ForbiddenError"
|
||||||
|
'404':
|
||||||
|
"$ref": "#/components/responses/NotFoundError"
|
||||||
/monitoring:
|
/monitoring:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue