1
0
mirror of https://github.com/ijaric/voice_assistant.git synced 2025-12-16 09:56:16 +00:00

feat: new file structure

This commit is contained in:
Artem Litvinov
2023-10-03 21:29:55 +01:00
parent eab9177c00
commit 89660d1ac7
110 changed files with 2785 additions and 7 deletions

View File

View File

View File

@@ -0,0 +1,3 @@
from .health import basic_router
__all__ = ["basic_router"]

View File

@@ -0,0 +1,5 @@
from .liveness_probe import basic_router
__all__ = [
"basic_router",
]

View File

@@ -0,0 +1,15 @@
import fastapi
import lib.api.v1.schemas as api_shemas
basic_router = fastapi.APIRouter()
@basic_router.get(
"/",
response_model=api_shemas.HealthResponse,
summary="Статус работоспособности",
description="Проверяет доступность сервиса FastAPI.",
)
async def health():
return api_shemas.HealthResponse(status="healthy")

View File

@@ -0,0 +1,3 @@
from .base import HealthResponse
__all__ = ["HealthResponse"]

View File

@@ -0,0 +1,5 @@
import pydantic
class HealthResponse(pydantic.BaseModel):
status: str = pydantic.Field(default=..., examples=["healthy"], description="Схема доступности сервиса")