mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #40257 from nextcloud/fix/openapi/comments/ignore
comments: Ignore endpoints in OpenAPI
This commit is contained in:
commit
eb1b09da67
2 changed files with 3 additions and 53 deletions
|
|
@ -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": []
|
||||
}
|
||||
Loading…
Reference in a new issue