|
|
|
@ -20,27 +20,6 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"schemas": {
|
|
|
|
|
"Background": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"backgroundImage",
|
|
|
|
|
"backgroundColor",
|
|
|
|
|
"version"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"backgroundImage": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
},
|
|
|
|
|
"backgroundColor": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"version": {
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"format": "int64"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"OCSMeta": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
@ -619,18 +598,6 @@
|
|
|
|
|
"basic_auth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "OCS-APIRequest",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "Required to be true for the API request to pass",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Background image returned",
|
|
|
|
@ -656,151 +623,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/index.php/apps/theming/background/{type}": {
|
|
|
|
|
"post": {
|
|
|
|
|
"operationId": "user_theme-set-background",
|
|
|
|
|
"summary": "Set the background",
|
|
|
|
|
"tags": [
|
|
|
|
|
"user_theme"
|
|
|
|
|
],
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"bearer_auth": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"basic_auth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "value",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Path of the background image",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "color",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"description": "Color for the background",
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"nullable": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "type",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"description": "Type of background",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "OCS-APIRequest",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "Required to be true for the API request to pass",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Background set successfully",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Background"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"400": {
|
|
|
|
|
"description": "Setting background is not possible",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"error"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"error": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"error"
|
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"error": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/index.php/apps/theming/background/custom": {
|
|
|
|
|
"delete": {
|
|
|
|
|
"operationId": "user_theme-delete-background",
|
|
|
|
|
"summary": "Delete the background",
|
|
|
|
|
"tags": [
|
|
|
|
|
"user_theme"
|
|
|
|
|
],
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"bearer_auth": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"basic_auth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"name": "OCS-APIRequest",
|
|
|
|
|
"in": "header",
|
|
|
|
|
"description": "Required to be true for the API request to pass",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"type": "boolean",
|
|
|
|
|
"default": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "Background deleted successfully",
|
|
|
|
|
"content": {
|
|
|
|
|
"application/json": {
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/components/schemas/Background"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/ocs/v2.php/apps/theming/api/v1/theme/{themeId}/enable": {
|
|
|
|
|
"put": {
|
|
|
|
|
"operationId": "user_theme-enable-theme",
|
|
|
|
|