Chore: fix formating for swagger definitions (#54993)

This commit is contained in:
Sofia Papagiannaki 2022-09-12 10:40:35 +03:00 committed by GitHub
parent 7979463bbf
commit b157fcdd87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 97 additions and 97 deletions

View File

@ -243,7 +243,7 @@ func (hs *HTTPServer) GetAlertNotifiers(ngalertEnabled bool) func(*models.ReqCon
// swagger:route GET /alert-notifications/lookup legacy_alerts_notification_channels getAlertNotificationLookup // swagger:route GET /alert-notifications/lookup legacy_alerts_notification_channels getAlertNotificationLookup
// //
// Get all notification channels (lookup) // Get all notification channels (lookup).
// //
// Returns all notification channels, but with less detailed information. Accessible by any authenticated user and is mainly used by providing alert notification channels in Grafana UI when configuring alert rule. // Returns all notification channels, but with less detailed information. Accessible by any authenticated user and is mainly used by providing alert notification channels in Grafana UI when configuring alert rule.
// //
@ -342,7 +342,7 @@ func (hs *HTTPServer) GetAlertNotificationByID(c *models.ReqContext) response.Re
// swagger:route GET /alert-notifications/uid/{notification_channel_uid} legacy_alerts_notification_channels getAlertNotificationChannelByUID // swagger:route GET /alert-notifications/uid/{notification_channel_uid} legacy_alerts_notification_channels getAlertNotificationChannelByUID
// //
// Get notification channel by UID // Get notification channel by UID.
// //
// Returns the notification channel given the notification channel UID. // Returns the notification channel given the notification channel UID.
// //

View File

@ -297,7 +297,7 @@ func (hs *HTTPServer) UpdateAnnotation(c *models.ReqContext) response.Response {
// swagger:route PATCH /annotations/{annotation_id} annotations patchAnnotation // swagger:route PATCH /annotations/{annotation_id} annotations patchAnnotation
// //
// Patch Annotation // Patch Annotation.
// //
// Updates one or more properties of an annotation that matches the specified ID. // Updates one or more properties of an annotation that matches the specified ID.
// This operation currently supports updating of the `text`, `tags`, `time` and `timeEnd` properties. // This operation currently supports updating of the `text`, `tags`, `time` and `timeEnd` properties.
@ -442,7 +442,7 @@ func (hs *HTTPServer) MassDeleteAnnotations(c *models.ReqContext) response.Respo
// swagger:route GET /annotations/{annotation_id} annotations getAnnotationByID // swagger:route GET /annotations/{annotation_id} annotations getAnnotationByID
// //
// Get Annotation by Id. // Get Annotation by ID.
// //
// Responses: // Responses:
// 200: getAnnotationByIDResponse // 200: getAnnotationByIDResponse

View File

@ -3,29 +3,29 @@
// The Grafana backend exposes an HTTP API, the same API is used by the frontend to do // The Grafana backend exposes an HTTP API, the same API is used by the frontend to do
// everything from saving dashboards, creating users and updating data sources. // everything from saving dashboards, creating users and updating data sources.
// //
// Schemes: http, https // Schemes: http, https
// BasePath: /api // BasePath: /api
// Version: 0.0.1 // Version: 0.0.1
// License: GNU Affero General Public License v3.0 https://www.gnu.org/licenses/agpl-3.0.en.html // License: GNU Affero General Public License v3.0 https://www.gnu.org/licenses/agpl-3.0.en.html
// Contact: Grafana Labs<hello@grafana.com> https://grafana.com // Contact: Grafana Labs<hello@grafana.com> https://grafana.com
// //
// Consumes: // Consumes:
// - application/json // - application/json
// //
// Produces: // Produces:
// - application/json // - application/json
// //
// Security: // Security:
// - basic: // - basic:
// - api_key: // - api_key:
// //
// SecurityDefinitions: // SecurityDefinitions:
// basic: // basic:
// type: basic // type: basic
// api_key: // api_key:
// type: apiKey // type: apiKey
// name: Authorization // name: Authorization
// in: header // in: header
// //
// swagger:meta // swagger:meta
package api package api

View File

@ -95,7 +95,7 @@ func (hs *HTTPServer) DeleteAPIKey(c *models.ReqContext) response.Response {
// //
// Creates an API key. // Creates an API key.
// //
// Will return details of the created API key // Will return details of the created API key.
// //
// Responses: // Responses:
// 200: postAPIkeyResponse // 200: postAPIkeyResponse

View File

@ -46,7 +46,7 @@ func (hs *HTTPServer) handleQueryMetricsError(err error) *response.NormalRespons
// QueryMetricsV2 returns query metrics. // QueryMetricsV2 returns query metrics.
// swagger:route POST /ds/query ds queryMetricsWithExpressions // swagger:route POST /ds/query ds queryMetricsWithExpressions
// //
// DataSource query metrics with expressions // DataSource query metrics with expressions.
// //
// If you are running Grafana Enterprise and have Fine-grained access control enabled // If you are running Grafana Enterprise and have Fine-grained access control enabled
// you need to have a permission with action: `datasources:query`. // you need to have a permission with action: `datasources:query`.

View File

@ -18,7 +18,7 @@ import (
// swagger:route GET /org org getCurrentOrg // swagger:route GET /org org getCurrentOrg
// //
// Get current Organization // Get current Organization.
// //
// Responses: // Responses:
// 200: getCurrentOrgResponse // 200: getCurrentOrgResponse
@ -301,7 +301,7 @@ func (hs *HTTPServer) DeleteOrgByID(c *models.ReqContext) response.Response {
// swagger:route GET /orgs orgs searchOrgs // swagger:route GET /orgs orgs searchOrgs
// //
// Search all Organizations // Search all Organizations.
// //
// Security: // Security:
// - basic: // - basic:

View File

@ -18,7 +18,7 @@ import (
// swagger:route POST /org/users org addOrgUserToCurrentOrg // swagger:route POST /org/users org addOrgUserToCurrentOrg
// //
// Add a new user to the current organization // Add a new user to the current organization.
// //
// Adds a global user to the current organization. // Adds a global user to the current organization.
// //
@ -41,7 +41,7 @@ func (hs *HTTPServer) AddOrgUserToCurrentOrg(c *models.ReqContext) response.Resp
// swagger:route POST /orgs/{org_id}/users orgs addOrgUser // swagger:route POST /orgs/{org_id}/users orgs addOrgUser
// //
// Add a new user to the current organization // Add a new user to the current organization.
// //
// Adds a global user to the current organization. // Adds a global user to the current organization.
// //
@ -275,7 +275,7 @@ func (hs *HTTPServer) SearchOrgUsersWithPaging(c *models.ReqContext) response.Re
// swagger:route PATCH /org/users/{user_id} org updateOrgUserForCurrentOrg // swagger:route PATCH /org/users/{user_id} org updateOrgUserForCurrentOrg
// //
// Updates the given user // Updates the given user.
// //
// If you are running Grafana Enterprise and have Fine-grained access control enabled // If you are running Grafana Enterprise and have Fine-grained access control enabled
// you need to have a permission with action: `org.users.role:update` with scope `users:*`. // you need to have a permission with action: `org.users.role:update` with scope `users:*`.
@ -349,7 +349,7 @@ func (hs *HTTPServer) updateOrgUserHelper(c *models.ReqContext, cmd models.Updat
// swagger:route DELETE /org/users/{user_id} org removeOrgUserForCurrentOrg // swagger:route DELETE /org/users/{user_id} org removeOrgUserForCurrentOrg
// //
// Delete user in current organization // Delete user in current organization.
// //
// If you are running Grafana Enterprise and have Fine-grained access control enabled // If you are running Grafana Enterprise and have Fine-grained access control enabled
// you need to have a permission with action: `org.users:remove` with scope `users:*`. // you need to have a permission with action: `org.users:remove` with scope `users:*`.
@ -375,7 +375,7 @@ func (hs *HTTPServer) RemoveOrgUserForCurrentOrg(c *models.ReqContext) response.
// swagger:route DELETE /orgs/{org_id}/users/{user_id} orgs removeOrgUser // swagger:route DELETE /orgs/{org_id}/users/{user_id} orgs removeOrgUser
// //
// Delete user in current organization // Delete user in current organization.
// //
// If you are running Grafana Enterprise and have Fine-grained access control enabled // If you are running Grafana Enterprise and have Fine-grained access control enabled
// you need to have a permission with action: `org.users:remove` with scope `users:*`. // you need to have a permission with action: `org.users:remove` with scope `users:*`.

View File

@ -19,7 +19,7 @@ func (hs *HTTPServer) GetCurrentOrgQuotas(c *models.ReqContext) response.Respons
// Fetch Organization quota. // Fetch Organization quota.
// //
// If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope). // If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).
//list //
// Responses: // Responses:
// 200: getQuotaResponse // 200: getQuotaResponse
// 401: unauthorisedError // 401: unauthorisedError

View File

@ -131,7 +131,7 @@ func (hs *HTTPServer) searchHitsWithMetadata(c *models.ReqContext, hits models.H
// swagger:route GET /search/sorting search listSortOptions // swagger:route GET /search/sorting search listSortOptions
// //
// List search sorting options // List search sorting options.
// //
// Responses: // Responses:
// 200: listSortOptionsResponse // 200: listSortOptionsResponse

View File

@ -28,7 +28,7 @@
"paths": { "paths": {
"/access-control/roles": { "/access-control/roles": {
"get": { "get": {
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:list` and scope `roles:*`.", "description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -228,7 +228,7 @@
}, },
"/access-control/teams/{teamId}/roles": { "/access-control/teams/{teamId}/roles": {
"get": { "get": {
"description": "You need to have a permission with action `teams.roles:list` and scope `teams:id:\u003cteam ID\u003e`.", "description": "You need to have a permission with action `teams.roles:read` and scope `teams:id:\u003cteam ID\u003e`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -383,7 +383,7 @@
}, },
"/access-control/users/{userId}/roles": { "/access-control/users/{userId}/roles": {
"get": { "get": {
"description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:list` and scope `users:id:\u003cuser ID\u003e`.", "description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:read` and scope `users:id:\u003cuser ID\u003e`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -1485,7 +1485,7 @@
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
], ],
"summary": "Get all notification channels (lookup)", "summary": "Get all notification channels (lookup).",
"operationId": "getAlertNotificationLookup", "operationId": "getAlertNotificationLookup",
"responses": { "responses": {
"200": { "200": {
@ -1549,7 +1549,7 @@
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
], ],
"summary": "Get notification channel by UID", "summary": "Get notification channel by UID.",
"operationId": "getAlertNotificationChannelByUID", "operationId": "getAlertNotificationChannelByUID",
"parameters": [ "parameters": [
{ {
@ -2238,7 +2238,7 @@
"tags": [ "tags": [
"annotations" "annotations"
], ],
"summary": "Get Annotation by Id.", "summary": "Get Annotation by ID.",
"operationId": "getAnnotationByID", "operationId": "getAnnotationByID",
"parameters": [ "parameters": [
{ {
@ -2336,7 +2336,7 @@
"tags": [ "tags": [
"annotations" "annotations"
], ],
"summary": "Patch Annotation", "summary": "Patch Annotation.",
"operationId": "patchAnnotation", "operationId": "patchAnnotation",
"parameters": [ "parameters": [
{ {
@ -3056,7 +3056,7 @@
} }
}, },
"post": { "post": {
"description": "Will return details of the created API key", "description": "Will return details of the created API key.",
"tags": [ "tags": [
"api_keys" "api_keys"
], ],
@ -5115,7 +5115,7 @@
"tags": [ "tags": [
"ds" "ds"
], ],
"summary": "DataSource query metrics with expressions", "summary": "DataSource query metrics with expressions.",
"operationId": "queryMetricsWithExpressions", "operationId": "queryMetricsWithExpressions",
"parameters": [ "parameters": [
{ {
@ -5975,10 +5975,10 @@
}, },
"/org": { "/org": {
"get": { "get": {
"description": "Get current Organization",
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Get current Organization.",
"operationId": "getCurrentOrg", "operationId": "getCurrentOrg",
"responses": { "responses": {
"200": { "200": {
@ -6279,7 +6279,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"operationId": "addOrgUserToCurrentOrg", "operationId": "addOrgUserToCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -6350,7 +6350,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"operationId": "removeOrgUserForCurrentOrg", "operationId": "removeOrgUserForCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -6384,7 +6384,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Updates the given user", "summary": "Updates the given user.",
"operationId": "updateOrgUserForCurrentOrg", "operationId": "updateOrgUserForCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -6429,10 +6429,10 @@
"basic": [] "basic": []
} }
], ],
"description": "Search all Organizations",
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Search all Organizations.",
"operationId": "searchOrgs", "operationId": "searchOrgs",
"parameters": [ "parameters": [
{ {
@ -6721,7 +6721,7 @@
}, },
"/orgs/{org_id}/quotas": { "/orgs/{org_id}/quotas": {
"get": { "get": {
"description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).\nlist", "description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).",
"tags": [ "tags": [
"orgs" "orgs"
], ],
@ -6852,7 +6852,7 @@
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"operationId": "addOrgUser", "operationId": "addOrgUser",
"parameters": [ "parameters": [
{ {
@ -6893,7 +6893,7 @@
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"operationId": "removeOrgUser", "operationId": "removeOrgUser",
"parameters": [ "parameters": [
{ {
@ -7493,11 +7493,11 @@
}, },
"/recording-rules": { "/recording-rules": {
"get": { "get": {
"description": "Lists all rules in the database: active or deleted",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Lists all rules in the database: active or deleted.",
"operationId": "listRecordingRules", "operationId": "listRecordingRules",
"responses": { "responses": {
"200": { "200": {
@ -7518,11 +7518,11 @@
} }
}, },
"put": { "put": {
"description": "Update the active status of a rule",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Update the active status of a rule.",
"operationId": "updateRecordingRule", "operationId": "updateRecordingRule",
"parameters": [ "parameters": [
{ {
@ -7553,11 +7553,11 @@
} }
}, },
"post": { "post": {
"description": "Create a recording rule that is then registered and started",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Create a recording rule that is then registered and started.",
"operationId": "createRecordingRule", "operationId": "createRecordingRule",
"parameters": [ "parameters": [
{ {
@ -8435,10 +8435,10 @@
}, },
"/search/sorting": { "/search/sorting": {
"get": { "get": {
"description": "List search sorting options",
"tags": [ "tags": [
"search" "search"
], ],
"summary": "List search sorting options.",
"operationId": "listSortOptions", "operationId": "listSortOptions",
"responses": { "responses": {
"200": { "200": {

View File

@ -28,7 +28,7 @@
"paths": { "paths": {
"/access-control/roles": { "/access-control/roles": {
"get": { "get": {
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:list` and scope `roles:*`.", "description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -228,7 +228,7 @@
}, },
"/access-control/teams/{teamId}/roles": { "/access-control/teams/{teamId}/roles": {
"get": { "get": {
"description": "You need to have a permission with action `teams.roles:list` and scope `teams:id:\u003cteam ID\u003e`.", "description": "You need to have a permission with action `teams.roles:read` and scope `teams:id:\u003cteam ID\u003e`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -383,7 +383,7 @@
}, },
"/access-control/users/{userId}/roles": { "/access-control/users/{userId}/roles": {
"get": { "get": {
"description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:list` and scope `users:id:\u003cuser ID\u003e`.", "description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:read` and scope `users:id:\u003cuser ID\u003e`.",
"tags": [ "tags": [
"access_control", "access_control",
"enterprise" "enterprise"
@ -1485,7 +1485,7 @@
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
], ],
"summary": "Get all notification channels (lookup)", "summary": "Get all notification channels (lookup).",
"operationId": "getAlertNotificationLookup", "operationId": "getAlertNotificationLookup",
"responses": { "responses": {
"200": { "200": {
@ -1549,7 +1549,7 @@
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
], ],
"summary": "Get notification channel by UID", "summary": "Get notification channel by UID.",
"operationId": "getAlertNotificationChannelByUID", "operationId": "getAlertNotificationChannelByUID",
"parameters": [ "parameters": [
{ {
@ -2238,7 +2238,7 @@
"tags": [ "tags": [
"annotations" "annotations"
], ],
"summary": "Get Annotation by Id.", "summary": "Get Annotation by ID.",
"operationId": "getAnnotationByID", "operationId": "getAnnotationByID",
"parameters": [ "parameters": [
{ {
@ -2336,7 +2336,7 @@
"tags": [ "tags": [
"annotations" "annotations"
], ],
"summary": "Patch Annotation", "summary": "Patch Annotation.",
"operationId": "patchAnnotation", "operationId": "patchAnnotation",
"parameters": [ "parameters": [
{ {
@ -2409,7 +2409,7 @@
} }
}, },
"post": { "post": {
"description": "Will return details of the created API key", "description": "Will return details of the created API key.",
"tags": [ "tags": [
"api_keys" "api_keys"
], ],
@ -4468,7 +4468,7 @@
"tags": [ "tags": [
"ds" "ds"
], ],
"summary": "DataSource query metrics with expressions", "summary": "DataSource query metrics with expressions.",
"operationId": "queryMetricsWithExpressions", "operationId": "queryMetricsWithExpressions",
"parameters": [ "parameters": [
{ {
@ -5328,10 +5328,10 @@
}, },
"/org": { "/org": {
"get": { "get": {
"description": "Get current Organization",
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Get current Organization.",
"operationId": "getCurrentOrg", "operationId": "getCurrentOrg",
"responses": { "responses": {
"200": { "200": {
@ -5632,7 +5632,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"operationId": "addOrgUserToCurrentOrg", "operationId": "addOrgUserToCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -5703,7 +5703,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"operationId": "removeOrgUserForCurrentOrg", "operationId": "removeOrgUserForCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -5737,7 +5737,7 @@
"tags": [ "tags": [
"org" "org"
], ],
"summary": "Updates the given user", "summary": "Updates the given user.",
"operationId": "updateOrgUserForCurrentOrg", "operationId": "updateOrgUserForCurrentOrg",
"parameters": [ "parameters": [
{ {
@ -5782,10 +5782,10 @@
"basic": [] "basic": []
} }
], ],
"description": "Search all Organizations",
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Search all Organizations.",
"operationId": "searchOrgs", "operationId": "searchOrgs",
"parameters": [ "parameters": [
{ {
@ -6074,7 +6074,7 @@
}, },
"/orgs/{org_id}/quotas": { "/orgs/{org_id}/quotas": {
"get": { "get": {
"description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).\nlist", "description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).",
"tags": [ "tags": [
"orgs" "orgs"
], ],
@ -6205,7 +6205,7 @@
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"operationId": "addOrgUser", "operationId": "addOrgUser",
"parameters": [ "parameters": [
{ {
@ -6246,7 +6246,7 @@
"tags": [ "tags": [
"orgs" "orgs"
], ],
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"operationId": "removeOrgUser", "operationId": "removeOrgUser",
"parameters": [ "parameters": [
{ {
@ -6846,11 +6846,11 @@
}, },
"/recording-rules": { "/recording-rules": {
"get": { "get": {
"description": "Lists all rules in the database: active or deleted",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Lists all rules in the database: active or deleted.",
"operationId": "listRecordingRules", "operationId": "listRecordingRules",
"responses": { "responses": {
"200": { "200": {
@ -6871,11 +6871,11 @@
} }
}, },
"put": { "put": {
"description": "Update the active status of a rule",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Update the active status of a rule.",
"operationId": "updateRecordingRule", "operationId": "updateRecordingRule",
"parameters": [ "parameters": [
{ {
@ -6906,11 +6906,11 @@
} }
}, },
"post": { "post": {
"description": "Create a recording rule that is then registered and started",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
], ],
"summary": "Create a recording rule that is then registered and started.",
"operationId": "createRecordingRule", "operationId": "createRecordingRule",
"parameters": [ "parameters": [
{ {
@ -7788,10 +7788,10 @@
}, },
"/search/sorting": { "/search/sorting": {
"get": { "get": {
"description": "List search sorting options",
"tags": [ "tags": [
"search" "search"
], ],
"summary": "List search sorting options.",
"operationId": "listSortOptions", "operationId": "listSortOptions",
"responses": { "responses": {
"200": { "200": {

View File

@ -10183,7 +10183,7 @@
"paths": { "paths": {
"/access-control/roles": { "/access-control/roles": {
"get": { "get": {
"description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:list` and scope `roles:*`.", "description": "Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.\n\nYou need to have a permission with action `roles:read` and scope `roles:*`.",
"operationId": "listRoles", "operationId": "listRoles",
"parameters": [ "parameters": [
{ {
@ -10399,7 +10399,7 @@
}, },
"/access-control/teams/{teamId}/roles": { "/access-control/teams/{teamId}/roles": {
"get": { "get": {
"description": "You need to have a permission with action `teams.roles:list` and scope `teams:id:\u003cteam ID\u003e`.", "description": "You need to have a permission with action `teams.roles:read` and scope `teams:id:\u003cteam ID\u003e`.",
"operationId": "listTeamRoles", "operationId": "listTeamRoles",
"parameters": [ "parameters": [
{ {
@ -10567,7 +10567,7 @@
}, },
"/access-control/users/{userId}/roles": { "/access-control/users/{userId}/roles": {
"get": { "get": {
"description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:list` and scope `users:id:\u003cuser ID\u003e`.", "description": "Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.\n\nYou need to have a permission with action `users.roles:read` and scope `users:id:\u003cuser ID\u003e`.",
"operationId": "listUserRoles", "operationId": "listUserRoles",
"parameters": [ "parameters": [
{ {
@ -11740,7 +11740,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Get all notification channels (lookup)", "summary": "Get all notification channels (lookup).",
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
] ]
@ -11853,7 +11853,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Get notification channel by UID", "summary": "Get notification channel by UID.",
"tags": [ "tags": [
"legacy_alerts_notification_channels" "legacy_alerts_notification_channels"
] ]
@ -12603,7 +12603,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Get Annotation by Id.", "summary": "Get Annotation by ID.",
"tags": [ "tags": [
"annotations" "annotations"
] ]
@ -12649,7 +12649,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Patch Annotation", "summary": "Patch Annotation.",
"tags": [ "tags": [
"annotations" "annotations"
] ]
@ -13512,7 +13512,7 @@
] ]
}, },
"post": { "post": {
"description": "Will return details of the created API key", "description": "Will return details of the created API key.",
"operationId": "addAPIkey", "operationId": "addAPIkey",
"requestBody": { "requestBody": {
"content": { "content": {
@ -15747,7 +15747,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "DataSource query metrics with expressions", "summary": "DataSource query metrics with expressions.",
"tags": [ "tags": [
"ds" "ds"
] ]
@ -16634,7 +16634,6 @@
}, },
"/org": { "/org": {
"get": { "get": {
"description": "Get current Organization",
"operationId": "getCurrentOrg", "operationId": "getCurrentOrg",
"responses": { "responses": {
"200": { "200": {
@ -16650,6 +16649,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Get current Organization.",
"tags": [ "tags": [
"org" "org"
] ]
@ -16968,7 +16968,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"tags": [ "tags": [
"org" "org"
] ]
@ -17047,7 +17047,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"tags": [ "tags": [
"org" "org"
] ]
@ -17094,7 +17094,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Updates the given user", "summary": "Updates the given user.",
"tags": [ "tags": [
"org" "org"
] ]
@ -17102,7 +17102,6 @@
}, },
"/orgs": { "/orgs": {
"get": { "get": {
"description": "Search all Organizations",
"operationId": "searchOrgs", "operationId": "searchOrgs",
"parameters": [ "parameters": [
{ {
@ -17162,6 +17161,7 @@
"basic": [] "basic": []
} }
], ],
"summary": "Search all Organizations.",
"tags": [ "tags": [
"orgs" "orgs"
] ]
@ -17424,7 +17424,7 @@
}, },
"/orgs/{org_id}/quotas": { "/orgs/{org_id}/quotas": {
"get": { "get": {
"description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).\nlist", "description": "If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `orgs.quotas:read` and scope `org:id:1` (orgIDScope).",
"operationId": "getOrgQuota", "operationId": "getOrgQuota",
"parameters": [ "parameters": [
{ {
@ -17600,7 +17600,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Add a new user to the current organization", "summary": "Add a new user to the current organization.",
"tags": [ "tags": [
"orgs" "orgs"
] ]
@ -17647,7 +17647,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Delete user in current organization", "summary": "Delete user in current organization.",
"tags": [ "tags": [
"orgs" "orgs"
] ]
@ -18269,7 +18269,6 @@
}, },
"/recording-rules": { "/recording-rules": {
"get": { "get": {
"description": "Lists all rules in the database: active or deleted",
"operationId": "listRecordingRules", "operationId": "listRecordingRules",
"responses": { "responses": {
"200": { "200": {
@ -18288,13 +18287,13 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Lists all rules in the database: active or deleted.",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
] ]
}, },
"post": { "post": {
"description": "Create a recording rule that is then registered and started",
"operationId": "createRecordingRule", "operationId": "createRecordingRule",
"requestBody": { "requestBody": {
"content": { "content": {
@ -18324,13 +18323,13 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Create a recording rule that is then registered and started.",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
] ]
}, },
"put": { "put": {
"description": "Update the active status of a rule",
"operationId": "updateRecordingRule", "operationId": "updateRecordingRule",
"requestBody": { "requestBody": {
"content": { "content": {
@ -18360,6 +18359,7 @@
"$ref": "#/components/responses/internalServerError" "$ref": "#/components/responses/internalServerError"
} }
}, },
"summary": "Update the active status of a rule.",
"tags": [ "tags": [
"recording_rules", "recording_rules",
"enterprise" "enterprise"
@ -19269,7 +19269,6 @@
}, },
"/search/sorting": { "/search/sorting": {
"get": { "get": {
"description": "List search sorting options",
"operationId": "listSortOptions", "operationId": "listSortOptions",
"responses": { "responses": {
"200": { "200": {
@ -19279,6 +19278,7 @@
"$ref": "#/components/responses/unauthorisedError" "$ref": "#/components/responses/unauthorisedError"
} }
}, },
"summary": "List search sorting options.",
"tags": [ "tags": [
"search" "search"
] ]