Annotation Interface Api


@Retention(RUNTIME) @Target(METHOD) public @interface Api
Indicates that the annotated method does not require authentication.

If set on a Handler, defaults all routes that are missing a value for the role to the given role.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • value

      String[] value
      Returns:
      the role that may access the route. if unset, will inherit the role from handlers @Roles annotation.
      Default:
      {"unset"}
    • route

      String route
      Returns:
      overrides the method name as the route name.
      Default:
      ""