Package io.quarkiverse.mcp.server
Annotation Interface CompleteResourceTemplate
Annotates a business method of a CDI bean used to complete an expression of a URI template of a resource template.
The result of a "complete" operation is always represented as a CompletionResponse
. However, the annotated method can
also return other types that are converted according to the following rules.
- If the method returns
String
then the response contains the single value. - If the method returns a
List
ofString
s then the response contains the list of values. - The method may return a
Uni
that wraps any of the type mentioned above.
CompletionResponse
String
List<String>
Uni<CompletionResponse>
Uni<String>
Uni<List<String>>
String
argument.- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueThe name reference to a resource template. If not suchResourceTemplate
exists then the build fails.
-