elixir-cloud-aai / trs-filer

Lightweight, flexible Flask/Gunicorn-based GA4GH TRS implementation
Apache License 2.0
8 stars 6 forks source link

Implement "application/zip" content type for "GET .../files" endpoint #72

Open shiksha11 opened 4 years ago

shiksha11 commented 4 years ago

Description

The TRS specification specifies that the GET /tools/{id}/versions/{version_id}/{type}/files endpoint may return, upon request (format parameter set to zip) a ZIP archive of all files, rather than the default response of a list of FileWrapper objects. This behavior was not yet implemented in #65.

Proposed solution

Resources outlining how to return the response as application/zip instead of application/json for the given endpoint are listed below: