API: Add service account routes to the swagger (#52398)

* API: Add service account routes to the swagger
This commit is contained in:
Sofia Papagiannaki
2022-07-19 12:52:51 +03:00
committed by GitHub
parent a0f96ed4e1
commit e6b9ded949
9 changed files with 1772 additions and 69 deletions
+6 -2
View File
@@ -7,10 +7,14 @@ import (
"github.com/grafana/grafana/pkg/services/accesscontrol"
)
// swagger:model
type NewApiKeyResult struct {
ID int64 `json:"id"`
// example: 1
ID int64 `json:"id"`
// example: grafana
Name string `json:"name"`
Key string `json:"key"`
// example: glsa_yscW25imSKJIuav8zF37RZmnbiDvB05G_fcaaf58a
Key string `json:"key"`
}
type ApiKeyDTO struct {