feat: paginated list responses, issue sorting + filtering by assignee/tag
This commit is contained in:
@@ -198,3 +198,15 @@ class MilestoneResponse(MilestoneBase):
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# Paginated response
|
||||
from typing import Generic, TypeVar
|
||||
T = TypeVar("T")
|
||||
|
||||
class PaginatedResponse(BaseModel, Generic[T]):
|
||||
items: List[T]
|
||||
total: int
|
||||
page: int
|
||||
page_size: int
|
||||
total_pages: int
|
||||
|
||||
Reference in New Issue
Block a user