From d63a51e30e3d8c546616c14fb5b10151866ae115 Mon Sep 17 00:00:00 2001 From: Malte Grosse Date: Thu, 13 Jun 2024 14:25:09 +0200 Subject: [PATCH] added curl example --- book.toml | 3 ++- src/sandbox/data_pool.md | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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" }