lirmm / waves-core

WAVES is a reusable web application dedicated to bioinformatic tool integration
https://waves-core.readthedocs.io
Other
17 stars 5 forks source link

Downloading file from REST API #5

Open CVroland opened 5 years ago

CVroland commented 5 years ago

There's no documented solutions for downloading an output (or input) file from the server with the REST API.

CVroland commented 5 years ago

Found :

from coreapi import Client, auth
#create of the coreapi client and document
...
#get the output file
client.action(document, ["jobs", "output"], params={'unique_id':str(unique_id), 'app_short_name':str(app_short_name)})

The documentation needs to be update I think jobs.input should be the same for input files.

marcoooo commented 5 years ago

Hi thank you for your feedback. I am not sure I understand the question, where is the documentation wrong ? and did you manage to finally download an output from api ?

An actual client does not exists (yet) for waves, only one embryo is available here, with no guarantee at all. https://github.com/marcoooo/waves-api-client

CVroland commented 5 years ago

The documentation didn't explain what does this function. In others words, if you don't know how to download, you need to test all the function.