health
Health Check
Health check for monitoring. No authentication required.
Deliberately a sync def, not async: the body does blocking psycopg2 I/O (get_connection/execute/close). An async handler runs directly on the event loop, so a slow or hung DB would block every other request this worker is serving, not just this one. FastAPI dispatches a sync path function to a thread pool instead, which keeps that I/O off the loop.
get/api/health
Request
- Base URL: https://legalize.dev (the document declares no server; this is the origin it was published from)
- URL: https://legalize.dev/api/health
- Auth: none declared
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.