Skip to content
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

Open
jonathansick opened this issue Apr 30, 2018 · 1 comment
Open

Use marshmallow / flask-marshmallow #28

jonathansick opened this issue Apr 30, 2018 · 1 comment

Comments

@jonathansick
Copy link
Member

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)

@jonathansick
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant