You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realise this has been discussed briefly at #13. However, we don't yet have a good solution.
The problem is this: I want my API to input and output data in both CSV and JSON format. When dealing with JSON I of course want to use the JSON API spec, and flask-rest-jsonapi should deal with that perfectly. The problem is, I don't want to duplicate all my code to also support CSV. I want the URLs, the schemas, and the models to be exactly the same as the JSON API. The only difference is that I want a hook that runs before loading and after dumping JSON data, when the Accept/Content Type header is csv, in order to convert to/from JSON. Is this possible?
The text was updated successfully, but these errors were encountered:
multimeric
changed the title
Non-JSON Accept MIME types
Non-JSON MIME types
Sep 13, 2019
I realise this has been discussed briefly at #13. However, we don't yet have a good solution.
The problem is this: I want my API to input and output data in both CSV and JSON format. When dealing with JSON I of course want to use the JSON API spec, and
flask-rest-jsonapi
should deal with that perfectly. The problem is, I don't want to duplicate all my code to also support CSV. I want the URLs, the schemas, and the models to be exactly the same as the JSON API. The only difference is that I want a hook that runs before loading and after dumping JSON data, when the Accept/Content Type header iscsv
, in order to convert to/from JSON. Is this possible?The text was updated successfully, but these errors were encountered: