mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Make API key usage example meaningfully runable (#7243)
This commit is contained in:
parent
13178d99d4
commit
54c456ec5b
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user