OACAPI icon indicating copy to clipboard operation
OACAPI copied to clipboard

Support returning CSV from a JSON query

Open guillochon opened this issue 7 years ago • 0 comments

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 https://github.com/flask-restful/flask-restful/issues/726 and https://stackoverflow.com/questions/47654056/flask-attempting-to-serialize-as-json-despite-mimetype-text-plain.

guillochon avatar Dec 30 '17 14:12 guillochon