oncall icon indicating copy to clipboard operation
oncall copied to clipboard

Display a sample command when creating API token

Open mderynck opened this issue 2 years ago • 3 comments

On the Grafana OnCall->Settings page when you create a new API token it would be nice if it also displayed an example curl command to make use of the token for testing instead of needing to lookup in the docs. This would match the behavior that Grafana has when you create an API key in its settings page.

mderynck avatar Jun 22 '22 22:06 mderynck

Good idea, we have /info endpoint in public api. But I am wondering which url wi should use, BASE_URL from settings I guess?

Konstantinov-Innokentii avatar Jun 23 '22 10:06 Konstantinov-Innokentii

We added this task to the core team's backlog.

Matvey-Kuk avatar Jul 06 '22 07:07 Matvey-Kuk

Some concept

Image

raphael-batte avatar Jul 08 '22 11:07 raphael-batte