feat: residues accounting
This commit is contained in:
@@ -16,8 +16,6 @@ client_router = APIRouter(
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
@client_router.get('/search', operation_id='search_clients')
|
||||
async def search_clients(
|
||||
name: str,
|
||||
@@ -52,6 +50,18 @@ async def get_all_clients(
|
||||
return await ClientService(session).get_all()
|
||||
|
||||
|
||||
@client_router.get(
|
||||
'/get/{client_id}',
|
||||
operation_id='get_client',
|
||||
response_model=ClientGetResponse
|
||||
)
|
||||
async def get_client(
|
||||
session: Annotated[AsyncSession, Depends(get_session)],
|
||||
client_id: int,
|
||||
):
|
||||
return await ClientService(session).get_by_id(client_id)
|
||||
|
||||
|
||||
@client_router.post(
|
||||
'/create',
|
||||
operation_id='create_client_api',
|
||||
|
||||
Reference in New Issue
Block a user