diff --git a/kjvstudy_org/server.py b/kjvstudy_org/server.py index 1d30e80..36e404c 100644 --- a/kjvstudy_org/server.py +++ b/kjvstudy_org/server.py @@ -854,6 +854,7 @@ def api_index(): "openapi_json": "/api/openapi.json" }, "endpoints": { + "health": "/api/health", "search": "/api/search?q={query}", "verse_of_the_day": "/api/verse-of-the-day", "verse": "/api/verse/{book}/{chapter}/{verse}", @@ -872,6 +873,15 @@ def api_index(): } } +@app.get("/api/health") +def api_health_check(): + """API health check endpoint for monitoring and status verification""" + return { + "status": "healthy", + "service": "KJV Study API", + "version": "1.0.0" + } + @app.get("/api/search") def search_api(q: str = Query(..., description="Search query", example="faith"), limit: Optional[int] = Query(None, description="Max results", example=10)): """JSON API endpoint for search"""