[Iplant-api-dev] running foundation api jobs by http

Ghiban, Cornel ghiban at cshl.edu
Wed Jan 9 17:16:57 MST 2013


Hi Roger,

Use "software" instead of "application".
Also, submit all the parameters as one hash, no need to group them under "request", "inputs" and "parameters". (or no hash at all).

Cornel
________________________________
From: iplant-api-dev-bounces at iplantcollaborative.org [iplant-api-dev-bounces at iplantcollaborative.org] on behalf of Barthelson, Roger A - (rogerab) [rogerab at email.arizona.edu]
Sent: Wednesday, January 09, 2013 5:36 PM
To: iplant-api-dev at iplantcollaborative.org
Subject: [Iplant-api-dev] running foundation api jobs by http

I am trying, but I have failed completely at running a job by curl command as explained on this page:
https://pods.iplantcollaborative.org/wiki/display/docs/Foundation+API+v1.0#FoundationAPIv1.0-JOBBASIC

I tried the example, too, and it failed. Has something changed? I'm not sure I have ever done this correctly, so I have no idea what is wrong. Everything I submit comes back with this, including
when I submit the sample job submission:
{"status":"error","message":"Invalid job name","result":null}

The sample job I tried running was this:
{
   "request":{
      "application":"head-5.97",
      "name":"Top 5 lines of a neat file",
      "archiveOutput":true,
      "inputs":[
         {
            "inputFile":"/test/myfile.txt"
         }
      ],
      "parameters":[
         {
            "numberOfLines":5
         }
      ]
   }
}
It was submitted as a POST to https://foundation.iplantcollaborative.org/apps-v1/job

My own test job failed, too. It was for GeneSeqer-5.0, my own App.

Roger




Roger Barthelson Ph.D.
Bioinformatics Analyst
iPlant Collaborative
BIO5 Institute, University of Arizona
Phone: 520-977-5249
Email: rogerab at email.arizona.edu
Web: http://www.iplantcollaborative.org/
           http://bio-it.arizona.edu/Roger_Barthelson_Home.html




More information about the Iplant-api-dev mailing list