From fc3b49851107b39c04da0e88b0bc166d33615e37 Mon Sep 17 00:00:00 2001 From: Finn Stutzenstein Date: Tue, 18 Aug 2020 10:39:20 +0200 Subject: [PATCH] Mediaservice interface --- docs/interfaces/media-service.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/interfaces/media-service.txt diff --git a/docs/interfaces/media-service.txt b/docs/interfaces/media-service.txt new file mode 100644 index 000000000..95ef96a4b --- /dev/null +++ b/docs/interfaces/media-service.txt @@ -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// + */ +get(meeting_id: Id, path: string): Blob