Closed atruskie closed 8 years ago
Route: /jobs/1/results
Response:
Initial spec calls only for very basic file access.
It will basically expose files. Route will need to be extendable for full path seeking... either /jobs/1/results/Towsey.Acoustic/ACI.csv or /jobs/1/results?file=/Towsey.Acoustic/ACI.csv
I'd even seriously think about exposing the results folders as rails static file locations.
The other features we've talked about, but should be specced out in the next milestone
Also, JSON response for getting a directory (e.g. /jobs/1/results/Towsey.Acoustic/
) should be just a list of files in directory
Just a side note: whatever solution we choose for exposing files here, we should also factor out so the functionality is shared with the audio_recordings/{id}/analysis.{extension}
end point (i.e. system analysis jobs)
I'm a little confused - /jobs
and /audio_recordings/:id/analysis.:format
essentially do the same thing? What's the difference?
Their functionality will be the same (I.e. Allowing access to files on disk) but the way the data is stored is really different.
Analysis_results (from custom jobs) are stored in job folders and are nested under /jobs
System analysis results more simply overwrite existing results. We currently have an endpoint for them nested under /audio_recordings (since when they were made there was no /jobs endpoint and it doesn't make sense to nest then under jobs anyway)
Currently recursive when it should not be.
TODO: spec out
Related to: https://github.com/QutBioacoustics/baw-private/issues/83
https://github.com/QutBioacoustics/baw-server/issues/193