diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-09-04 20:23:24 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-09-04 20:23:24 +0200 |
commit | 8f0a35e13f618a5541256db47655fff6a1c4b5f6 (patch) | |
tree | 60affdf6ab66ed6f53e4ab49ed4b7d2a203a13e6 /apps | |
parent | e54724728159e96e7f2c24d77a5a22d081f80aac (diff) | |
download | nextcloud-server-8f0a35e13f618a5541256db47655fff6a1c4b5f6.tar.gz nextcloud-server-8f0a35e13f618a5541256db47655fff6a1c4b5f6.zip |
comments: Ignore endpoints in OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/lib/Controller/NotificationsController.php | 2 | ||||
-rw-r--r-- | 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 0186f8bc736..2fd05191109 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 @@ use OCP\Notification\IManager; /** * @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 fcb370bbd4e..b7440a5b526 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 |