Skip to Content
Java EE 8 and Angular
book

Java EE 8 and Angular

by Prashant Padmanabhan
January 2018
Intermediate to advanced
348 pages
8h 17m
English
Packt Publishing
Content preview from Java EE 8 and Angular

URI templates

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Web Apps with Spring 5 and Angular

Building Web Apps with Spring 5 and Angular

Ajitesh Kumar Shukla

Publisher Resources

ISBN: 9781788291200Supplemental Content