Add GET /me/media

Returns all media files uploaded by the authenticated user.

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2021-03-14 17:47:16 +01:00
parent b67ec817e6
commit ef352a1313
7 changed files with 174 additions and 10 deletions

View file

@ -900,19 +900,21 @@ components:
MediaUpload:
type: object
properties:
note:
type: string
description: ID of the note the file was uploaded to
user:
type: string
description: username of the user who uploaded the file
url:
type: string
description: URL of the file
owningNote:
type: string
description: ID of the note the file was uploaded to
createdAt:
type: string
format: date-time
description: Date when the file was upladed
owningUser:
type: string
description: username of the user who uploaded the file
examples:
markdownExample:
value: '# Some header\nSome normal text. **Some bold text**'