November 2017
Intermediate to advanced
420 pages
10h 29m
English
The @javax.ws.rs.Path annotation indicates the URI path to which a resource class or a class method must respond. The value that you specify for the @Path annotation is relative to the URI of the server where the REST resource is hosted. This annotation can be applied at both the class and method levels.
Specifying the @Path annotation on a resource class
The following code snippet illustrates how you can make a POJO class respond to a URI path template containing the /departments path fragment:
import javax.ws.rs.Path; ...
Read now
Unlock full access