mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-28 15:20:46 +00:00
Public API: Add media deletion
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
3686685f08
commit
a728866ebb
1 changed files with 23 additions and 0 deletions
|
@ -537,6 +537,29 @@ paths:
|
|||
"$ref": "#/components/responses/UnauthorizedError"
|
||||
'403':
|
||||
"$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:
|
||||
get:
|
||||
tags:
|
||||
|
|
Loading…
Reference in a new issue