Commit 54c456ec by Tomas Varneckas Committed by Torkel Ödegaard

Make API key usage example meaningfully runable (#7243)

parent 13178d99
......@@ -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',
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment