Chapter 43. Creating Resources
Types of resources
- A Section 43.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 43.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 43.1. Simple resource class