Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 883 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 883 Bytes

file-share-sync-service

This file service only serves files. This service is only for retreiving those files by their share://.

Environment variables

API

GET /download

Download the content of the file.

Query paramaters

  • uri (required): name for the downloaded file (e.g. /download?uri=share://foo.pdf)
  • name (optional): name for the downloaded file (e.g. /download?name=report.pdf)

Response 200 Ok

Expected response, the file is returned.

Response 400 Bad Request

Bad request, or no access allowed

Response 404 Bad Request

No file could be found with the given uri (on disk).