forked from ericorps/ia-microservice
feat: Agrega primera version de template (revisar archivo de documentacion - docs.md)
This commit is contained in:
61
app/api/v1/endpoints/router.py
Normal file
61
app/api/v1/endpoints/router.py
Normal file
@@ -0,0 +1,61 @@
|
||||
"""
|
||||
Gateway de IA de Qualidot - Módulo maestro de endpoints de procesamiento.
|
||||
|
||||
Propósito:
|
||||
Este módulo actúa como el punto central de enrutamiento para todos los
|
||||
endpoints relacionados con el procesamiento de audio, imágenes,
|
||||
documentos, video, etc.
|
||||
|
||||
Homologación:
|
||||
Sin importar qué proveedor de IA se utilice, el resultado siempre se
|
||||
entrega en el mismo formato estándar para Qualidot.
|
||||
|
||||
"""
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from fastapi import APIRouter, UploadFile, File, HTTPException
|
||||
from fastapi.security import APIKeyHeader
|
||||
|
||||
# Importar los routers específicos de cada módulo
|
||||
from app.api.v1.endpoints.audio.transcription import audio_router_transcription # Endpoint de transcripción de audio
|
||||
from app.api.v1.endpoints.texto.resume import text_router_summary # Endpoint de resumen de texto
|
||||
from app.api.v1.endpoints.texto.rubricated_analysis import text_router_analysis # Endpoint de análisis rubricado de texto
|
||||
from app.api.v1.endpoints.video.transcription import video_router_transcription # Endpoint de transcripción de video
|
||||
from app.api.v1.endpoints.image.rubricated_analysis import image_router_analysis # Endpoint de análisis rubricado de imágenes
|
||||
|
||||
# Inicializar el router de FastAPI para los módulos de procesamiento
|
||||
api_router_audio = APIRouter()
|
||||
api_router_text = APIRouter()
|
||||
api_router_video = APIRouter()
|
||||
api_router_image = APIRouter()
|
||||
|
||||
|
||||
api_router_audio.include_router(
|
||||
audio_router_transcription,
|
||||
prefix="/audio",
|
||||
tags=["Procesamiento de Audio"]
|
||||
)
|
||||
|
||||
api_router_text.include_router(
|
||||
text_router_summary,
|
||||
prefix="/text",
|
||||
tags=["Procesamiento de Texto"]
|
||||
)
|
||||
|
||||
api_router_text.include_router(
|
||||
text_router_analysis,
|
||||
prefix="/text",
|
||||
tags=["Procesamiento de Texto"]
|
||||
)
|
||||
|
||||
api_router_video.include_router(
|
||||
video_router_transcription,
|
||||
prefix="/video",
|
||||
tags=["Procesamiento de Video"]
|
||||
)
|
||||
|
||||
api_router_image.include_router(
|
||||
image_router_analysis,
|
||||
prefix="/image",
|
||||
tags=["Procesamiento de Imágenes"]
|
||||
)
|
||||
Reference in New Issue
Block a user