Chapter 45. Creating Resources
Types of resources
- A Section 45.3, “Root resource classes” is the entry point to a service's resource tree. It is decorated with the
@Pathannotation to define the base URI for the resources in the service.
- Section 45.5, “Working with sub-resources” are accessed through the root resource. They are implemented by methods that are decorated with the
@Pathannotation. A sub-resource's
@Pathannotation defines a URI relative to the base URI of a root resource.
Example 45.1. Simple resource class