Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading file from REST API #5

Open
CVroland opened this issue Nov 5, 2018 · 3 comments
Open

Downloading file from REST API #5

CVroland opened this issue Nov 5, 2018 · 3 comments

Comments

@CVroland
Copy link

CVroland commented Nov 5, 2018

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

@CVroland
Copy link
Author

CVroland commented Nov 5, 2018

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
Copy link
Contributor

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants