docs: document nat serve /health endpoint in REST API guide - #2094
docs: document nat serve /health endpoint in REST API guide#2094valter-silva-au wants to merge 1 commit into
Conversation
- Add a "Health Check Endpoint" section to the REST API server
endpoints guide covering GET /health (registered automatically by
nat serve), its liveness/readiness purpose, a curl example, and the
{"status":"healthy"} 200 response.
- Note that this FastAPI health check (port 8000) is distinct from the
MCP (9901) and FastMCP (9902) health routes, with cross-links.
Closes NVIDIA#2073
Signed-off-by: Valter Silva <valter.silva.au@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughThe REST API server endpoints guide now documents a ChangesREST API health documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/ok to test a9e7acb |
willkill07
left a comment
There was a problem hiding this comment.
avoid slashes since they can easily be mistaken for paths
| - **Description:** A liveness/readiness probe for the running server. It is registered automatically | ||
| whenever you start `nat serve`, returns immediately without executing a workflow, and requires no | ||
| model or API credentials. This makes it suitable for reverse proxies, process supervisors, Docker | ||
| health checks, and Kubernetes-style readiness/liveness probes. |
There was a problem hiding this comment.
| health checks, and Kubernetes-style readiness/liveness probes. | |
| health checks, and Kubernetes-style readiness and liveness probes. |
| ## Health Check Endpoint | ||
| - **Route:** `/health` | ||
| - **Method:** GET | ||
| - **Description:** A liveness/readiness probe for the running server. It is registered automatically |
There was a problem hiding this comment.
| - **Description:** A liveness/readiness probe for the running server. It is registered automatically | |
| - **Description:** A liveness and readiness probe for the running server. It is registered automatically |
|
@valter-silva-au do you still plan to address this? |
|
Yes, still on it — apologies for the silence, @willkill07. Both of your suggestions are applied ( so your review comment and the CI failure were the same root cause. I've hit a push restriction on the machine I have this branch on, so the revision isn't up yet. I'm sorting that out and will push and re-request review — shouldn't be long. Thanks for the nudge. |
Description
Documents the FastAPI
GET /healthendpoint exposed bynat servein the REST API server endpoints guide. The endpoint is registered automatically bynat serve(it is not gated by any config flag), but was previously undocumented for the FastAPI path, even though the MCP and FastMCP guides already document their own health checks.This adds a Health Check Endpoint section to
docs/source/reference/rest-api/api-server-endpoints.mdcovering:GET /health, intended for liveness/readiness probes — it returns immediately without executing a workflow and requires no model or API credentials, so it is safe behind reverse proxies, process supervisors, and Docker/Kubernetes health checks.curlexample and the{"status":"healthy"}200 response.8000) from the MCP (9901) and FastMCP (9902) health routes, with cross-links to both existing guides.Docs-only change; no behavior change.
Closes #2073
By Submitting this PR I confirm:
Summary by CodeRabbit
/healthGET endpoint.nat serveand can be used as a quick liveness/readiness check./healthroutes for MCP/FastMCP servers on their own ports.