Make API key usage example meaningfully runable (#7243)

This commit is contained in:
Tomas Varneckas 2017-01-13 07:25:49 +02:00 committed by Torkel Ödegaard
parent 13178d99d4
commit 54c456ec5b
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ function (angular) {
var modalScope = $scope.$new(true);
modalScope.key = result.key;
modalScope.rootPath = window.location.origin + $scope.$root.appSubUrl;
$scope.appEvent('show-modal', {
src: 'public/app/features/org/partials/apikeyModal.html',

View File

@ -27,7 +27,7 @@
<br>
<br>
<pre class="small">
curl -H "Authorization: Bearer your_key_above" http://your.grafana.com/api/dashboards/db/mydash
curl -H "Authorization: Bearer {{key}}" {{rootPath}}/api/dashboards/home
</pre>
</div>