mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 16:32:20 +08: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
492 B
Go
23 lines
492 B
Go
package definitions
|
|
|
|
// swagger:route GET /org/preferences org_preferences getOrgPreferences
|
|
//
|
|
// Get Current Org Prefs.
|
|
//
|
|
// Responses:
|
|
// 200: getPreferencesResponse
|
|
// 401: unauthorisedError
|
|
// 403: forbiddenError
|
|
// 500: internalServerError
|
|
|
|
// swagger:route PUT /org/preferences org_preferences updateOrgPreferences
|
|
//
|
|
// Update Current Org Prefs.
|
|
//
|
|
// Responses:
|
|
// 200: addOrgUser
|
|
// 400: badRequestError
|
|
// 401: unauthorisedError
|
|
// 403: forbiddenError
|
|
// 500: internalServerError
|