waves-core icon indicating copy to clipboard operation
waves-core copied to clipboard

Downloading file from REST API

Open CVroland opened this issue 7 years ago • 3 comments

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

CVroland avatar Nov 05 '18 12:11 CVroland

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.

CVroland avatar Nov 05 '18 14:11 CVroland

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

marcoooo avatar Nov 21 '18 21:11 marcoooo

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.

CVroland avatar Nov 22 '18 09:11 CVroland