A class-based template for building a RESTful API in Flask