Skip to content

Support returning CSV from a JSON query #5

Description

@guillochon

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions