diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php index 697dc530ae970..f2d589ccdc40e 100644 --- a/core/Controller/TextProcessingApiController.php +++ b/core/Controller/TextProcessingApiController.php @@ -96,7 +96,7 @@ public function taskTypes(): DataResponse { * 400: Scheduling task is not possible * 412: Scheduling task is not possible */ - #[PublicPage] + #[NoAdminRequired] #[UserRateLimit(limit: 20, period: 120)] #[AnonRateLimit(limit: 5, period: 120)] #[ApiRoute(verb: 'POST', url: '/schedule', root: '/textprocessing')] @@ -136,7 +136,7 @@ public function schedule(string $input, string $type, string $appId, string $ide * 200: Task returned * 404: Task not found */ - #[PublicPage] + #[NoAdminRequired] #[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')] public function getTask(int $id): DataResponse { try { diff --git a/core/openapi-full.json b/core/openapi-full.json index 9271d05b3296b..408a0018f4688 100644 --- a/core/openapi-full.json +++ b/core/openapi-full.json @@ -5249,7 +5249,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] }, @@ -5467,7 +5466,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] }, diff --git a/core/openapi.json b/core/openapi.json index 8a8225c9b04c0..f2b148b1b690f 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -5249,7 +5249,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] }, @@ -5467,7 +5466,6 @@ "text_processing_api" ], "security": [ - {}, { "bearer_auth": [] },