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
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.
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: