Added api heading in the main menu

This commit is contained in:
utkarshcmu
2016-02-05 01:15:09 -08:00
parent 952e4dab3e
commit 616a6bec38
3 changed files with 16 additions and 10 deletions
+6 -8
View File
@@ -1,21 +1,19 @@
----
page_title: HTTP API
page_title: Authentication API
page_description: Grafana HTTP API Reference
page_keywords: grafana, admin, http, api, documentation
---
# HTTP API Reference
# Authentication API
The Grafana backend exposes an HTTP API, the same API is used by the frontend to do everything from saving
dashboards, creating users and updating data sources.
## Authorization
### Tokens
## Tokens
Currently you can authenticate via an `API Token` or via a `Session cookie` (acquired using regular login or oauth).
### Basic Auth
## Basic Auth
If basic auth is enabled (it is enabled by default) you can authenticate your HTTP request via
standard basic auth.
@@ -26,7 +24,7 @@ curl example:
{"id":1,"name":"Main Org."}
```
### Create API Token
## Create API Token
Open the sidemenu and click the organization dropdown and select the `API Keys` option.
@@ -40,4 +38,4 @@ You use the token in all requests in the `Authorization` header, like this:
Accept: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
The `Authorization` header value should be `Bearer <your api key>`.
The `Authorization` header value should be `Bearer <your api key>`.