mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 00:42:23 +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>
24 lines
710 B
Go
24 lines
710 B
Go
package definitions
|
||
|
||
// swagger:route GET /folders/{folder_uid}/permissions folder_permissions getFolderPermissions
|
||
//
|
||
// Gets all existing permissions for the folder with the given `uid`.
|
||
//
|
||
// Responses:
|
||
// 200: getDashboardPermissionsResponse
|
||
// 401: unauthorisedError
|
||
// 403: forbiddenError
|
||
// 404: notFoundError
|
||
// 500: internalServerError
|
||
|
||
// swagger:route POST /folders/{folder_uid}/permissions folder_permissions updateFolderPermissions
|
||
//
|
||
// Updates permissions for a folder. This operation will remove existing permissions if they’re not included in the request.
|
||
//
|
||
// Responses:
|
||
// 200: okResponse
|
||
// 401: unauthorisedError
|
||
// 403: forbiddenError
|
||
// 404: notFoundError
|
||
// 500: internalServerError
|