diff --git a/fastcrud/crud/fast_crud.py b/fastcrud/crud/fast_crud.py index ca3c8f9..ef83018 100644 --- a/fastcrud/crud/fast_crud.py +++ b/fastcrud/crud/fast_crud.py @@ -104,6 +104,8 @@ class FastCRUD( Soft deletes a record if it has an `"is_deleted"` attribute (or other attribute as defined by `is_deleted_column`); otherwise, performs a hard delete. Examples: + ??? example "Models and Schemas Used Below" + ??? example "`customer/model.py`" ```python diff --git a/fastcrud/endpoint/crud_router.py b/fastcrud/endpoint/crud_router.py index 8953663..8e0a8c1 100644 --- a/fastcrud/endpoint/crud_router.py +++ b/fastcrud/endpoint/crud_router.py @@ -82,8 +82,6 @@ def crud_router( ValueError: If both `included_methods` and `deleted_methods` are provided. Examples: - Basic Setup: - ??? example "Models and Schemas Used Below" ??? example "`mymodel/model.py`" @@ -171,6 +169,8 @@ def crud_router( --8<-- ``` + Basic Setup: + ```python mymodel_router = crud_router( session=async_session,