Specify which JAX-RS methods are tied to resources
8.2.4. Specifying which JAX-RS methods are tied to which resources This is all done by annotating the methods with the @LinkResource annotation. It supports the following optional parameters: Table 8.2. @LinkResource parameters Parameter Type Function Default value Class Declares an Atom link for the given type of resources. Defaults to the entity body type (non-annotated parameter), or the method's return type. This default does not work with Response or Collection types, they need to be explicitly specified. rel String The Atom link relation list For GET methods returning a Collection self For GET methods returning a non-Collection remove For DELETE methods update For PUT methods add For POST methods You can add several @LinkResource annotations on a single method by enclosing them in a @LinkResources annotation. This way you can add links to the same method on several resource types. For example the /order/foo/comments operation can belongs on the Order resource with the comments relation, and on the Comment resource with the list relation.