Pageable
Description: A generic paginated response model for handling lists of items.
Attributes
| Name | Type | Description |
|---|---|---|
| items | List[T] | |
| total | Optional[Annotated[int, Field(strict=True, ge=0)]] | |
| page | Optional[Annotated[int, Field(strict=True, ge=1)]] | |
| size | Optional[Annotated[int, Field(strict=True, ge=1)]] | |
| pages | Optional[Annotated[int, Field(strict=True, ge=0)]] |
Methods
| Name | Description |
|---|---|
| iter_pages | Iterate over all pages using the configured list method. |
| iter_items | Iterate over all items across all pages. |