📄️ 3.3.1. REST Server Overview
How to create a REST API in Juneau: annotate a class with @Rest and add @RestOp methods.
🗃️ 3.3.2. @Rest-Annotated Classes
6 items
🗃️ 3.3.3. @RestOp-Annotated Methods
7 items
🗃️ 3.3.4. HTTP parts in REST servers
6 items
📄️ 3.3.5. Marshalling
Examples on this page using RestContext.Builder is pre-10.0 and kept only for historical context.
📄️ 3.3.6. Form Posts
HTTP form posts can be handled two ways:
📄️ 3.3.7. Mixins and Multi-Mount Paths
Juneau REST servers ship two complementary composition / mounting primitives on the class-level
📄️ 3.3.8. Mixin Sub-Contexts
@Rest(mixins=...) got a structural upgrade in 10.0.0. The user-facing API is unchanged
📄️ 3.3.9. Standalone vs Mixin Resources
Several of Juneau's bundled convention and operations classes are dual-use: they're useful both as a
📄️ 3.3.10. Children vs Mixins
Juneau offers two ways to compose one resource's operations into another:
📄️ 3.3.11. Self-Registration
A Juneau servlet can declare where it wants to be mounted via the top-level path chain —
📄️ 3.3.12. Programmatic Fluent Builder
As of 10.0, every REST resource class can be configured entirely in code — without placing a @Rest annotation on it
📄️ 3.3.13. Server-Sent Events
Juneau REST Server now includes SSE response helpers for event-at-a-time streaming endpoints.