feat: patch board and path parameters names converting

This commit is contained in:
2025-08-04 16:59:30 +04:00
parent 3c8655798f
commit 4cbb3409b2
6 changed files with 67 additions and 9 deletions

View File

@ -1,4 +1,4 @@
from fastapi import APIRouter
from fastapi import APIRouter, Path
from backend.dependecies import SessionDependency
from schemas.deal import GetDealsResponse
@ -11,12 +11,12 @@ deal_router = APIRouter(
@deal_router.get(
"/{board_id}",
"/{boardId}",
response_model=GetDealsResponse,
operation_id="get_deals",
)
async def get_deals(
session: SessionDependency,
board_id: int,
board_id: int = Path(alias="boardId"),
):
return await DealService(session).get_deals(board_id)