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) { ...@@ -30,6 +30,7 @@ function (angular) {
var modalScope = $scope.$new(true); var modalScope = $scope.$new(true);
modalScope.key = result.key; modalScope.key = result.key;
modalScope.rootPath = window.location.origin + $scope.$root.appSubUrl;
$scope.appEvent('show-modal', { $scope.appEvent('show-modal', {
src: 'public/app/features/org/partials/apikeyModal.html', src: 'public/app/features/org/partials/apikeyModal.html',
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<br> <br>
<br> <br>
<pre class="small"> <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> </pre>
</div> </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