feat: Update version to 1.0.6 in pyproject.toml; enhance UsersController with pagination parameters

This commit is contained in:
Artem 2025-04-24 21:43:39 +02:00
parent ab4fe9d399
commit da24ecdf14
No known key found for this signature in database
GPG key ID: 833485276B7902CE
2 changed files with 7 additions and 7 deletions

View file

@ -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"}

View file

@ -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
"""
...