-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Hi @dmontagu
Nice work here.
I have developed some CRUD tools, using the FastAPI postgres template "CRUD" base that works together with your CBV. I have also added sorting and filtering using sqlalchemy_filters that can be defined for each CBV.
This should make it much easier to build a basic CRUD app for fast-api.
The filter /sort fields can work through joins too.
This allows for any endpoint to take defined parameters like:
/api/v1/modelname/?limit=100&field_1=eq:something&model2___field_1=eq:somethingelse&sort_by=field1:desc,model2__field1:asc
Basically this includes a CRUD base for the database with each model inheriting from this.
A base CBV that will be used for the standard CRUD stuff.
I think this could work well being in this separate project instead of in the cookiecutter template.
Could you see this fit into the scope of this project?
Thanks,
Jonathan