健康终点
服务活跃度和准备情况检查。
健康终点
GET /health
未经验证的公共卫生反应。
要求
curl https://api.model-gate.com/health
回复
{"status":"ok"}
GET /health/live
进程活跃度:
curl https://api.model-gate.com/health/live
{"status":"ok"}
GET /health/ready
检查 MySQL 和 Redis 依赖关系:
curl https://api.model-gate.com/health/ready
{"status":"ready"}
当依赖项不可用时,就绪状态返回 HTTP 503 JSON 响应中的依赖项失败。