jaxrs3/README.md
This module overrides annotation processing to instead use standard ones supplied by the Jakarta specification. This is currently targeted at the 3.1 spec.
While it may appear possible to reuse the same interface across client and server, bear in mind that Jakarta resource annotations were not designed to be processed by clients. Finally, Jakarta is a large spec and attempts to implement it completely would be a project larger than feign itself. In other words, this implementation is best efforts and concedes far from 100% compatibility with server interface behavior.
Feign only supports processing java interfaces (not abstract or concrete classes).
Here are a list of behaviors currently supported.
@PathAppends the value to Target.url(). Can have tokens corresponding to @PathParam annotations.
@HttpMethod meta-annotation (present on @GET, @POST, etc.)Sets the request method.
@PathAppends the value to Target.url(). Can have tokens corresponding to @PathParam annotations.
@ProducesAdds all values into the Accept header.
@ConsumesAdds the first value as the Content-Type header.
@PathParamLinks the value of the corresponding parameter to a template variable declared in the path.
@QueryParamLinks the value of the corresponding parameter to a query parameter. When invoked, null will skip the query param.
@HeaderParamLinks the value of the corresponding parameter to a header.
@FormParamLinks the value of the corresponding parameter to a key passed to Encoder.Text<Map<String, Object>>.encode().
@BeanParmAggregates the above supported parameter annotations under a single value object.