Skip to content

Tổng quan API ​

TÓM TẮT

FastAPI backend (forecast_engine/main.py) expose 13 routers với 50+ endpoints. Swagger UI tại /docs, ReDoc tại /redoc.

Base URL ​

EnvironmentURL
Localhttp://localhost:8000
Productionhttps://api.boxme-forecast.railway.app
Docs (Swagger)/docs
Docs (ReDoc)/redoc

13 Routers ​

RouterPrefixFileMô tả
Health/healthroutes_health.pyHealth check
Forecast/forecastroutes_forecast.pyForecast generation & queries
Train/trainroutes_train.pyModel training
Evaluate/evaluateroutes_evaluate.pyModel evaluation
Models/modelsroutes_models.pyModel registry
Calendar/calendarroutes_calendar.pyEvent calendar
AutoML/automlroutes_automl.pySelf-improvement
Dashboard/dashboardroutes_dashboard.pyDashboard data
LLM Config/llm-configroutes_llm_config.pyLLM provider settings
Backtest/backtestroutes_backtest.pyBacktest runs
Profiler/profilerroutes_profiler.pyData profiling
Improvement/improvementroutes_improvement.pyImprovement cycles
Override/overrideroutes_override.pyManual overrides

Chi tiết từng nhóm endpoint ​

Authentication ​

Hiện tại API không yêu cầu authentication (internal use). CORS configured cho all origins.

BẢO MẬT

Production nên restrict CORS origins và thêm API key authentication.

BoxMe Forecast — Tài liệu kỹ thuật nội bộ