January 2018
Intermediate to advanced
348 pages
8h 17m
English
A resource class URI is defined by the deployed application context followed by the value of @ApplicationPath and @Path annotations used. So, our application, with the context as ims-micro-users and the UsersResource class ,would result in the following URI:
/ims-micro-users/resources/users
The subresources, which are methods annotated with @Path annotations, are identified by a combination of the @Path value of the resource class followed by the method's own @Path annotation value. So, in the example used, we can invoke the get subresource method present on the UsersResource class by using the following URI:
/ims-micro-users/resources/users/10
The @Path ("{id}") annotation on the public get method exposes the subresource as ...