mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -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>
21 lines
512 B
Go
21 lines
512 B
Go
package dtos
|
|
|
|
type Prefs struct {
|
|
Theme string `json:"theme"`
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
Timezone string `json:"timezone"`
|
|
WeekStart string `json:"weekStart"`
|
|
}
|
|
|
|
// swagger:model
|
|
type UpdatePrefsCmd struct {
|
|
// Enum: light,dark
|
|
Theme string `json:"theme"`
|
|
// The numerical :id of a favorited dashboard
|
|
// Default:0
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
// Enum: utc,browser
|
|
Timezone string `json:"timezone"`
|
|
WeekStart string `json:"weekStart"`
|
|
}
|