flask_api_example icon indicating copy to clipboard operation
flask_api_example copied to clipboard

Sample API using SQLAlchemy, Marshamllow and Flask Restful. Split into several service layers: Validation layer, REST Controller, Service Layer, Repository Layer.

Flask Restful API example

Here is a sample API using SQLAlchemy, Marshamllow and Flask Restful. Split into several service layers: Validation layer, REST Controller, Service Layer, Repository Layer. The goal of this repository is to provide a foundation for people to build a complex API aswell as show how SQLAlchemy, Marshmallow and Flask interact with eachother. I am by no means a master of flask or SQLAlchemy or Marshmallow so feel free to improve this code base or fix any errors I may have made ;)

Documentation:

  • Flask: http://flask.pocoo.org/
  • SQLAlchemy: http://docs2.sqlalchemy.org/en/latest/
  • Marshmallow: http://marshmallow.readthedocs.io/en/latest/

About me:

18yr old python developer. Co-Founder of this app. Student at Holberton School. Follow me on Twitter here.