Skip to content

Commit eb1b09d

Browse files
Merge pull request nextcloud#40257 from nextcloud/fix/openapi/comments/ignore
comments: Ignore endpoints in OpenAPI
2 parents f331d86 + 8f0a35e commit eb1b09d

File tree

2 files changed

+3
-53
lines changed

2 files changed

+3
-53
lines changed

apps/comments/lib/Controller/NotificationsController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
namespace OCA\Comments\Controller;
2626

2727
use OCP\AppFramework\Controller;
28+
use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
2829
use OCP\AppFramework\Http\NotFoundResponse;
2930
use OCP\AppFramework\Http\RedirectResponse;
3031
use OCP\AppFramework\Http;
@@ -40,6 +41,7 @@
4041
/**
4142
* @package OCA\Comments\Controller
4243
*/
44+
#[IgnoreOpenAPI]
4345
class NotificationsController extends Controller {
4446

4547
protected IRootFolder $rootFolder;

apps/comments/openapi.json

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -41,58 +41,6 @@
4141
}
4242
}
4343
},
44-
"paths": {
45-
"/index.php/apps/comments/notifications/view/{id}": {
46-
"get": {
47-
"operationId": "notifications-view",
48-
"summary": "View a notification",
49-
"tags": [
50-
"notifications"
51-
],
52-
"security": [
53-
{},
54-
{
55-
"bearer_auth": []
56-
},
57-
{
58-
"basic_auth": []
59-
}
60-
],
61-
"parameters": [
62-
{
63-
"name": "id",
64-
"in": "path",
65-
"description": "ID of the notification",
66-
"required": true,
67-
"schema": {
68-
"type": "string"
69-
}
70-
}
71-
],
72-
"responses": {
73-
"303": {
74-
"description": "Redirected to notification",
75-
"headers": {
76-
"Location": {
77-
"schema": {
78-
"type": "string"
79-
}
80-
}
81-
}
82-
},
83-
"404": {
84-
"description": "Notification not found",
85-
"content": {
86-
"text/html": {
87-
"schema": {
88-
"type": "string"
89-
}
90-
}
91-
}
92-
}
93-
}
94-
}
95-
}
96-
},
44+
"paths": {},
9745
"tags": []
9846
}

0 commit comments

Comments
 (0)