diff --git a/book.toml b/book.toml index 743ce46..1920871 100644 --- a/book.toml +++ b/book.toml @@ -2,4 +2,5 @@ title = "Sandbox Documentation" language = "en" [output.html] -default-theme = "light" \ No newline at end of file +theme = "midnight" +default-theme = "midnight" \ No newline at end of file diff --git a/src/sandbox/data_pool.md b/src/sandbox/data_pool.md index 6aaf2c8..f5b0412 100644 --- a/src/sandbox/data_pool.md +++ b/src/sandbox/data_pool.md @@ -22,10 +22,17 @@ To use the headless object storage, you can upload a file via REST-Interface or files = {'fileUpload': (filename, open(filename, 'rb'),'text/csv')} r = requests.post(url, files=files) ``` + +or using curl as command line tool: + +``` +curl -F fileUpload=@file.zip https://share.storage.sandbox.iuk.hdm-stuttgart.de/upload +``` + **Example JSON response** ```json { - "PublicUrl": "https://storage.sandbox.iuk.hdm-stuttgart.de/upload/a1236b2b-49bf-4047-a536-20dab15b7777/untitled.txt", + "PublicUrl": "https://share.storage.sandbox.iuk.hdm-stuttgart.de/upload/f2a69e9a-f60b-418d-a678-efce181fb8a5/untitled.txt", "Size": 11, "Expiration": "2023-10-04T00:00:00Z" }