Skip to main content

@RestOp-Annotated Method

REST Java methods are identified on REST servlets using the @RestOp annotation.

The annotation allows the framework to identify the available REST methods through reflection.

RestOpallowedParserOptions allowedSerializerOptions asyncCompletionExecutor asyncTimeoutMillis clientVersion consumes converters defaultAccept defaultCharset defaultContentType defaultRequestAttributes defaultRequestFormData defaultRequestHeaders defaultRequestQueryData defaultResponseHeaders description encoders guards matchers maxInput metricName metricTags method noInherit observability parsers path problemDetails produces roleGuard rolesDeclared serializers summary swagger value virtualThreads
Example
@RestOp(method=GET, path="/")
public String sayHello() {
return "Hello world!";
}

The following specialized annotations are also provided for specific HTTP methods:

RestGet RestPut RestPost RestPatch RestDelete RestOptions
Example
@RestGet(path="/")
public String sayHello() {
return "Hello world!";
}

Additional information​

Refer to the following Javadocs for more information:

RestRequestRestResponseRequestContentRequestHeaderListRequestQueryParamListRequestFormParamListRequestPathParamListRequestAttributes

In This Section​