Merge pull request #1021 from hedgedoc/publicApi/listMediaUpload

PublicAPI: Add GET /me/media
This commit is contained in:
Yannick Bungers 2021-03-15 20:26:59 +01:00 committed by GitHub
commit 7183d1fabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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**'