aboutsummaryrefslogtreecommitdiffstats
path: root/core/openapi.json
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-20 13:33:05 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-20 13:33:05 +0200
commit7b7f552a6e70223c7eec7300cba2eac5d96bb765 (patch)
tree5528b551bec1725395d204ea1171833d01b57b24 /core/openapi.json
parent37c4ccc751ad0f1bfbd6c85e33a8c16bdd79ca5c (diff)
downloadnextcloud-server-7b7f552a6e70223c7eec7300cba2eac5d96bb765.tar.gz
nextcloud-server-7b7f552a6e70223c7eec7300cba2eac5d96bb765.zip
fix(Text2Image): Fix OpenAPI types
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/openapi.json')
-rw-r--r--core/openapi.json67
1 files changed, 65 insertions, 2 deletions
diff --git a/core/openapi.json b/core/openapi.json
index 6f606ceb4ca..2bf52d0895d 100644
--- a/core/openapi.json
+++ b/core/openapi.json
@@ -458,7 +458,8 @@
"userId",
"appId",
"input",
- "identifier"
+ "identifier",
+ "numberOfImages"
],
"properties": {
"id": {
@@ -483,6 +484,10 @@
"identifier": {
"type": "string",
"nullable": true
+ },
+ "numberOfImages": {
+ "type": "integer",
+ "format": "int64"
}
}
},
@@ -5281,6 +5286,16 @@
}
},
{
+ "name": "numberOfImages",
+ "in": "query",
+ "description": "The number of images to generate",
+ "schema": {
+ "type": "integer",
+ "format": "int64",
+ "default": 8
+ }
+ },
+ {
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
@@ -5367,6 +5382,44 @@
}
}
}
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "ocs"
+ ],
+ "properties": {
+ "ocs": {
+ "type": "object",
+ "required": [
+ "meta",
+ "data"
+ ],
+ "properties": {
+ "meta": {
+ "$ref": "#/components/schemas/OCSMeta"
+ },
+ "data": {
+ "type": "object",
+ "required": [
+ "message"
+ ],
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
}
}
@@ -5680,7 +5733,7 @@
}
}
},
- "/ocs/v2.php/text2image/task/{id}/image": {
+ "/ocs/v2.php/text2image/task/{id}/image/{index}": {
"get": {
"operationId": "text_to_image_api-get-image",
"summary": "This endpoint allows downloading the resulting image of a task",
@@ -5708,6 +5761,16 @@
}
},
{
+ "name": "index",
+ "in": "path",
+ "description": "The index of the image to retrieve",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",