Skip to content

Reusable CRUD #79

@revmischa

Description

@revmischa

I would like to build a reusable CRUD view class on top of flask-rest-api. I built one previously fairly close to flask-restful's design, and was wondering if anything currently exists or you have tips or suggestions of how to proceed.

The problem I am trying to solve is building the same list/get/update/delete endpoints over and over for various DB models. I want to declare things like access controls, default schema for serialization, what fields are permitted to update, DB model class, relationships to prefetch (i.e. joinedload) for list view, and auto-registration of endpoints via __init_subclass__.

Anything you'd suggest or like to see? Anything like this exist already on top of flask-rest-api?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions