We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3109c05 commit 9c9ed24Copy full SHA for 9c9ed24
docs/user-guide/api/endpoints.md
@@ -50,7 +50,7 @@ async def get_user(
50
### 2. Get Multiple Items (with Pagination)
51
52
```python
53
-from fastcrud.paginated import PaginatedListResponse
+from fastcrud.paginated import PaginatedListResponse, paginated_response
54
55
@router.get("/", response_model=PaginatedListResponse[UserRead])
56
async def get_users(
@@ -66,10 +66,9 @@ async def get_users(
66
return_as_model=True,
67
return_total_count=True
68
)
69
-
70
return paginated_response(
71
crud_data=users,
72
- page=page,
+ page=page,
73
items_per_page=items_per_page
74
75
```
0 commit comments