All requests for this API must be authenticated. The authentication can be achieved in the following ways:
Add a file to storage.
POST /storage
The json with information about the file.
/storage/storage/1Reads a file from storage.
GET /storage
| Name | Location | Description | Schema |
|---|---|---|---|
| id | url | The key of the file. | long |
| version | url | The version of the file. Optional. | long |
| action | url | 'download' to force download. 'view' otherwise. | string |
The binary file.
/storage?id=1&action=viewAdd a file version to storage.
POST /storage/file-version
The json with information about the file.
/storage/file-version/storage/file-version/1Reads a file from storage.
GET /storage/file-version
| Name | Location | Description | Schema |
|---|---|---|---|
| id | url | The key of the file. | long |
| version | url | The version of the file. Optional. | long |
| action | url | 'download' to force download. 'view' otherwise. | string |
The binary file.
/storage/file-version?id=1&action=view