Annotation Interface Resource


@Target(TYPE) @Retention(RUNTIME) @IndexAnnotated public @interface Resource
This annotation must be present on a class for Resource Methods to be detected.

For example:

 @Resource // This annotation must be here for @GET to work
public class MyResource {
  @GET("/")
  public String index() {
    return "Hello, world!";
  }
}
Author:
Mark Allen