Skip to content

Commit 9c9ed24

Browse files
add missing import for paginated_response in pagination example
1 parent 3109c05 commit 9c9ed24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/user-guide/api/endpoints.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def get_user(
5050
### 2. Get Multiple Items (with Pagination)
5151

5252
```python
53-
from fastcrud.paginated import PaginatedListResponse
53+
from fastcrud.paginated import PaginatedListResponse, paginated_response
5454

5555
@router.get("/", response_model=PaginatedListResponse[UserRead])
5656
async def get_users(
@@ -66,10 +66,9 @@ async def get_users(
6666
return_as_model=True,
6767
return_total_count=True
6868
)
69-
7069
return paginated_response(
7170
crud_data=users,
72-
page=page,
71+
page=page,
7372
items_per_page=items_per_page
7473
)
7574
```

0 commit comments

Comments
 (0)