Browse Source
comments: Ignore endpoints in OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/40257/head
jld3103
2 years ago
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
2 changed files with
3 additions and
53 deletions
-
apps/comments/lib/Controller/NotificationsController.php
-
apps/comments/openapi.json
|
|
@ -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; |
|
|
|
|
|
@ -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": [] |
|
|
|
} |