Possible annotations for controller methods


while reading the docs, I stumbled over the following paragraph in the routing section:

@NoAdminRequired and @NoCSRFRequired in the comments above the method turn off security checks, see requests/controllers

Maybe I am just blindly dumb, but I do not see the reference requests/controller anywhere. It is no link to an address and in the documentation, I do not find these keywords very often.

Can anyone point me in the right direction?

  1. What are these annotations doing exactly? Why/when do I need them?
  2. What other annotations are built-in?

It would be good to have a documentation/list of these.


It’s a broken link. See https://docs.nextcloud.com/server/latest/developer_manual/basics/controllers.html#authentication

1 Like