ra-data-postgrest
ra-data-postgrest copied to clipboard
Support 'Accept: 'text/csv'' response?
Hi,
First off, thank you for the great work on this data provider for PostgREST! It's been a tremendous asset in my project. I would like to request a feature or get your thoughts on supporting the 'Accept: text/csv' header and its response in this provider. PostgREST offers the ability to export data in CSV format by including this header, which could be really useful for exporting lists directly from React Admin.
Background: I've added the 'Accept: text/csv' header using the meta property that ra-data-postgrest provides via getList. This works great for exporting lists in CSV format directly from PostgREST, but...
Issue: I'm encountering difficulties with the response handling. The current implementation expects JSON responses, which is incompatible when receiving CSV data from the API.
Feature Request: Does CSV handling make sense to implement within this library, or do you have guidance on how to achieve it?
Thank you again for your efforts on this project! Looking forward to your insights.