Preferences: refactor experimental apiserver and improve tests (#111596)
This commit is contained in:
@@ -36,36 +36,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/current": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Preferences"
|
||||
],
|
||||
"description": "Get preferences for requester. This combines the user preferences with the team and global defaults",
|
||||
"operationId": "currentPreferences",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "namespace",
|
||||
"in": "path",
|
||||
"description": "workspace",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": "default"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -224,6 +194,36 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences/merged": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Preferences"
|
||||
],
|
||||
"description": "Get preferences for requester. This combines the user preferences with the team and global defaults",
|
||||
"operationId": "mergedPreferences",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "namespace",
|
||||
"in": "path",
|
||||
"description": "workspace",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": "default"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences/{name}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -1122,7 +1122,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/stars/{name}/write/{group}/{kind}/{id}": {
|
||||
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/stars/{name}/update/{group}/{kind}/{id}": {
|
||||
"put": {
|
||||
"tags": [
|
||||
"Stars"
|
||||
|
||||
Reference in New Issue
Block a user