Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support returning CSV from a JSON query #5

Open
guillochon opened this issue Dec 30, 2017 · 0 comments
Open

Support returning CSV from a JSON query #5

guillochon opened this issue Dec 30, 2017 · 0 comments

Comments

@guillochon
Copy link
Member

At the moment flask-restful has a limitation where it cannot return a mimetype that is different from the requesting mimetype (it ignores the Accept header). A work-around might be possible by designing a custom api class.

For more info see flask-restful/flask-restful#726 and https://stackoverflow.com/questions/47654056/flask-attempting-to-serialize-as-json-despite-mimetype-text-plain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant