Merge pull request #15068 from finkr/finkr-patch-doc-healthapi

Document /api/health
This commit is contained in:
Torkel Ödegaard 2019-01-26 07:06:03 +01:00 committed by GitHub
commit ecbda1af23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,4 +82,29 @@ HTTP/1.1 200
Content-Type: application/json
{"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"
}
```