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

This commit is contained in:
2025-09-29 08:45:04 +03:00
parent aed85d5201
commit fa83caf49d
3 changed files with 29 additions and 2 deletions

View File

@ -50,3 +50,13 @@ class VITACORE_API(AsyncClient):
case _:
self.logger.error(req.json())
raise e.UnknownException
async def getSpecsV021(self):
req = await self.get('/getSpecsV021')
match req.status_code:
case st.HTTP_200_OK:
return s.SpecsV021Model.model_validate(req.json())
case _:
self.logger.error(req.json())
raise e.UnknownException