INNER CODE UNIT · Python

root_health_check

SHAdd0WTAka/Zen-Ai-Pentest · api/main.py:835

async def root_health_check():
    """
    Einfacher Health Check für Load Balancer und Docker.

    **Alternative:** `GET /api/v1/health` (empfohlen)
    """
    return {
        "status": "healthy",
        "timestamp": _get_timestamp(),
        "version": _API_VERSION,
    }


@app.get(
    "/health/detailed",
    tags=["Health"],
    summary="Detaillierter Health Check (Root)",
    responses={503: {"description": "Mindestens ein Service ist nicht verfügbar"}},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…