-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use marshmallow / flask-marshmallow #28
Comments
Also look at: https://github.com/marshmallow-code/marshmallow-jsonapi for JSON API. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now we're using SQLAlchemy models to create JSON output (and interpret JSON inputs) for the endpoints. This means that the models are coupled to the endpoints. A better approach is to create a transformation layer between the models and the endpoints. Marshmallow is the ideal tool for this with Flask.
See also: Ch 6 of *Build APIs you won't hate)
The text was updated successfully, but these errors were encountered: