@RestMethod
REST Java methods are identified on REST servlets using the {@link oajr.annotation.RestMethod @RestMethod} annotation. The annotation allows the framework to identify the available REST methods through reflection.
When the name
and/or path
values are not specified, their values are inferred
from the Java method name.
The HTTP method can be inferred from the Java method by starting the method name with any of the following:
get
put
post
delete
options
head
trace
patch
If path
is not defined, it's inferred from the Java method name (minus the prefix above).
If name
and path
are both specified, the Java method name can be anything.