Skip to content

Commit

Permalink
Merge pull request #176 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Merge staging to prod - Update README.adoc (#175)
  • Loading branch information
gkwan-ibm authored Jul 21, 2021
2 parents b10c754 + 8723b59 commit 97f27b3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The application that you will be working with is an `inventory` service, which f
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`
service on that host. The `system` service simulates a remote service in the application.

You will instantiate the client and use it in the `inventory` service. You can choose from two different approaches, https://openliberty.io/docs/ref/general/#contexts_dependency_injection.html[Context and Dependency Injection (CDI)^] with the help of MicroProfile Config or the https://openliberty.io/blog/2018/01/31/mpRestClient.html[RestClientBuilder^] method.
You will instantiate the client and use it in the `inventory` service. You can choose from two different approaches, https://openliberty.io/docs/latest/cdi-beans.html[Context and Dependency Injection (CDI)^] with the help of MicroProfile Config or the https://openliberty.io/blog/2018/01/31/mpRestClient.html[RestClientBuilder^] method.
In this guide, you will explore both methods to handle scenarios for providing a valid base URL.

* 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.
Expand All @@ -68,17 +68,17 @@ To fetch and store your system information, visit the http://localhost:9080/inve

// static guide instructions:
ifndef::cloud-hosted[]
You can also use the `\http://localhost:9080/inventory/systems/{your_hostname}` URL. In Windows,
You can also use the `\http://localhost:9080/inventory/systems/{your-hostname}` URL. In Windows,
MacOS, and Linux, get your fully qualified domain name (FQDN) by entering
`hostname` into your command-line. Visit the URL by replacing `{your_hostname}`
`hostname` into your command-line. Visit the URL by replacing `{your-hostname}`
with your FQDN.
endif::[]

// cloud-hosted guide instructions:
ifdef::cloud-hosted[]
You can also use the **http://localhost:9080/inventory/systems/{your_hostname}** URL. In Windows,
You can also use the **http://localhost:9080/inventory/systems/{your-hostname}** URL. In Windows,
MacOS, and Linux, get your fully qualified domain name (FQDN) by entering
**hostname** into your command-line. Visit the URL by replacing **{your_hostname}**
**hostname** into your command-line. Visit the URL by replacing **{your-hostname}**
with your FQDN.
endif::[]

Expand Down Expand Up @@ -289,12 +289,14 @@ When the server is running, select either approach to fetch your system properti

// static guide instructions:
ifndef::cloud-hosted[]
* 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`.
* 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`.
endif::[]

// cloud-hosted guide instructions:
ifdef::cloud-hosted[]
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**.
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**.
endif::[]

// =================================================================================================
Expand Down

0 comments on commit 97f27b3

Please sign in to comment.