Interface RestEndpoint
- All Superinterfaces:
HttpAnnotated
,ModelElement
,Prototype.Api
- All Known Subinterfaces:
ClientEndpoint
,ServerEndpoint
- All Known Implementing Classes:
ClientEndpoint.BuilderBase.ClientEndpointImpl
,RestEndpoint.BuilderBase.RestEndpointImpl
,ServerEndpoint.BuilderBase.ServerEndpointImpl
A REST endpoint may be a client endpoint or a server endpoint.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forRestEndpoint
.static class
RestEndpoint.BuilderBase<BUILDER extends RestEndpoint.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends RestEndpoint> Fluent API builder base forRestEndpoint
. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestEndpoint.Builder
builder()
Create a new fluent API builder to customize configuration.static RestEndpoint.Builder
builder
(RestEndpoint instance) Create a new fluent API builder from an existing instance.methods()
Methods that have a rest annotation (HTTP method).Methods inherited from interface io.helidon.declarative.codegen.model.http.HttpAnnotated
computedHeaders, consumes, headers, path, produces
Methods inherited from interface io.helidon.declarative.codegen.model.http.ModelElement
annotations, type
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
methods
List<RestMethod> methods()Methods that have a rest annotation (HTTP method).- Returns:
- all rest methods defined
-