From 52f3f2b3172b2394672598f8f01959bccfd06ef0 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 3 Feb 2025 09:49:25 +0100 Subject: [PATCH] chore(core): Deprecate PreviewController::getPreview() endpoint Signed-off-by: provokateurin --- core/Controller/PreviewController.php | 2 ++ core/openapi-full.json | 2 ++ core/openapi.json | 2 ++ 3 files changed, 6 insertions(+) diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php index 0e4c71380ec5c..a4eaf193ea2eb 100644 --- a/core/Controller/PreviewController.php +++ b/core/Controller/PreviewController.php @@ -42,6 +42,8 @@ public function __construct( /** * Get a preview by file path * + * Deprecated: Use getPreviewByFileId instead + * @deprecated Use getPreviewByFileId instead * @param string $file Path of the file * @param int $x Width of the preview. A width of -1 will use the original image width. * @param int $y Height of the preview. A height of -1 will use the original image height. diff --git a/core/openapi-full.json b/core/openapi-full.json index 78bf7336ce893..5918bab6eacca 100644 --- a/core/openapi-full.json +++ b/core/openapi-full.json @@ -8197,6 +8197,8 @@ "get": { "operationId": "preview-get-preview", "summary": "Get a preview by file path", + "description": "Deprecated: Use getPreviewByFileId instead", + "deprecated": true, "tags": [ "preview" ], diff --git a/core/openapi.json b/core/openapi.json index 08631a1911894..25aee646121db 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -8197,6 +8197,8 @@ "get": { "operationId": "preview-get-preview", "summary": "Get a preview by file path", + "description": "Deprecated: Use getPreviewByFileId instead", + "deprecated": true, "tags": [ "preview" ],