Skip to content

CRUD tools #15

@nyejon

Description

@nyejon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions