- Fix error de sintaxis SQL en cálculo de tickets 'at risk' - Fix error de timezone (offset-naive vs offset-aware datetimes) - Implementado sistema completo de SLA Management - Agregados endpoints: /sla/dashboard, /sla/violations, /sla/at-risk - Creadas vistas frontend para dashboard, violaciones y tickets en riesgo - Actualizado sistema de Celery para monitoreo automático de SLAs - Mejorada configuración de categorías con tiempos SLA personalizables - Corregidos problemas de proxy en configuración de Vite - Agregado troubleshooting guide en README Archivos principales modificados: - backend/app/api/v1/endpoints/sla.py (nuevo) - backend/app/api/schemas/sla.py (nuevo) - frontend-internal/src/routes/sla/ (nuevo módulo completo) - workers/app/tasks/sla_tasks.py (queries async mejoradas) Documentación: docs/changelog-2026-02-17.md
76 lines
1.3 KiB
Python
76 lines
1.3 KiB
Python
"""
|
|
API v1 Router - ServiceManagerWeb
|
|
|
|
Router principal para la API v1
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import auth, health, tenants, users, systems, categories, tickets, client_profile, audit, sla
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Health check routes
|
|
api_router.include_router(
|
|
health.router,
|
|
tags=["health"]
|
|
)
|
|
|
|
# Authentication routes
|
|
api_router.include_router(
|
|
auth.router,
|
|
prefix="/auth",
|
|
tags=["authentication"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
tenants.router,
|
|
prefix="/tenants",
|
|
tags=["tenants"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
users.router,
|
|
prefix="/users",
|
|
tags=["users"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
systems.router,
|
|
prefix="/systems",
|
|
tags=["systems"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
categories.router,
|
|
prefix="/categories",
|
|
tags=["categories"]
|
|
)
|
|
|
|
# Tickets routes
|
|
api_router.include_router(
|
|
tickets.router,
|
|
prefix="/tickets",
|
|
tags=["tickets"]
|
|
)
|
|
|
|
# Client Profile routes
|
|
api_router.include_router(
|
|
client_profile.router,
|
|
prefix="/client-profile",
|
|
tags=["client-profile"]
|
|
)
|
|
|
|
# Audit routes
|
|
api_router.include_router(
|
|
audit.router,
|
|
prefix="/audit",
|
|
tags=["audit"]
|
|
)
|
|
|
|
# SLA routes
|
|
api_router.include_router(
|
|
sla.router,
|
|
prefix="/sla",
|
|
tags=["sla"]
|
|
) |