TOMToolkit / tom_base

The base Django project for a Target and Observation Manager
https://tom-toolkit.readthedocs.io
GNU General Public License v3.0
26 stars 46 forks source link

API for bulk download of ReducedDatums for a set of targets #631

Open rachel3834 opened 1 year ago

rachel3834 commented 1 year ago

Is your feature request related to a problem? Please describe. A user team would like to download the ReducedDatum products (e.g. lightcurves) stored for a set of targets en masse, without having to click a button to download each lightcurve for each target in turn.

Describe the solution you'd like An API designed to receive a list of TargetNames. The TOM should identify which Targets these correspond to, and respond with a JSON object containing the ReducedDatum objects available for those Targets.

jchate6 commented 1 year ago

This feels like a very specific use case for a dramatically missing Tom functionality of simply downloading data. (See Issue #248 ) Unless it was uploaded from another file, we cannot download it without directly querying the DB.

This seems like a pretty significant oversight that we should rectify in a general sense in addition to the specific use case of an API endpoint to retrieve JSON.