diff --git a/apps/dashboard/openapi.json b/apps/dashboard/openapi.json index 3351e0a3e3c84..775d21adb504d 100644 --- a/apps/dashboard/openapi.json +++ b/apps/dashboard/openapi.json @@ -187,43 +187,39 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sinceIds": { - "type": "object", - "default": [], - "description": "Array indexed by widget Ids, contains date/id from which we want the new items", - "additionalProperties": { - "type": "string" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 7, - "description": "Limit number of result items per widget", - "minimum": 1, - "maximum": 30 - }, - "widgets": { - "type": "array", - "default": [], - "description": "Limit results to specific widgets", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "sinceIds", + "in": "query", + "description": "Array indexed by widget Ids, contains date/id from which we want the new items", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit number of result items per widget", + "schema": { + "type": "integer", + "format": "int64", + "default": 7, + "minimum": 1, + "maximum": 30 + } + }, + { + "name": "widgets[]", + "in": "query", + "description": "Limit results to specific widgets", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", @@ -290,43 +286,39 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sinceIds": { - "type": "object", - "default": [], - "description": "Array indexed by widget Ids, contains date/id from which we want the new items", - "additionalProperties": { - "type": "string" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 7, - "description": "Limit number of result items per widget, not more than 30 are allowed", - "minimum": 1, - "maximum": 30 - }, - "widgets": { - "type": "array", - "default": [], - "description": "Limit results to specific widgets", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "sinceIds", + "in": "query", + "description": "Array indexed by widget Ids, contains date/id from which we want the new items", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit number of result items per widget, not more than 30 are allowed", + "schema": { + "type": "integer", + "format": "int64", + "default": 7, + "minimum": 1, + "maximum": 30 + } + }, + { + "name": "widgets[]", + "in": "query", + "description": "Limit results to specific widgets", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/dav/openapi.json b/apps/dav/openapi.json index 5d3e292a7ef01..7045a7f9b274c 100644 --- a/apps/dav/openapi.json +++ b/apps/dav/openapi.json @@ -382,24 +382,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "location": { - "type": "string", - "nullable": true, - "description": "location/URL to filter by" - } - } - } - } - } - }, "parameters": [ + { + "name": "location", + "in": "query", + "description": "location/URL to filter by", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/federation/openapi.json b/apps/federation/openapi.json index c8b4d1a91b373..3740b8ad04f5c 100644 --- a/apps/federation/openapi.json +++ b/apps/federation/openapi.json @@ -63,31 +63,25 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "url", - "token" - ], - "properties": { - "url": { - "type": "string", - "description": "URL of the server" - }, - "token": { - "type": "string", - "description": "Token of the server" - } - } - } - } - } - }, "parameters": [ + { + "name": "url", + "in": "query", + "description": "URL of the server", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "token", + "in": "query", + "description": "Token of the server", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -297,31 +291,25 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "url", - "token" - ], - "properties": { - "url": { - "type": "string", - "description": "URL of the server" - }, - "token": { - "type": "string", - "description": "Token of the server" - } - } - } - } - } - }, "parameters": [ + { + "name": "url", + "in": "query", + "description": "URL of the server", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "token", + "in": "query", + "description": "Token of the server", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/files/openapi.json b/apps/files/openapi.json index 97c95cc29c0c7..5745f07889d18 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -152,6 +152,25 @@ } } }, + "TemplateField": { + "type": "object", + "required": [ + "index", + "content", + "type" + ], + "properties": { + "index": { + "type": "string" + }, + "content": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, "TemplateFile": { "type": "object", "required": [ @@ -1973,30 +1992,26 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "path": { - "type": "string", - "default": "/", - "description": "The path relative to the user folder" - }, - "depth": { - "type": "integer", - "format": "int64", - "default": 1, - "description": "The depth of the tree" - } - } - } - } - } - }, "parameters": [ + { + "name": "path", + "in": "query", + "description": "The path relative to the user folder", + "schema": { + "type": "string", + "default": "/" + } + }, + { + "name": "depth", + "in": "query", + "description": "The depth of the tree", + "schema": { + "type": "integer", + "format": "int64", + "default": 1 + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json index cf1e7206d0179..79462697883de 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -1385,40 +1385,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "File in the share" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - } - } - } - } - } - }, "parameters": [ { "name": "token", @@ -1428,6 +1394,48 @@ "schema": { "type": "string" } + }, + { + "name": "file", + "in": "query", + "description": "File in the share", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -1565,44 +1573,52 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "shared_with_me": { - "type": "string", - "default": "false", - "description": "Only get shares with the current user" - }, - "reshares": { - "type": "string", - "default": "false", - "description": "Only get shares by the current user and reshares" - }, - "subfiles": { - "type": "string", - "default": "false", - "description": "Only get all shares in a folder" - }, - "path": { - "type": "string", - "default": "", - "description": "Get shares for a specific path" - }, - "include_tags": { - "type": "string", - "default": "false", - "description": "Include tags in the share" - } - } - } - } - } - }, "parameters": [ + { + "name": "shared_with_me", + "in": "query", + "description": "Only get shares with the current user", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "reshares", + "in": "query", + "description": "Only get shares by the current user and reshares", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "subfiles", + "in": "query", + "description": "Only get all shares in a folder", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "path", + "in": "query", + "description": "Get shares for a specific path", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "include_tags", + "in": "query", + "description": "Include tags in the share", + "schema": { + "type": "string", + "default": "false" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1915,26 +1931,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "path" - ], - "properties": { - "path": { - "type": "string", - "description": "Path all shares will be relative to" - } - } - } - } - } - }, "parameters": [ + { + "name": "path", + "in": "query", + "description": "Path all shares will be relative to", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2100,23 +2106,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "include_tags": { - "type": "boolean", - "default": false, - "description": "Include tags in the share" - } - } - } - } - } - }, "parameters": [ { "name": "id", @@ -2127,6 +2116,19 @@ "type": "string" } }, + { + "name": "include_tags", + "in": "query", + "description": "Include tags in the share", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3005,63 +3007,79 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Limit to specific item types" - }, - "page": { - "type": "integer", - "format": "int64", - "default": 1, - "description": "Page offset for searching" - }, - "perPage": { + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Limit to specific item types", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "page", + "in": "query", + "description": "Page offset for searching", + "schema": { + "type": "integer", + "format": "int64", + "default": 1 + } + }, + { + "name": "perPage", + "in": "query", + "description": "Limit amount of search results per page", + "schema": { + "type": "integer", + "format": "int64", + "default": 200 + } + }, + { + "name": "shareType", + "in": "query", + "description": "Limit to specific share types", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "array", + "items": { "type": "integer", - "format": "int64", - "default": 200, - "description": "Limit amount of search results per page" - }, - "shareType": { - "nullable": true, - "description": "Limit to specific share types", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - ] - }, - "lookup": { - "type": "boolean", - "default": false, - "description": "If a global lookup should be performed too" + "format": "int64" } } - } + ] } - } - }, - "parameters": [ + }, + { + "name": "lookup", + "in": "query", + "description": "If a global lookup should be performed too", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3157,43 +3175,37 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "itemType" - ], - "properties": { - "itemType": { - "type": "string", - "description": "Limit to specific item types" - }, - "shareType": { - "nullable": true, - "description": "Limit to specific share types", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - ] + "parameters": [ + { + "name": "itemType", + "in": "query", + "description": "Limit to specific item types", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "shareType", + "in": "query", + "description": "Limit to specific share types", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "array", + "items": { + "type": "integer", + "format": "int64" } } - } + ] } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/files_trashbin/openapi.json b/apps/files_trashbin/openapi.json index 03b98635b3963..6662fe10815b9 100644 --- a/apps/files_trashbin/openapi.json +++ b/apps/files_trashbin/openapi.json @@ -57,41 +57,51 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/apps/files_versions/openapi.json b/apps/files_versions/openapi.json index ee81923c90589..9c6a7e5f47345 100644 --- a/apps/files_versions/openapi.json +++ b/apps/files_versions/openapi.json @@ -65,40 +65,46 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 44, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 44, - "description": "Height of the preview" - }, - "version": { - "type": "string", - "default": "", - "description": "Version of the file to get the preview for" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 44 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 44 + } + }, + { + "name": "version", + "in": "query", + "description": "Version of the file to get the preview for", + "schema": { + "type": "string", + "default": "" } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/apps/oauth2/openapi.json b/apps/oauth2/openapi.json index f06f72b317b63..cdf52de3f5e70 100644 --- a/apps/oauth2/openapi.json +++ b/apps/oauth2/openapi.json @@ -38,35 +38,35 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "client_id", - "state", - "response_type" - ], - "properties": { - "client_id": { - "type": "string", - "description": "Client ID" - }, - "state": { - "type": "string", - "description": "State of the flow" - }, - "response_type": { - "type": "string", - "description": "Response type for the flow" - } - } - } + "parameters": [ + { + "name": "client_id", + "in": "query", + "description": "Client ID", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "state", + "in": "query", + "description": "State of the flow", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "response_type", + "in": "query", + "description": "Response type for the flow", + "required": true, + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Client not found", diff --git a/apps/provisioning_api/openapi-administration.json b/apps/provisioning_api/openapi-administration.json index 532bf684976ff..3834de8a70049 100644 --- a/apps/provisioning_api/openapi-administration.json +++ b/apps/provisioning_api/openapi-administration.json @@ -357,24 +357,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "filter": { - "type": "string", - "nullable": true, - "description": "Filter for enabled or disabled apps" - } - } - } - } - } - }, "parameters": [ + { + "name": "filter", + "in": "query", + "description": "Filter for enabled or disabled apps", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -977,36 +969,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of users returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1252,25 +1244,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -1281,6 +1254,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1541,23 +1523,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "defaultValue": { - "type": "string", - "default": "", - "description": "Default returned value if the value is empty" - } - } - } - } - } - }, "parameters": [ { "name": "app", @@ -1577,6 +1542,15 @@ "type": "string" } }, + { + "name": "defaultValue", + "in": "query", + "description": "Default returned value if the value is empty", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/provisioning_api/openapi-full.json b/apps/provisioning_api/openapi-full.json index 4c7b1b2e29a67..6577efebed90a 100644 --- a/apps/provisioning_api/openapi-full.json +++ b/apps/provisioning_api/openapi-full.json @@ -404,24 +404,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "filter": { - "type": "string", - "nullable": true, - "description": "Filter for enabled or disabled apps" - } - } - } - } - } - }, "parameters": [ + { + "name": "filter", + "in": "query", + "description": "Filter for enabled or disabled apps", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -777,36 +769,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -962,36 +954,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of users returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1237,25 +1229,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -1266,6 +1239,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1668,36 +1650,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1907,35 +1889,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ { "name": "groupId", @@ -1947,6 +1900,35 @@ "pattern": "^.+$" } }, + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2033,36 +2015,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2295,36 +2277,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2411,36 +2393,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of users returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3549,25 +3531,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -3578,6 +3541,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4048,28 +4020,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "configKeys" - ], - "properties": { - "configKeys": { - "type": "array", - "description": "Keys to delete", - "items": { - "type": "string" - } - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -4080,6 +4030,18 @@ "type": "string" } }, + { + "name": "configKeys[]", + "in": "query", + "description": "Keys to delete", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/provisioning_api/openapi.json b/apps/provisioning_api/openapi.json index 65cb01bc38002..ef07072460eed 100644 --- a/apps/provisioning_api/openapi.json +++ b/apps/provisioning_api/openapi.json @@ -403,36 +403,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -504,36 +504,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -743,35 +743,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ { "name": "groupId", @@ -783,6 +754,35 @@ "pattern": "^.+$" } }, + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -952,36 +952,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1214,36 +1214,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1330,36 +1330,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of users returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2468,25 +2468,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -2497,6 +2478,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3110,28 +3100,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "configKeys" - ], - "properties": { - "configKeys": { - "type": "array", - "description": "Keys to delete", - "items": { - "type": "string" - } - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -3142,6 +3110,18 @@ "type": "string" } }, + { + "name": "configKeys[]", + "in": "query", + "description": "Keys to delete", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/theming/openapi.json b/apps/theming/openapi.json index 45284ebf613e1..9057d26cb69b0 100644 --- a/apps/theming/openapi.json +++ b/apps/theming/openapi.json @@ -138,28 +138,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "plain": { - "type": "boolean", - "default": false, - "description": "Let the browser decide the CSS priority" - }, - "withCustomCss": { - "type": "boolean", - "default": false, - "description": "Include custom CSS" - } - } - } - } - } - }, "parameters": [ { "name": "themeId", @@ -169,6 +147,32 @@ "schema": { "type": "string" } + }, + { + "name": "plain", + "in": "query", + "description": "Let the browser decide the CSS priority", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "withCustomCss", + "in": "query", + "description": "Include custom CSS", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -212,23 +216,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "useSvg": { - "type": "boolean", - "default": true, - "description": "Return image as SVG" - } - } - } - } - } - }, "parameters": [ { "name": "key", @@ -238,6 +225,19 @@ "schema": { "type": "string" } + }, + { + "name": "useSvg", + "in": "query", + "description": "Return image as SVG", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } } ], "responses": { diff --git a/apps/updatenotification/openapi.json b/apps/updatenotification/openapi.json index ffa726a31bb3e..fb6c3c84cf560 100644 --- a/apps/updatenotification/openapi.json +++ b/apps/updatenotification/openapi.json @@ -220,23 +220,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "version": { - "type": "string", - "nullable": true, - "description": "The version to search the changelog entry for (defaults to the latest installed)" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -259,6 +242,15 @@ "type": "string" } }, + { + "name": "version", + "in": "query", + "description": "The version to search the changelog entry for (defaults to the latest installed)", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/user_ldap/openapi.json b/apps/user_ldap/openapi.json index 61fcfea3e6bc4..0881d2e7d51a6 100644 --- a/apps/user_ldap/openapi.json +++ b/apps/user_ldap/openapi.json @@ -133,23 +133,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "showPassword": { - "type": "boolean", - "default": false, - "description": "Whether to show the password" - } - } - } - } - } - }, "parameters": [ { "name": "configID", @@ -160,6 +143,19 @@ "type": "string" } }, + { + "name": "showPassword", + "in": "query", + "description": "Whether to show the password", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/user_status/openapi.json b/apps/user_status/openapi.json index cbaec7d773121..8b631156709cc 100644 --- a/apps/user_status/openapi.json +++ b/apps/user_status/openapi.json @@ -424,31 +424,27 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum number of statuses to find" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset for finding statuses" - } - } - } - } - } - }, "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Maximum number of statuses to find", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for finding statuses", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/apps/webhook_listeners/openapi.json b/apps/webhook_listeners/openapi.json index b460fea0b0201..7b6fdd6241f4d 100644 --- a/apps/webhook_listeners/openapi.json +++ b/apps/webhook_listeners/openapi.json @@ -114,24 +114,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "nullable": true, - "description": "The callback URI to filter by" - } - } - } - } - } - }, "parameters": [ + { + "name": "uri", + "in": "query", + "description": "The callback URI to filter by", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/core/openapi-ex_app.json b/core/openapi-ex_app.json index 3f5de5161722a..cc4a53e10b19d 100644 --- a/core/openapi-ex_app.json +++ b/core/openapi-ex_app.json @@ -907,37 +907,31 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "providerIds", - "taskTypeIds" - ], - "properties": { - "providerIds": { - "type": "array", - "description": "The ids of the providers", - "items": { - "type": "string" - } - }, - "taskTypeIds": { - "type": "array", - "description": "The ids of the task types", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "providerIds[]", + "in": "query", + "description": "The ids of the providers", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, + { + "name": "taskTypeIds[]", + "in": "query", + "description": "The ids of the task types", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/core/openapi-full.json b/core/openapi-full.json index 47cef87379b1d..36ff35d55b95f 100644 --- a/core/openapi-full.json +++ b/core/openapi-full.json @@ -1453,56 +1453,66 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "search" - ], - "properties": { - "search": { - "type": "string", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Type of the items to search for" - }, - "itemId": { - "type": "string", - "nullable": true, - "description": "ID of the items to search for" - }, - "sorter": { - "type": "string", - "nullable": true, - "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"" - }, - "shareTypes": { - "type": "array", - "default": [], - "description": "Types of shares to search for", - "items": { - "type": "integer", - "format": "int64" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 10, - "description": "Maximum number of results to return" - } - } + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Type of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "itemId", + "in": "query", + "description": "ID of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "sorter", + "in": "query", + "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "shareTypes[]", + "in": "query", + "description": "Types of shares to search for", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "integer", + "format": "int64" } } - } - }, - "parameters": [ + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of results to return", + "schema": { + "type": "integer", + "format": "int64", + "default": 10 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1840,30 +1850,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "resourceType", - "resourceId" - ], - "properties": { - "resourceType": { - "type": "string", - "description": "Name of the resource" - }, - "resourceId": { - "type": "string", - "description": "ID of the resource" - } - } - } - } - } - }, "parameters": [ { "name": "collectionId", @@ -1875,6 +1861,24 @@ "format": "int64" } }, + { + "name": "resourceType", + "in": "query", + "description": "Name of the resource", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "query", + "description": "ID of the resource", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2645,24 +2649,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2729,24 +2729,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3310,26 +3306,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3502,31 +3488,25 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference", - "sharingToken" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - }, - "sharingToken": { - "type": "string", - "description": "Token of the public share" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sharingToken", + "in": "query", + "description": "Token of the public share", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4470,23 +4450,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -4497,6 +4460,15 @@ "type": "string" } }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4606,37 +4578,33 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "taskType": { - "type": "string", - "nullable": true, - "description": "The task type to filter by" - }, - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { - "name": "OCS-APIRequest", - "in": "header", - "description": "Required to be true for the API request to pass", - "required": true, + "name": "taskType", + "in": "query", + "description": "The task type to filter by", "schema": { - "type": "boolean", - "default": true + "type": "string", + "nullable": true + } + }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true } } ], @@ -5818,23 +5786,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -5845,6 +5796,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6653,23 +6613,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -6680,6 +6623,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7116,24 +7068,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "from": { - "type": "string", - "default": "", - "description": "the url the user is currently at" - } - } - } - } - } - }, "parameters": [ + { + "name": "from", + "in": "query", + "description": "the url the user is currently at", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7198,53 +7142,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "term": { - "type": "string", - "default": "", - "description": "Term to search" - }, - "sortOrder": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Order of entries" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum amount of entries, limited to 25" - }, - "cursor": { - "nullable": true, - "description": "Offset for searching", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "string" - } - ] - }, - "from": { - "type": "string", - "default": "", - "description": "The current user URL" - } - } - } - } - } - }, "parameters": [ { "name": "providerId", @@ -7255,6 +7152,61 @@ "type": "string" } }, + { + "name": "term", + "in": "query", + "description": "Term to search", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Order of entries", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum amount of entries, limited to 25", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "cursor", + "in": "query", + "description": "Offset for searching", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "string" + } + ] + } + }, + { + "name": "from", + "in": "query", + "description": "The current user URL", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7533,23 +7485,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7573,6 +7508,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7644,23 +7592,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7684,6 +7615,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7888,24 +7832,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "darkTheme": { - "type": "boolean", - "nullable": true, - "default": false, - "description": "Return dark avatar" - } - } - } - } - } - }, "parameters": [ { "name": "guestName", @@ -7929,6 +7855,20 @@ 512 ] } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Return dark avatar", + "schema": { + "type": "integer", + "nullable": true, + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -8250,59 +8190,89 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", @@ -8367,60 +8337,90 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", @@ -9366,37 +9366,31 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "providerIds", - "taskTypeIds" - ], - "properties": { - "providerIds": { - "type": "array", - "description": "The ids of the providers", - "items": { - "type": "string" - } - }, - "taskTypeIds": { - "type": "array", - "description": "The ids of the task types", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "providerIds[]", + "in": "query", + "description": "The ids of the providers", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, + { + "name": "taskTypeIds[]", + "in": "query", + "description": "The ids of the task types", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/core/openapi.json b/core/openapi.json index 5d8a66cac2153..582b01fd050b6 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -1453,56 +1453,66 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "search" - ], - "properties": { - "search": { - "type": "string", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Type of the items to search for" - }, - "itemId": { - "type": "string", - "nullable": true, - "description": "ID of the items to search for" - }, - "sorter": { - "type": "string", - "nullable": true, - "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"" - }, - "shareTypes": { - "type": "array", - "default": [], - "description": "Types of shares to search for", - "items": { - "type": "integer", - "format": "int64" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 10, - "description": "Maximum number of results to return" - } - } + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Type of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "itemId", + "in": "query", + "description": "ID of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "sorter", + "in": "query", + "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "shareTypes[]", + "in": "query", + "description": "Types of shares to search for", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "integer", + "format": "int64" } } - } - }, - "parameters": [ + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of results to return", + "schema": { + "type": "integer", + "format": "int64", + "default": 10 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1840,30 +1850,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "resourceType", - "resourceId" - ], - "properties": { - "resourceType": { - "type": "string", - "description": "Name of the resource" - }, - "resourceId": { - "type": "string", - "description": "ID of the resource" - } - } - } - } - } - }, "parameters": [ { "name": "collectionId", @@ -1875,6 +1861,24 @@ "format": "int64" } }, + { + "name": "resourceType", + "in": "query", + "description": "Name of the resource", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "query", + "description": "ID of the resource", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2645,24 +2649,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2729,24 +2729,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3310,26 +3306,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3502,31 +3488,25 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference", - "sharingToken" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - }, - "sharingToken": { - "type": "string", - "description": "Token of the public share" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sharingToken", + "in": "query", + "description": "Token of the public share", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4470,23 +4450,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -4497,6 +4460,15 @@ "type": "string" } }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4606,37 +4578,33 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "taskType": { - "type": "string", - "nullable": true, - "description": "The task type to filter by" - }, - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { - "name": "OCS-APIRequest", - "in": "header", - "description": "Required to be true for the API request to pass", - "required": true, + "name": "taskType", + "in": "query", + "description": "The task type to filter by", "schema": { - "type": "boolean", - "default": true + "type": "string", + "nullable": true + } + }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true } } ], @@ -5818,23 +5786,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -5845,6 +5796,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6653,23 +6613,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -6680,6 +6623,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7116,24 +7068,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "from": { - "type": "string", - "default": "", - "description": "the url the user is currently at" - } - } - } - } - } - }, "parameters": [ + { + "name": "from", + "in": "query", + "description": "the url the user is currently at", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7198,53 +7142,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "term": { - "type": "string", - "default": "", - "description": "Term to search" - }, - "sortOrder": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Order of entries" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum amount of entries, limited to 25" - }, - "cursor": { - "nullable": true, - "description": "Offset for searching", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "string" - } - ] - }, - "from": { - "type": "string", - "default": "", - "description": "The current user URL" - } - } - } - } - } - }, "parameters": [ { "name": "providerId", @@ -7255,6 +7152,61 @@ "type": "string" } }, + { + "name": "term", + "in": "query", + "description": "Term to search", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Order of entries", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum amount of entries, limited to 25", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "cursor", + "in": "query", + "description": "Offset for searching", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "string" + } + ] + } + }, + { + "name": "from", + "in": "query", + "description": "The current user URL", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7533,23 +7485,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7573,6 +7508,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7644,23 +7592,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7684,6 +7615,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7888,24 +7832,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "darkTheme": { - "type": "boolean", - "nullable": true, - "default": false, - "description": "Return dark avatar" - } - } - } - } - } - }, "parameters": [ { "name": "guestName", @@ -7929,6 +7855,20 @@ 512 ] } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Return dark avatar", + "schema": { + "type": "integer", + "nullable": true, + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -8250,59 +8190,89 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", @@ -8367,60 +8337,90 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/lib/composer/composer/installed.json b/lib/composer/composer/installed.json index f20a6c47c6d4f..13ea12dca2a27 100644 --- a/lib/composer/composer/installed.json +++ b/lib/composer/composer/installed.json @@ -1,5 +1,68 @@ { - "packages": [], - "dev": false, - "dev-package-names": [] + "packages": [ + { + "name": "bamarni/composer-bin-plugin", + "version": "1.8.2", + "version_normalized": "1.8.2.0", + "source": { + "type": "git", + "url": "https://github.com/bamarni/composer-bin-plugin.git", + "reference": "92fd7b1e6e9cdae19b0d57369d8ad31a37b6a880" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bamarni/composer-bin-plugin/zipball/92fd7b1e6e9cdae19b0d57369d8ad31a37b6a880", + "reference": "92fd7b1e6e9cdae19b0d57369d8ad31a37b6a880", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "composer/composer": "^2.0", + "ext-json": "*", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9.5", + "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/finder": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/process": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0" + }, + "time": "2022-10-31T08:38:03+00:00", + "type": "composer-plugin", + "extra": { + "class": "Bamarni\\Composer\\Bin\\BamarniBinPlugin" + }, + "installation-source": "dist", + "autoload": { + "psr-4": { + "Bamarni\\Composer\\Bin\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "No conflicts for your bin dependencies", + "keywords": [ + "composer", + "conflict", + "dependency", + "executable", + "isolation", + "tool" + ], + "support": { + "issues": "https://github.com/bamarni/composer-bin-plugin/issues", + "source": "https://github.com/bamarni/composer-bin-plugin/tree/1.8.2" + }, + "install-path": "../bamarni/composer-bin-plugin" + } + ], + "dev": true, + "dev-package-names": [ + "bamarni/composer-bin-plugin" + ] } diff --git a/lib/composer/composer/installed.php b/lib/composer/composer/installed.php index 5fe8d8f7f491f..f3030f4e38886 100644 --- a/lib/composer/composer/installed.php +++ b/lib/composer/composer/installed.php @@ -3,21 +3,30 @@ 'name' => '__root__', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'b99276fdfbac6b1ff243807b8b5b8161f0f67a24', + 'reference' => '85b1b1fb68048d6f9782c468fc70b60611294005', 'type' => 'library', 'install_path' => __DIR__ . '/../../../', 'aliases' => array(), - 'dev' => false, + 'dev' => true, ), 'versions' => array( '__root__' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'b99276fdfbac6b1ff243807b8b5b8161f0f67a24', + 'reference' => '85b1b1fb68048d6f9782c468fc70b60611294005', 'type' => 'library', 'install_path' => __DIR__ . '/../../../', 'aliases' => array(), 'dev_requirement' => false, ), + 'bamarni/composer-bin-plugin' => array( + 'pretty_version' => '1.8.2', + 'version' => '1.8.2.0', + 'reference' => '92fd7b1e6e9cdae19b0d57369d8ad31a37b6a880', + 'type' => 'composer-plugin', + 'install_path' => __DIR__ . '/../bamarni/composer-bin-plugin', + 'aliases' => array(), + 'dev_requirement' => true, + ), ), ); diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index 7c1935d0a9c5b..fd0e6981f4e95 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -368,6 +368,12 @@ class Definitions { 'description' => 'The height in pixels if the file is an image', 'example' => '1080', ], + 'blurhash' => [ + 'since' => '29.0.4', + 'required' => false, + 'description' => 'The blurhash of the image', + 'example' => 'LEHV9uae2yk8pyo0adR*.7kCMdnj', + ], ], ], 'forms-form' => [ diff --git a/vendor-bin/cs-fixer/composer.lock b/vendor-bin/cs-fixer/composer.lock index 489451c00e519..9a11d920235e6 100644 --- a/vendor-bin/cs-fixer/composer.lock +++ b/vendor-bin/cs-fixer/composer.lock @@ -49,16 +49,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.58.1", + "version": "v3.62.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "a6af3df8516033b450a220003c673b9393d68f55" + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/a6af3df8516033b450a220003c673b9393d68f55", - "reference": "a6af3df8516033b450a220003c673b9393d68f55", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", "shasum": "" }, "require": { @@ -95,9 +95,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.58.1" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" }, - "time": "2024-05-29T16:39:49+00:00" + "time": "2024-08-07T17:03:46+00:00" } ], "packages-dev": [], diff --git a/vendor-bin/openapi-extractor/composer.lock b/vendor-bin/openapi-extractor/composer.lock index 32e794f0bd836..a08d005fb7e1c 100644 --- a/vendor-bin/openapi-extractor/composer.lock +++ b/vendor-bin/openapi-extractor/composer.lock @@ -82,12 +82,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud/openapi-extractor.git", - "reference": "82473016d48704ed21e75ea2afa9b0262b9b9a6d" + "reference": "2153e7001ae4bd14a6747a66b69075a5c86e1629" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/82473016d48704ed21e75ea2afa9b0262b9b9a6d", - "reference": "82473016d48704ed21e75ea2afa9b0262b9b9a6d", + "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/2153e7001ae4bd14a6747a66b69075a5c86e1629", + "reference": "2153e7001ae4bd14a6747a66b69075a5c86e1629", "shasum": "" }, "require": { @@ -130,7 +130,7 @@ "source": "https://github.com/nextcloud/openapi-extractor/tree/main", "issues": "https://github.com/nextcloud/openapi-extractor/issues" }, - "time": "2024-07-02T07:11:51+00:00" + "time": "2024-08-19T09:03:29+00:00" }, { "name": "nikic/php-parser", diff --git a/vendor-bin/phpunit/composer.lock b/vendor-bin/phpunit/composer.lock index 864ab93f654c2..9a7fbc593fadb 100644 --- a/vendor-bin/phpunit/composer.lock +++ b/vendor-bin/phpunit/composer.lock @@ -78,16 +78,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { @@ -95,11 +95,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -125,7 +126,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" }, "funding": [ { @@ -133,20 +134,20 @@ "type": "tidelift" } ], - "time": "2023-03-08T13:26:56+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { "name": "nikic/php-parser", - "version": "v5.0.2", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", "shasum": "" }, "require": { @@ -157,7 +158,7 @@ }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -189,9 +190,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" }, - "time": "2024-03-05T20:51:40+00:00" + "time": "2024-07-01T20:03:41+00:00" }, { "name": "phar-io/manifest", diff --git a/vendor-bin/psalm/composer.lock b/vendor-bin/psalm/composer.lock index 6984133013c44..1b6bc0c922433 100644 --- a/vendor-bin/psalm/composer.lock +++ b/vendor-bin/psalm/composer.lock @@ -168,30 +168,38 @@ }, { "name": "composer/pcre", - "version": "3.1.4", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "04229f163664973f68f38f6f73d917799168ef24" + "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/04229f163664973f68f38f6f73d917799168ef24", - "reference": "04229f163664973f68f38f6f73d917799168ef24", + "url": "https://api.github.com/repos/composer/pcre/zipball/ea4ab6f9580a4fd221e0418f2c357cdd39102a90", + "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, + "conflict": { + "phpstan/phpstan": "<1.11.8" + }, "require-dev": { - "phpstan/phpstan": "^1.3", + "phpstan/phpstan": "^1.11.8", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^5" + "phpunit/phpunit": "^8 || ^9" }, "type": "library", "extra": { "branch-alias": { "dev-main": "3.x-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] } }, "autoload": { @@ -219,7 +227,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.1.4" + "source": "https://github.com/composer/pcre/tree/3.2.0" }, "funding": [ { @@ -235,20 +243,20 @@ "type": "tidelift" } ], - "time": "2024-05-27T13:40:54+00:00" + "time": "2024-07-25T09:36:02+00:00" }, { "name": "composer/semver", - "version": "3.4.0", + "version": "3.4.2", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", + "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", "shasum": "" }, "require": { @@ -300,7 +308,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.0" + "source": "https://github.com/composer/semver/tree/3.4.2" }, "funding": [ { @@ -316,7 +324,7 @@ "type": "tidelift" } ], - "time": "2023-08-31T09:50:34+00:00" + "time": "2024-07-12T11:35:52+00:00" }, { "name": "composer/xdebug-handler", @@ -1199,16 +1207,16 @@ }, { "name": "symfony/console", - "version": "v6.4.8", + "version": "v6.4.10", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91" + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/be5854cee0e8c7b110f00d695d11debdfa1a2a91", - "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91", + "url": "https://api.github.com/repos/symfony/console/zipball/504974cbe43d05f83b201d6498c206f16fc0cdbc", + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc", "shasum": "" }, "require": { @@ -1273,7 +1281,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.8" + "source": "https://github.com/symfony/console/tree/v6.4.10" }, "funding": [ { @@ -1289,7 +1297,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-07-26T12:30:32+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1360,16 +1368,16 @@ }, { "name": "symfony/filesystem", - "version": "v6.4.8", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "4d37529150e7081c51b3c5d5718c55a04a9503f3" + "reference": "b51ef8059159330b74a4d52f68e671033c0fe463" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/4d37529150e7081c51b3c5d5718c55a04a9503f3", - "reference": "4d37529150e7081c51b3c5d5718c55a04a9503f3", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b51ef8059159330b74a4d52f68e671033c0fe463", + "reference": "b51ef8059159330b74a4d52f68e671033c0fe463", "shasum": "" }, "require": { @@ -1406,7 +1414,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.4.8" + "source": "https://github.com/symfony/filesystem/tree/v6.4.9" }, "funding": [ { @@ -1422,7 +1430,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-06-28T09:49:33+00:00" }, { "name": "symfony/polyfill-ctype", @@ -1827,16 +1835,16 @@ }, { "name": "symfony/string", - "version": "v6.4.8", + "version": "v6.4.10", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "a147c0f826c4a1f3afb763ab8e009e37c877a44d" + "reference": "ccf9b30251719567bfd46494138327522b9a9446" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/a147c0f826c4a1f3afb763ab8e009e37c877a44d", - "reference": "a147c0f826c4a1f3afb763ab8e009e37c877a44d", + "url": "https://api.github.com/repos/symfony/string/zipball/ccf9b30251719567bfd46494138327522b9a9446", + "reference": "ccf9b30251719567bfd46494138327522b9a9446", "shasum": "" }, "require": { @@ -1893,7 +1901,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.8" + "source": "https://github.com/symfony/string/tree/v6.4.10" }, "funding": [ { @@ -1909,7 +1917,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-07-22T10:21:14+00:00" }, { "name": "vimeo/psalm",