Merge pull request #40257 from nextcloud/fix/openapi/comments/ignore

comments: Ignore endpoints in OpenAPI
This commit is contained in:
Kate 2023-09-05 10:42:09 +02:00 committed by GitHub
commit eb1b09da67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 53 deletions

View file

@ -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;

View file

@ -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": []
}