feat: patch board and path parameters names converting
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user