mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
* API: Using go-swagger for extracting OpenAPI specification from source code * Merge Grafana Alerting spec * Include enterprise endpoints (if enabled) * Serve SwaggerUI under feature flag * Fix building dev docker images * Configure swaggerUI * Add missing json tags Co-authored-by: Ying WANG <ying.wang@grafana.com> Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
23 lines
516 B
Go
23 lines
516 B
Go
package dtos
|
|
|
|
import "github.com/grafana/grafana/pkg/models"
|
|
|
|
// swagger:model
|
|
type UpdateDashboardAclCommand struct {
|
|
Items []DashboardAclUpdateItem `json:"items"`
|
|
}
|
|
|
|
// swagger:model
|
|
type DashboardAclUpdateItem struct {
|
|
UserID int64 `json:"userId"`
|
|
TeamID int64 `json:"teamId"`
|
|
Role *models.RoleType `json:"role,omitempty"`
|
|
// Permission level
|
|
// Description:
|
|
// * `1` - View
|
|
// * `2` - Edit
|
|
// * `4` - Admin
|
|
// Enum: 1,2,4
|
|
Permission models.PermissionType `json:"permission"`
|
|
}
|