You've already forked RekomenciBackend
feat(): proper type annotation for resume routes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from decimal import Decimal
|
||||
from enum import StrEnum
|
||||
from typing import Annotated
|
||||
|
||||
from dishka.integrations.fastapi import DishkaRoute
|
||||
from fastapi import APIRouter, Depends, Query
|
||||
@@ -204,8 +205,8 @@ async def get_resume(
|
||||
},
|
||||
)
|
||||
async def get_resume_list(
|
||||
limit: int = Query(..., ge=1, le=100, description="Number of resumes to return", examples=[10]),
|
||||
offset: int = Query(..., ge=0, description="Number of resumes to skip", examples=[0]),
|
||||
limit: Annotated[int, Query(ge=1, le=100, description="Number of resumes to return", examples=[10])],
|
||||
offset: Annotated[int, Query(ge=0, description="Number of resumes to skip", examples=[0])],
|
||||
) -> GetResumeListResponse:
|
||||
# TODO: Implement resume list retrieval
|
||||
raise NotImplementedError
|
||||
@@ -267,8 +268,8 @@ class PatchResumeResponse(BaseModel):
|
||||
)
|
||||
async def get_resume_history(
|
||||
resume_id: str,
|
||||
limit: int = Query(..., ge=1, le=100, description="Number of history items to return", examples=[10]),
|
||||
offset: int = Query(..., ge=0, description="Number of history items to skip", examples=[0]),
|
||||
limit: Annotated[int, Query(ge=1, le=100, description="Number of history items to return", examples=[10])],
|
||||
offset: Annotated[int, Query(ge=0, description="Number of history items to skip", examples=[0])],
|
||||
) -> GetResumeHistoryResponse:
|
||||
# TODO: Implement resume history retrieval
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user