helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanak Biscuitwala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HELIX-455) Add REST API for submitting jobs
Date Mon, 30 Jun 2014 20:28:24 GMT

     [ https://issues.apache.org/jira/browse/HELIX-455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kanak Biscuitwala resolved HELIX-455.
-------------------------------------

    Resolution: Fixed

Added host:port/clusters/clusterName/workflows endpoint.

GET will list all workflows:
{noformat}
% curl http://localhost:12924/clusters/MyCluster/workflows
{
  "id" : "Workflows",
  "simpleFields" : {
  },
  "listFields" : {
    "WorkflowList" : [ "MyWorkflow1234" ]
  },
  "mapFields" : {
  }
}
{noformat}

POST will submit a new workflow as yaml:
{noformat}
% curl -X POST --data-binary @/tmp/mytask.yaml -H 'Content-Type: text/x-yaml' http://localhost:12924/clusters/MyCluster/workflows
{
  "id" : "Workflows",
  "simpleFields" : {
  },
  "listFields" : {
    "WorkflowList" : [ "MyWorkflow1234" ]
  },
  "mapFields" : {
  }
}
{noformat}

Review: https://reviews.apache.org/r/23134/

> Add REST API for submitting jobs
> --------------------------------
>
>                 Key: HELIX-455
>                 URL: https://issues.apache.org/jira/browse/HELIX-455
>             Project: Apache Helix
>          Issue Type: Sub-task
>            Reporter: Kanak Biscuitwala
>            Assignee: Kanak Biscuitwala
>
> It should be a POST with YAML as input.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message