@Rest-Annotated Class
The @Rest annotation is the primary way of defining and configuring REST resource classes.
The functionality of the class itself is covered in detail in the topics later.
The @Rest annotation in inheritable from parents and interfaces of resource classes.
When multiple annotations are defined at different levels, the annotation values are combined. This is a particularly useful feature because it allows you to define your own configured parent resource classes that can be extended by all your child resources so that they all share common settings.
In This Section
📄️ 3.3.2.1. Predefined Classes
The following example represents the bare-minimum needed for deploying a top-level REST endpoint with basic JSON
📄️ 3.3.2.2. Child Resources
Child Resources are REST servlets or objects that are linked to parent resources through the @Rest(children) annotation.
📄️ 3.3.2.3. Path Variables
The path can contain variables that get resolved to @Path
📄️ 3.3.2.4. Deployment
REST resources are deployed in the following ways:
📄️ 3.3.2.5. Lifecycle Hooks
Lifecycle hooks allow you to hook into lifecycle events of the servlet/resource creation and REST calls.
📄️ 3.3.2.6. @Rest and @RestOp
Reference for the attributes of the @Rest, @RestOp and @Mixin annotations that configure a REST resource.