@Target(value={METHOD,FIELD}) @Retention(value=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
.
Copyright © 2019 JBoss by Red Hat. All rights reserved.