Document /api/health

Document the health check implemented in #3302 (and #935), see  https://github.com/grafana/grafana/issues/3302#issuecomment-297066201
This commit is contained in:
Frank lin Piat
2019-01-25 17:52:28 +01:00
committed by GitHub
parent d1608510ef
commit 1fc5ea181a

View File

@ -82,4 +82,29 @@ HTTP/1.1 200
```
{"message": "Logged in"}
```
```
# Health API
## Returns health information about Grafana
`GET /api/health`
**Example Request**
```http
GET /api/health
Accept: application/json
```
**Example Response**:
```http
HTTP/1.1 200 OK
{
"commit": "087143285",
"database": "ok",
"version": "5.1.3"
}
```