summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2023-09-05 10:42:09 +0200
committerGitHub <noreply@github.com>2023-09-05 10:42:09 +0200
commiteb1b09da6728d300aecf65fb28d3d49e546a9bee (patch)
tree3b21db5893997f8518b717c06006929792b6678a
parentf331d86ca84f45c94c9bd38df771c40e133c6bf7 (diff)
parent8f0a35e13f618a5541256db47655fff6a1c4b5f6 (diff)
downloadnextcloud-server-eb1b09da6728d300aecf65fb28d3d49e546a9bee.tar.gz
nextcloud-server-eb1b09da6728d300aecf65fb28d3d49e546a9bee.zip
Merge pull request #40257 from nextcloud/fix/openapi/comments/ignore
comments: Ignore endpoints in OpenAPI
-rw-r--r--apps/comments/lib/Controller/NotificationsController.php2
-rw-r--r--apps/comments/openapi.json54
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