djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

Add endpoints to download reports #288

Closed smirolo closed 6 months ago

smirolo commented 10 months ago

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.

smirolo commented 9 months ago

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