Open Emily-Jiang opened 2 weeks ago
When the MicroProfile API document is updated with a "Differences between MicroProfile 7.0 and 6.1" section, please add a "Differences between MicroProfile REST Client 4.0 and 3.0" section with the following information:
With the release of the MicroProfile REST Client 4.0 feature (mpRestClient-4.0),
the underlying MicroProfile REST Client implementation for Open Liberty is now
compatible with Jakartaee 10 and tolerates Jakartaee 11.
If you update your server from a version of the
[MicroProfile REST Client](https://openliberty.io/docs/latest/reference/feature/mpRestClient.html)
feature prior to version 3.0, changes in API behavior might require you to update
your application code. See
[Differences between MicroProfile REST Client 3.0 and 2.0](https://openliberty.io/docs/latest/reference/diff/mp-41-50-diff.html#rc)
for details.
The following sections detail changes in behavior between the mpRestClient-3.0 and
mpRestClient-4.0 features.
Users no longer need to crate a URI themselves to create a Client instance, instead they can pass a String.
RestClientBuilder.newBuilder()
.baseUri("http://example.com")
.build(SomeClient.class)
Users are now able set HTTP Headers on a per Client instance via the new RestClientBuilder.header(String,Object)
method.
RestClientBuilder.newBuilder()
.baseUri(someURI or String)
.header("Some-Header", headerValueObj)
.build(SomeClient.class)
MicroProfile 7.0 is a major release with the current updated MicroProfile specifications:
This release has the following significant changes: