Annotation Interface ResourceID


@Target({METHOD,FIELD}) @Retention(RUNTIME) @Documented public @interface ResourceID

Marks this property as this resource's ID in URI templates.

Suppose this resource can be accessed using the URI template /orders/{name}, and your resource holds the name bean property, then your name property should be annotated with @ResourceID.

Author:
Stéphane Épardaud