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

This commit is contained in:
2025-09-30 10:50:26 +03:00
parent eff590df2b
commit 92b889faf5
3 changed files with 75 additions and 5 deletions

View File

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