From 8f0a35e13f618a5541256db47655fff6a1c4b5f6 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 4 Sep 2023 20:23:24 +0200 Subject: [PATCH] comments: Ignore endpoints in OpenAPI Signed-off-by: jld3103 --- .../Controller/NotificationsController.php | 2 + apps/comments/openapi.json | 54 +------------------ 2 files changed, 3 insertions(+), 53 deletions(-) diff --git a/apps/comments/lib/Controller/NotificationsController.php b/apps/comments/lib/Controller/NotificationsController.php index 0186f8bc7367f..2fd0519110910 100644 --- a/apps/comments/lib/Controller/NotificationsController.php +++ b/apps/comments/lib/Controller/NotificationsController.php @@ -25,6 +25,7 @@ namespace OCA\Comments\Controller; use OCP\AppFramework\Controller; +use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI; use OCP\AppFramework\Http\NotFoundResponse; use OCP\AppFramework\Http\RedirectResponse; use OCP\AppFramework\Http; @@ -40,6 +41,7 @@ /** * @package OCA\Comments\Controller */ +#[IgnoreOpenAPI] class NotificationsController extends Controller { protected IRootFolder $rootFolder; diff --git a/apps/comments/openapi.json b/apps/comments/openapi.json index fcb370bbd4e0f..b7440a5b526a4 100644 --- a/apps/comments/openapi.json +++ b/apps/comments/openapi.json @@ -41,58 +41,6 @@ } } }, - "paths": { - "/index.php/apps/comments/notifications/view/{id}": { - "get": { - "operationId": "notifications-view", - "summary": "View a notification", - "tags": [ - "notifications" - ], - "security": [ - {}, - { - "bearer_auth": [] - }, - { - "basic_auth": [] - } - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "ID of the notification", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "303": { - "description": "Redirected to notification", - "headers": { - "Location": { - "schema": { - "type": "string" - } - } - } - }, - "404": { - "description": "Notification not found", - "content": { - "text/html": { - "schema": { - "type": "string" - } - } - } - } - } - } - } - }, + "paths": {}, "tags": [] } \ No newline at end of file