Добавлен эндпоинт getVaccsReport

This commit is contained in:
2025-09-29 08:53:45 +03:00
parent 02a35d0441
commit 365d6b1696
3 changed files with 27 additions and 5 deletions

View File

@ -70,3 +70,13 @@ class VITACORE_API(AsyncClient):
case _:
self.logger.error(req.json())
raise e.UnknownException
async def getVaccsReport(self, patId: str):
req = await self.get('/getVaccsReport', params={'patId': patId})
match req.status_code:
case st.HTTP_200_OK:
return s.VaccsReportModel.model_validate(req.json())
case _:
self.logger.error(req.json())
raise e.UnknownException