fastapi-crudrouter
fastapi-crudrouter copied to clipboard
A dynamic FastAPI router that automatically creates CRUD routes for your models
Hi everyone, it would be very nice to have the possibility to customize the "item_id" parameter name in order to have a better api documentation. Thanks Marcel
Probably possible to add [piccolo ORM](https://piccolo-orm.readthedocs.io/en/latest/piccolo/asgi/index.html#routing-frameworks) with very little effort. It has [own CRUD](https://piccolo-api.readthedocs.io/en/latest/crud/piccolo_crud.html) (but not so customizable).
route name will be like this > { "path": "/proxies", "name": "get_all_proxies", "path_regex": "^/proxies$" }, { "path": "/proxies", "name": "create_one_proxies", "path_regex": "^/proxies$" }, { "path": "/proxies", "name": "delete_all_proxies", "path_regex": "^/proxies$"...
Very helpful project, thanks! I came across a small issue: I use [this recipe to simplify the operation ids](https://fastapi.tiangolo.com/advanced/path-operation-advanced-configuration/#using-the-path-operation-function-name-as-the-operationid) generated in the OpenAPI schema. A caveat of applying this simplification...
Probably use ODMantic: https://github.com/art049/odmantic How would you test the implementation? mock a mongo db?
### Discussed in https://github.com/awtkns/fastapi-crudrouter/discussions/108 Originally posted by **voice1** September 29, 2021 Is there any intent to support SQLModel? [https://github.com/tiangolo/sqlmodel](https://github.com/tiangolo/sqlmodel)
Hi! I'm trying to understand if fastapi_crudrouter supports inserting object with nested fields that represent many-to-many relatioships, via the Sqlalchemy ORM. This is the code I have: ```python from sqlalchemy...
I was looking at the implementation for SQLAlchemy and noticed that it takes only the first primary key of the table https://github.com/awtkns/fastapi-crudrouter/blob/master/fastapi_crudrouter/core/sqlalchemy.py#L50 What if I have a composite primary key...
In an upcoming version of CRUDRouter I am hoping to add Query / Filter support. I've created this thread in hopes of getting some community feedback on how you guys...
- Simplification of the _get_one route: use of the get method provided by tortoise instead of using filter. The 404 is still raised if the item does not exist Note...