Data Storage Server
The data storage server provides a browser interface as well as a REST API. A user account is required to access the server and get an API key for the REST API via the browser interface. The source code can be found on Github.
REST API
The data storage server provides a browser interface as well as a REST API. A user account is required to access the server and get an API key for the REST API via the browser interface.
Container Upload
- Method:
POST
- URL:
http://<server>/api/datasets/
- Content:
Container files
- Header:
Authorization: Token <key>
Response:
HTTP return code |
Description |
Returned content |
|---|---|---|
|
Successful container upload |
|
|
Existing static dataset with same |
JSON object |
|
Malformed or invalid container |
|
|
Unauthorized access |
|
|
Existing completed dataset with same UUID |
|
|
Invalid container format |
|
|
Internal server error |
Container Download
- Method:
GET
- URL:
http://<server>/api/datasets/<uuid>/download/
- Header:
Authorization: Token <key>
Response:
HTTP return code |
Description |
Returned content |
|---|---|---|
|
Success |
Data container |
|
Dataset deleted |
|
|
Dataset replaced |
Last replacement of container |
|
Unauthorized access |
|
|
No dataset available |
|
|
Internal server error |