Use API to get a single result file
Hi
I'm trying out the API on my local JATOS server trough swagger.io. I can do calls to post task and download results. But I cannot manage to get the single result file to work.
This is the file that I try to download:
componentResultId: 82
filename: data.txt
Request URL
http://localhost:9000/jatos/api/v1/results/files/data?componentResultId=82
Response:
File does not exist
Am I using the wrong filename? Or do I need something in advance to generate the file?
Comments
Hi!
My answer is most likely much too late, but I want to answer anyway because it might help other people.
Is it possible you forgot the filename suffix '.txt' in your request URL. Your file seems to be named 'data.txt' but in the URL it's only 'data'.
I just tried on cortex.jatos.org to download a file named example.json and it worked. I used the following curl:
Best,
Kristian