Merge pull request #5513 from FinnStutzenstein/media-interface

Mediaservice interface
This commit is contained in:
Finn Stutzenstein 2020-09-01 08:07:15 +02:00 committed by GitHub
commit 94219feb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
/**
* Saves a file (encoded as base64) into this service.
*
* Technical:
* POST to /internal/media/upload/ with JSON payload.
* Returns 200 on success, 4xx on Errors with a message in the payload.
*/
upload(file: string, id: Id, mimetype: string): {message: string} | void
/**
* Retrieves a mediafile given by the meeting and the path of the file.
*
* Technical:
* GET to /system/media/get/<meeting_id>/<path>
*/
get(meeting_id: Id, path: string): Blob