Skip to content

Commit 842f340

Browse files
GuidesBotGuidesBot
and
GuidesBot
authored
Updated by github actions from guide-microprofile-rest-client (#1157)
Co-authored-by: GuidesBot <[email protected]>
1 parent 7a88751 commit 842f340

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

instructions/cloud-hosted-guide-microprofile-rest-client/instructions.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The application that you will be working with is an **inventory** service, which
2222
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**
2323
service on that host. The **system** service simulates a remote service in the application.
2424

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.
2626
In this guide, you will explore both methods to handle scenarios for providing a valid base URL.
2727

2828
* 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.
@@ -111,9 +111,9 @@ curl -s http://localhost:9080/inventory/systems/localhost | jq
111111

112112

113113

114-
You can also use the **http://localhost:9080/inventory/systems/{your_hostname}** URL. In Windows,
114+
You can also use the **http://localhost:9080/inventory/systems/{your-hostname}** URL. In Windows,
115115
MacOS, and Linux, get your fully qualified domain name (FQDN) by entering
116-
**hostname** into your command-line. Visit the URL by replacing **{your_hostname}**
116+
**hostname** into your command-line. Visit the URL by replacing **{your-hostname}**
117117
with your FQDN.
118118

119119

@@ -517,7 +517,9 @@ curl -s http://localhost:9080/inventory/systems/localhost | jq
517517

518518

519519

520-
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**.
521523

522524

523525
# **Testing the application**

0 commit comments

Comments
 (0)