Skip to content

Instantly share code, notes, and snippets.

@mtorrisi
mtorrisi / 2-upload-files-curl
Created November 16, 2016 14:15
Upload input files
## COMMAND
curl -i -F "file[]=@sayhello.txt" -F "file[]=@sayhello.sh" "http://151.97.41.66:8888/v1.0/tasks/16/input?user=user"
## EXPECTED OUTPUT
{
"files": [
"sayhello.txt",
"sayhello.sh"
],
"message": "uploaded",
@mtorrisi
mtorrisi / 3-check-status-curl
Last active November 16, 2016 14:12
Get task status
## COMMAND
curl -X GET "http://151.97.41.66:8888/v1.0/tasks/16"
## EXPECTED OUTPUT
{
"last_change": "2016-11-16T09:31:33Z",
"input_files": [
{
"name": "sayhello.sh",
"url": "file?path=%2Ftmp%2F137e989e-abdf-11e6-b19b-fa163e72d9ab&name=sayhello.sh",