* 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>
(cherry picked from commit 35fe58de37)
This commit is contained in:
@@ -92,7 +92,7 @@ type AddDataSourceCommand struct {
|
||||
ReadOnly bool `json:"-"`
|
||||
EncryptedSecureJsonData map[string][]byte `json:"-"`
|
||||
|
||||
Result *DataSource
|
||||
Result *DataSource `json:"-"`
|
||||
}
|
||||
|
||||
// Also acts as api DTO
|
||||
@@ -119,7 +119,7 @@ type UpdateDataSourceCommand struct {
|
||||
ReadOnly bool `json:"-"`
|
||||
EncryptedSecureJsonData map[string][]byte `json:"-"`
|
||||
|
||||
Result *DataSource
|
||||
Result *DataSource `json:"-"`
|
||||
}
|
||||
|
||||
// DeleteDataSourceCommand will delete a DataSource based on OrgID as well as the UID (preferred), ID, or Name.
|
||||
@@ -171,6 +171,12 @@ type GetDataSourceQuery struct {
|
||||
// Permissions
|
||||
// ---------------------
|
||||
|
||||
// Datasource permission
|
||||
// Description:
|
||||
// * `0` - No Access
|
||||
// * `1` - Query
|
||||
// Enum: 0,1
|
||||
// swagger:model
|
||||
type DsPermissionType int
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user