{title:'@RestOp-Annotated Methods', updated:'9.0.0'}

REST Java methods are identified on REST servlets using the {@link oajr.annotation.RestOp @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!"; | }