mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-04 14:37:36 +00:00
feat: Update version to 1.0.6 in pyproject.toml; enhance UsersController with pagination parameters
This commit is contained in:
parent
ab4fe9d399
commit
da24ecdf14
2 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "remnawave-api"
|
||||
version = "1.0.5"
|
||||
version = "1.0.6"
|
||||
description = "A Python SDK for interacting with the Remnawave API."
|
||||
authors = [
|
||||
{name = "Artem",email = "sm1ky@forestsnet.com"}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from typing import Annotated
|
||||
|
||||
from rapid_api_client import Path
|
||||
from rapid_api_client import Path, Query
|
||||
from rapid_api_client.annotations import PydanticBody
|
||||
|
||||
from remnawave_api.models import (
|
||||
|
|
@ -35,18 +35,18 @@ class UsersController(BaseController):
|
|||
@get("/users/v2", response_class=UsersResponseDto)
|
||||
async def get_all_users_v2(
|
||||
self,
|
||||
size: int = 100,
|
||||
start: int = 0
|
||||
start: Annotated[int, Query(description="Index to start pagination from")],
|
||||
size: Annotated[int, Query(description="Number of users per page")],
|
||||
) -> UsersResponseDto:
|
||||
"""
|
||||
Get a paginated list of users.
|
||||
Get users page from the end.
|
||||
|
||||
Args:
|
||||
page (int): Page number from the end (1 = last page).
|
||||
size (int): Number of users per page.
|
||||
start (int): Index to start pagination from.
|
||||
|
||||
Returns:
|
||||
UsersResponseDto: Paginated users list.
|
||||
UsersResponseDto
|
||||
"""
|
||||
...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue