Skip to content

Commit

Permalink
Merge pull request #20406 from quarkusio/michalszynkiewicz-rest-clien…
Browse files Browse the repository at this point in the history
…t-reactive-guide-fix

Fix RestClientBuilder usage example in the guide
  • Loading branch information
geoand authored Sep 27, 2021
2 parents 9eaa433 + 89f62a7 commit f3eceea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/main/asciidoc/rest-client-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ import org.jboss.resteasy.reactive.RestPath;
import javax.annotation.PostConstruct;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.net.URI;
import java.util.Set;
import org.eclipse.microprofile.rest.client.RestClientBuilder;
Expand All @@ -305,7 +306,7 @@ public class CountriesResource {
@PostConstruct
public void setUp(){
countriesService = RestClientBuilder.newBuilder()
.baseUrl("https://restcountries.eu/rest")
.baseUri(URI.create("https://restcountries.eu/rest"))
.build(CountriesService.class);
}
Expand Down

0 comments on commit f3eceea

Please sign in to comment.