Merge pull request #55774 from nextcloud/backport/55732/stable31

[stable31] fix(TextProcessingApiController): Set better attribute on routes
backport/55776/stable30
Marcel Klehr 4 months ago committed by GitHub
commit 640fe5bbd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      core/Controller/TextProcessingApiController.php
  2. 2
      core/openapi-full.json
  3. 2
      core/openapi.json

@ -96,7 +96,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
* 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 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
* 200: Task returned
* 404: Task not found
*/
#[PublicPage]
#[NoAdminRequired]
#[ApiRoute(verb: 'GET', url: '/task/{id}', root: '/textprocessing')]
public function getTask(int $id): DataResponse {
try {

@ -5491,7 +5491,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},
@ -5709,7 +5708,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},

@ -5491,7 +5491,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},
@ -5709,7 +5708,6 @@
"text_processing_api"
],
"security": [
{},
{
"bearer_auth": []
},

Loading…
Cancel
Save