File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,6 @@ First, you may want to take a look at the project structure and understand what
565565 │ ├── api # Folder containing API-related logic.
566566 │ │ ├── __init__.py
567567 │ │ ├── dependencies.py # Defines dependencies for use across API endpoints.
568- │ │ ├── paginated.py # Utilities for API response pagination.
569568 │ │ │
570569 │ │ └── v1 # Version 1 of the API.
571570 │ │ ├── __init__.py
@@ -1020,10 +1019,10 @@ With the `get_multi` method we get a python `dict` with full suport for paginati
10201019}
10211020```
10221021
1023- And in the endpoint, we can import from ` app/api/ paginated` the following functions and Pydantic Schema:
1022+ And in the endpoint, we can import from ` fastcrud. paginated` the following functions and Pydantic Schema:
10241023
10251024``` python
1026- from app.api .paginated import (
1025+ from fastcrud .paginated import (
10271026 PaginatedListResponse, # What you'll use as a response_model to validate
10281027 paginated_response, # Creates a paginated response based on the parameters
10291028 compute_offset, # Calculate the offset for pagination ((page - 1) * items_per_page)
You can’t perform that action at this time.
0 commit comments