fastapi-crudrouter
fastapi-crudrouter copied to clipboard
A dynamic FastAPI router that automatically creates CRUD routes for your models
https://fastapi-crudrouter.awtkns.com/routing "Working" ``` from pydantic import BaseModel from fastapi import FastAPI from fastapi_crudrouter import MemoryCRUDRouter as CRUDRouter class Potato(BaseModel): id: int color: str mass: float app = FastAPI() router =...
Hello, Would this package work with the (somewhat) new version of the SQLAlchemy ORM which is async? They use different engine classes (AsyncEngine + AsyncSession VS Engine + Session) Thanks...
#66, #72, no **_real_** reason for wontfix label. And this is not "working as intended" whatsoever. Is it _intended_, that everyone should make their forks simply to fix error message?
# FastAPI-CrudRouter + Tortoise Tortoise models can have 3 "types" of pydantic models: - Regular pydantic models (BaseModel) - Uninitiated Tortoise's pydantic models (PydanticModel) - Initiated Tortoise's pydantic models (PydanticModel...
- [x] Sqlalchemy #48 - [x] Ormar #48 - [ ] In Memory - [ ] Databases - [ ] Tortoise
Right now you return the models ordered by id (or not really ordered didn't get into details of all backends, and without explicit order by the order in db is...
Hi ;) I realized I'm doing something pretty similar right now for my API endpoints but would like to use your library to save some work. But for that I...
Pretty common requirement is returning a list of items with only selected fields populated, while getting an item per id should return all fields (or at least different set of...
Pydantic has a way to [specify a function](https://pydantic-docs.helpmanual.io/usage/models/#field-with-dynamic-default-value) that provides a default value for a field. This pull request adds support for this in [fastapi-crudrouter](https://github.com/awtkns/fastapi-crudrouter), for primary keys that utilize...