@Retention(value=RUNTIME) @Target(value=METHOD) @Inherited public @interface Resource
This marks a method to be called by a verb (GET, PUT, POST, EXECUTE, DELETE) and a resource name.
The verb and the name of the resource are extracted from the method name. The
part before the first uppercase character is the verb, the rest is the name
of the resource. So getData would be mapped to the verb GET
and the resource data, where deleteUserEntry would be mapped
to DELETE and userEntry.
Note: Marking methods with multiple, conflicting annotations may result in an undefined behavior.
Copyright © 2017. All rights reserved.