-
-
Save brucellino/01609f8b72a70a94a84a9cc3045e1e52 to your computer and use it in GitHub Desktop.
Create Futuregateway task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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