@RestOp-Annotated Method Basics
REST Java methods are identified on REST servlets using the @RestOp annotation.
The annotation allows the framework to identify the available REST methods through reflection.
Example
@RestOp(method=GET, path="/")
public String sayHello() {
return "Hello world!";
}
The following specialized annotations are also provided for specific HTTP methods:
Example
@RestGet(path="/")
public String sayHello() {
return "Hello world!";
}