aboutsummaryrefslogtreecommitdiffstats
path: root/core/openapi.json
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-05-14 18:25:59 +0200
committerGitHub <noreply@github.com>2024-05-14 18:25:59 +0200
commit0e29a79b23838e5fc7d4106bd2e98c7e970c6c81 (patch)
treec2f86e51cd87a46754b6ad64ae247f35252b5d95 /core/openapi.json
parent177b13fd815aa8aab17e9037c09cc091bbc62aea (diff)
parentdd997b6ac7738822a52f6ccd94d133dfeb8a82ec (diff)
downloadnextcloud-server-0e29a79b23838e5fc7d4106bd2e98c7e970c6c81.tar.gz
nextcloud-server-0e29a79b23838e5fc7d4106bd2e98c7e970c6c81.zip
Merge pull request #45288 from nextcloud/docs/preview/parameter-descriptions
Diffstat (limited to 'core/openapi.json')
-rw-r--r--core/openapi.json24
1 files changed, 16 insertions, 8 deletions
diff --git a/core/openapi.json b/core/openapi.json
index 37c32cb7404..1c7b2caeeac 100644
--- a/core/openapi.json
+++ b/core/openapi.json
@@ -6212,7 +6212,7 @@
{
"name": "x",
"in": "query",
- "description": "Width of the preview",
+ "description": "Width of the preview. A width of -1 will use the original image width.",
"schema": {
"type": "integer",
"format": "int64",
@@ -6222,7 +6222,7 @@
{
"name": "y",
"in": "query",
- "description": "Height of the preview",
+ "description": "Height of the preview. A height of -1 will use the original image height.",
"schema": {
"type": "integer",
"format": "int64",
@@ -6232,7 +6232,7 @@
{
"name": "a",
"in": "query",
- "description": "Whether to not crop the preview",
+ "description": "Preserve the aspect ratio",
"schema": {
"type": "integer",
"default": 0,
@@ -6261,7 +6261,11 @@
"description": "How to crop the image",
"schema": {
"type": "string",
- "default": "fill"
+ "default": "fill",
+ "enum": [
+ "fill",
+ "cover"
+ ]
}
},
{
@@ -6356,7 +6360,7 @@
{
"name": "x",
"in": "query",
- "description": "Width of the preview",
+ "description": "Width of the preview. A width of -1 will use the original image width.",
"schema": {
"type": "integer",
"format": "int64",
@@ -6366,7 +6370,7 @@
{
"name": "y",
"in": "query",
- "description": "Height of the preview",
+ "description": "Height of the preview. A height of -1 will use the original image height.",
"schema": {
"type": "integer",
"format": "int64",
@@ -6376,7 +6380,7 @@
{
"name": "a",
"in": "query",
- "description": "Whether to not crop the preview",
+ "description": "Preserve the aspect ratio",
"schema": {
"type": "integer",
"default": 0,
@@ -6405,7 +6409,11 @@
"description": "How to crop the image",
"schema": {
"type": "string",
- "default": "fill"
+ "default": "fill",
+ "enum": [
+ "fill",
+ "cover"
+ ]
}
},
{