File tree 1 file changed +2
-3
lines changed 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
565
565
│ ├── api # Folder containing API-related logic.
566
566
│ │ ├── __init__.py
567
567
│ │ ├── dependencies.py # Defines dependencies for use across API endpoints.
568
- │ │ ├── paginated.py # Utilities for API response pagination.
569
568
│ │ │
570
569
│ │ └── v1 # Version 1 of the API.
571
570
│ │ ├── __init__.py
@@ -1020,10 +1019,10 @@ With the `get_multi` method we get a python `dict` with full suport for paginati
1020
1019
}
1021
1020
```
1022
1021
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:
1024
1023
1025
1024
``` python
1026
- from app.api .paginated import (
1025
+ from fastcrud .paginated import (
1027
1026
PaginatedListResponse, # What you'll use as a response_model to validate
1028
1027
paginated_response, # Creates a paginated response based on the parameters
1029
1028
compute_offset, # Calculate the offset for pagination ((page - 1) * items_per_page)
You can’t perform that action at this time.
0 commit comments