WebApi: rutas de TEA con figuras del kit

- Dependencia editable indicadores-kit y Python >=3.12 (el kit lo pide).
- Dockerfile copia indicadores_kit/.
- GET /tea/indicadores y GET /tea/indicadores/<id>/figuras/<figura>
  (periodos y tema opcionales; 400 y 404 con {"error": ...}).
- GET /tea/pacientes/<int:pac_id>.
- Pruebas de TEA con base temporal por TEA_DATABASE_URL.
This commit is contained in:
2026-10-09 01:59:37 +00:00
parent c1444e2b8d
commit 0355d21d47
4 changed files with 203 additions and 5 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
# Build context is the ISSSTELEON repo root (see root docker-compose.yml)
# so this Dockerfile can COPY its sibling Core/, Persistance/ and models/.
# so this Dockerfile can COPY its sibling Core/, Persistance/, models/ and indicadores_kit/.
FROM python:3.12-slim
RUN pip install --no-cache-dir uv
@@ -8,6 +8,7 @@ WORKDIR /app
COPY Core/ Core/
COPY Persistance/ Persistance/
COPY models/ models/
COPY indicadores_kit/ indicadores_kit/
COPY WebApi/ WebApi/
RUN cd Persistance && uv sync --no-dev