djaodjin/djaodjin-saas

Add endpoints to download reports

Closed this issue · 1 comments

All the reports in api/metrics.py can be viewed through the Web interface, but there are no download end points to get the data as a .csv instead of a JSON blob returned by an API.

This functionality could be implemented as separate DownloadViews, though maybe best as a Content-Type HTTP header to the API endpoints.

The CSV generated by the previous PR has rotated columns/rows vs. the online Web presentation.