Question: workflow API problem
0
gravatar for sfischer
3.3 years ago by
sfischer50
United States
sfischer50 wrote:

Hi,

I issue this call to the API:

https://usegalaxy.org/api/workflows/ba06423ff18d37cc/invocations?key=REDACTED

and get this response:

[
  {
    "update_time": "2015-08-06T11:51:49.365687",
    "uuid": "665407a8-3c31-11e5-bd2a-005056a52a46",
    "history_id": "148c3a937daeb25d",
    "state": "scheduled",
    "workflow_id": "2f758b3dbd05a2fd",
    "model_class": "WorkflowInvocation",
    "id": "b15748f3ceed3c8a"
  }
]

My first question is why is the workflow_id in the JSON different than the workflow ID in the request?

My second question is that in the API docs, it shows this:

GET /api/workflows/{workflow_id}/invocation/{invocation_id}

I tried that with all combinations of IDs i could think of, but always get ERROR: NOT FOUND

https://usegalaxy.org/api/workflows/ba06423ff18d37cc/invocation/2f758b3dbd05a2fd?key=REDACTED

https://usegalaxy.org/api/workflows/ba06423ff18d37cc/invocation/b15748f3ceed3c8a?key=REDACTED

https://usegalaxy.org/api/workflows/2f758b3dbd05a2fd/invocation/b15748f3ceed3c8a?key=REDACTED

what am i doing wrong?

thanks,

steve

workflow api • 866 views
ADD COMMENTlink modified 3.3 years ago by Dannon Baker3.7k • written 3.3 years ago by sfischer50
0
gravatar for sfischer
3.3 years ago by
sfischer50
United States
sfischer50 wrote:

OK, sorry.  I figured it out.  It is a typo in the API Documentation. 

http://galaxy-dist.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html#module-galaxy.webapps.galaxy.api.workflows

The doc says:

GET /api/workflows/{workflow_id}/invocation/{invocation_id}

but should say:

GET /api/workflows/{workflow_id}/invocations/{invocation_id}

this request worked:

https://usegalaxy.org/api/workflows/ba06423ff18d37cc/invocations/b15748f3ceed3c8a?key=REDACTED

steve

ADD COMMENTlink modified 3.3 years ago by Dannon Baker3.7k • written 3.3 years ago by sfischer50

Thanks for noticing this, I've opened a PR to correct this in https://github.com/galaxyproject/galaxy/pull/565

ADD REPLYlink written 3.3 years ago by Dannon Baker3.7k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 173 users visited in the last hour