Skip to content

Instantly share code, notes, and snippets.

@brucellino
Forked from mtorrisi/1-create-task-curl
Created November 16, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brucellino/01609f8b72a70a94a84a9cc3045e1e52 to your computer and use it in GitHub Desktop.
Save brucellino/01609f8b72a70a94a84a9cc3045e1e52 to your computer and use it in GitHub Desktop.
Create Futuregateway task
## COMMAND
curl -i -H "Content-Type: application/json" -X POST -d '{"application":"2","description":"sayhello@csgfsdk test run", "arguments": ["\"I am saying hello!\""], "output_files": [{"name":"sayhello.data"}], "input_files": [{"name":"sayhello.sh"},{"name":"sayhello.txt"}]}' http://151.97.41.44:8888/v1.0/tasks?user=user
## EXPECTED OUTPUT
{
"status": "WAITING",
"application": "2",
"date": "2016-11-16T09:28:47Z",
"description": "sayhello@csgfsdk test run",
"output_files": [
{
"url": "file?path=&name=sayhello.data",
"name": "sayhello.data"
},
{
"url": "file?path=&name=sayhello.out",
"name": "sayhello.out"
},
{
"url": "file?path=&name=sayhello.err",
"name": "sayhello.err"
}
],
"_links": [
{
"href": "/v1.0/tasks/16",
"rel": "self"
},
{
"href": "/v1.0/tasks/16/input",
"rel": "input"
}
],
"user": "user",
"input_files": [
{
"status": "NEEDED",
"name": "sayhello.sh"
},
{
"status": "NEEDED",
"name": "sayhello.txt"
}
],
"id": "16",
"arguments": [
"\"I am saying hello!\""
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment