telefonicaid / fiware-cosmos

fiware-cosmos toolkit for administration and support. Includes Sahara plugin
GNU Affero General Public License v3.0
11 stars 15 forks source link

feature/158_create_cosmos_tidoop_api #159

Closed frbattid closed 8 years ago

frbattid commented 8 years ago
$ curl -X GET "http://195.235.93.173:12000/tidoop/v1/version" | python -m json.tool
{
    "version": "0.1.1"
}
$ curl -X POST "http://195.235.93.173:12000/tidoop/v1/user/frb/test_mr_job" -d '{"jar_path":"testpath", "class_name": "dummyClass"}' -H 'Content-Type: application/json' | python -m json.tool
{
    "job_id": "tidoop_job_1456314516663"
}
$ curl -X GET "http://195.235.93.173:12000/tidoop/v1/user/frb/jobs/tidoop_job_1456314516663" | python -m json.tool
{
    "end_time": "0000-00-00 00:00:00",
    "job_id": "tidoop_job_1456314516663",
    "job_type": "undefined",
    "map_progress": 0,
    "reduce_progress": 0,
    "start_time": "Wed Feb 24 2016 13:48:45 GMT+0100 (CET)"
}
pcoello25 commented 8 years ago

LGTM