Annotation Interface Route


@Retention(RUNTIME) @Target({TYPE,ANNOTATION_TYPE}) public @interface Route
HTTP method and path for a class-based RequestHandler. Path is relative to the mount namespace (e.g. path = "/profile" under /api/api/profile).

Prefer shorthand (@GET("/x"), @POST("/x"), …); they are meta-annotated with @Route and resolve to the same metadata as an explicit @Route(method=…, path=…) via Routes.of(Class).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description