aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-12-17 20:57:08 +0100
committerprovokateurin <kate@provokateurin.de>2025-01-06 14:30:40 +0100
commit3ac8e4324fc058927a25fbeb86f852c9a222f03c (patch)
tree3a55b07663ccc38463b32069bba916ad129630f1 /apps/theming
parent085d4c93647bef0136ce8c639c7567ed659217f2 (diff)
downloadnextcloud-server-3ac8e4324fc058927a25fbeb86f852c9a222f03c.tar.gz
nextcloud-server-3ac8e4324fc058927a25fbeb86f852c9a222f03c.zip
chore(deps): Update openapi-extractor to v1.3.0chore/deps/openapi-extractor
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/openapi.json186
1 files changed, 186 insertions, 0 deletions
diff --git a/apps/theming/openapi.json b/apps/theming/openapi.json
index 9057d26cb69..7ad7242d744 100644
--- a/apps/theming/openapi.json
+++ b/apps/theming/openapi.json
@@ -20,6 +20,31 @@
}
},
"schemas": {
+ "Background": {
+ "type": "object",
+ "required": [
+ "backgroundImage",
+ "backgroundColor",
+ "primaryColor",
+ "version"
+ ],
+ "properties": {
+ "backgroundImage": {
+ "type": "string",
+ "nullable": true
+ },
+ "backgroundColor": {
+ "type": "string"
+ },
+ "primaryColor": {
+ "type": "string"
+ },
+ "version": {
+ "type": "integer",
+ "format": "int64"
+ }
+ }
+ },
"OCSMeta": {
"type": "object",
"required": [
@@ -602,6 +627,18 @@
"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",
@@ -627,6 +664,155 @@
}
}
},
+ "/index.php/apps/theming/background/{type}": {
+ "post": {
+ "operationId": "user_theme-set-background",
+ "summary": "Set the background",
+ "tags": [
+ "user_theme"
+ ],
+ "security": [
+ {
+ "bearer_auth": []
+ },
+ {
+ "basic_auth": []
+ }
+ ],
+ "requestBody": {
+ "required": false,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string",
+ "default": "",
+ "description": "Path of the background image"
+ },
+ "color": {
+ "type": "string",
+ "nullable": true,
+ "description": "Color for the background"
+ }
+ }
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "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",