Implement "application/zip" content type for "GET .../files" endpoint #72
Labels
priority: medium
Medium priority
type: feature
New feature or request
workload: hours
Likely takes hours to resolve
Description
The TRS specification specifies that the
GET /tools/{id}/versions/{version_id}/{type}/files
endpoint may return, upon request (format
parameter set tozip
) a ZIP archive of all files, rather than the default response of a list ofFileWrapper
objects. This behavior was not yet implemented in #65.Proposed solution
Resources outlining how to return the response as
application/zip
instead ofapplication/json
for the given endpoint are listed below:FileWrapper.content
for each file) needs to be created first, ideally in memory; in this ZIP archive, contents of individual file objects should be available as files with a relative path and filename that should, for each file, be taken fromToolFile.path
(paths are relative to thePRIMARY_DESCRIPTOR
file according toToolFile.file_type
)trs-filer/trs_filer/ga4gh/trs/server.py
Line 407 in 2158df4
The text was updated successfully, but these errors were encountered: