mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-12-16 16:36:18 +00:00
Ручка жизнеспосоьности
This commit is contained in:
1
src/fastapi_app/lib/api/schemas/__init__.py
Normal file
1
src/fastapi_app/lib/api/schemas/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from .entity import *
|
||||||
12
src/fastapi_app/lib/api/schemas/entity.py
Normal file
12
src/fastapi_app/lib/api/schemas/entity.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import uuid
|
||||||
|
|
||||||
|
import pydantic
|
||||||
|
|
||||||
|
|
||||||
|
class Token(pydantic.BaseModel):
|
||||||
|
sub: uuid.UUID
|
||||||
|
exp: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Healthy(pydantic.BaseModel):
|
||||||
|
status: str = pydantic.Field(..., example="healthy", description="Схема доступности сервиса")
|
||||||
1
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
1
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
from .liveness_probe import router as health_router
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import uuid
|
|
||||||
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
|
|
||||||
class Token(pydantic.BaseModel):
|
|
||||||
sub: uuid.UUID
|
|
||||||
exp: int | None = None
|
|
||||||
Reference in New Issue
Block a user