feat: complete Phases 2 to 5 inclusive - Access Core, Web Cockpit, Hardware enqueuing, Optical Scanner and QA (v0.5.0-beta)

This commit is contained in:
Carlos Tello
2026-10-13 15:47:43 -03:00
parent 78c1a306de
commit 1ba74f7929
53 changed files with 4000 additions and 279 deletions
+29
View File
@@ -0,0 +1,29 @@
# ==============================================================================
# Endpoints de Puestos de Control y Workstations (/api/v1/control-posts)
# ==============================================================================
from typing import List, Dict, Any
from fastapi import APIRouter
from app.schemas.workstation_schema import WorkstationStatusResponse
from app.services.workstation_service import WorkstationService
router = APIRouter()
@router.get(
"/workstation/{name}/status",
response_model=WorkstationStatusResponse,
summary="Consultar estado y carriles asignados a una Workstation",
)
async def get_workstation_status(name: str):
"""Verifica si la tablet/estación está autorizada como Puesto de Control y retorna sus carriles."""
return WorkstationService.obtener_estado_workstation(name)
@router.get(
"/workstations",
response_model=List[Dict[str, Any]],
summary="Listar todas las Workstations registradas",
)
async def list_workstations():
"""Listado de estaciones para selector de tablets o supervisores."""
return WorkstationService.listar_estaciones_disponibles()