Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: updated link to the new spec for issue 3899 #3909

Merged
merged 2 commits into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/mp/restclient/09_rest-client.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2019, 2021 Oracle and/or its affiliates.
Copyright (c) 2019, 2022 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@ include::{common-deps-page-prefix-inc}[tag=maven-dependency]
MicroProfile Rest Client adds the capability to invoke remote microservices using a JAX-RS like interface to declare the
operations.

== Creating a new client using a builder
== Creating a New Client Using a Builder

MicroProfile Rest Client can be created using a builder obtained from `RestClientBuilder.newBuilder()`.
The builder provides methods to configure details for the client and to define the desired rest client interface.
Expand All @@ -53,7 +53,7 @@ SomeResource someResource = RestClientBuilder.newBuilder()
someResource.someMethod(apiModel);
----

== Creating new client - CDI
== Creating a New Client - CDI
A rest client interface can be annotated with `@RegisterRestClient` to automatically register it with CDI.
The `RegisterRestClient` annotation has a property `baseUri` that can be used to define the base endpoint of this client.
This value can be overridden using configuration.
Expand Down Expand Up @@ -84,17 +84,17 @@ client.sampleMethod();

----

== Rest client configuration
== Rest Client Configuration
Rest client implementation allows you to configure its parameters by builder,
annotations, and configuration.

You can configure new providers, base URI/URL and other options of the client.
See specification for full details:
https://download.eclipse.org/microprofile/microprofile-rest-client-1.2.1/microprofile-rest-client-1.2.1.html
https://download.eclipse.org/microprofile/microprofile-rest-client-2.0/microprofile-rest-client-spec-2.0.html

== Quickstart example
To be able to run and test this example, please head to the Helidon examples/quickstarts
and start the helidon-quickstart-mp. Then create project with
== Quickstart Example
To be able to run and test this example, use the https://helidon.io/docs/v2/#/mp/guides/02_quickstart[Helidon MP examples/quickstarts]
and start the helidon-quickstart-mp. Then create a project with
the dependency on the Helidon rest client implementation and create the following rest client
interface:

Expand Down