You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instructions/cloud-hosted-guide-microprofile-rest-client/instructions.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The application that you will be working with is an **inventory** service, which
22
22
Whenever a request is made to retrieve the system properties of a particular host, the **inventory** service will create a client to invoke the **system**
23
23
service on that host. The **system** service simulates a remote service in the application.
24
24
25
-
You will instantiate the client and use it in the **inventory** service. You can choose from two different approaches, [Context and Dependency Injection (CDI)](https://openliberty.io/docs/ref/general/#contexts_dependency_injection.html) with the help of MicroProfile Config or the [RestClientBuilder](https://openliberty.io/blog/2018/01/31/mpRestClient.html) method.
25
+
You will instantiate the client and use it in the **inventory** service. You can choose from two different approaches, [Context and Dependency Injection (CDI)](https://openliberty.io/docs/latest/cdi-beans.html) with the help of MicroProfile Config or the [RestClientBuilder](https://openliberty.io/blog/2018/01/31/mpRestClient.html) method.
26
26
In this guide, you will explore both methods to handle scenarios for providing a valid base URL.
27
27
28
28
* When the base URL of the remote service is static and known, define the default base URL in the configuration file. Inject the client with a CDI method.
Or, get your FQDN first. Then, visit the **http://localhost:9080/inventory/systems/{your_hostname}** URL by replacing **{your_hostname}** with your FQDN, which retrieves your system properties by making a request to the **system** service at **http://{your_hostname}:9080/system/properties**.
520
+
Or, get your FQDN first. Then, visit the **http://localhost:9080/inventory/systems/{your-hostname}** URL
521
+
by replacing **{your-hostname}** with your FQDN, which retrieves your system properties
522
+
by making a request to the **system** service at **http://{your-hostname}:9080/system/properties**.
0 commit comments