Skip to content

Commit

Permalink
Merge pull request #182 from OpenLiberty/staging
Browse files Browse the repository at this point in the history
Merge staging to prod - Update the curl instructions (#181)
  • Loading branch information
gkwan-ibm authored Jul 15, 2021
2 parents bf44336 + 9b1f88f commit cfc22a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ifdef::cloud-hosted[]
Open another command-line session by selecting **Terminal** > **New Terminal** from the menu of the IDE.
To access the **inventory** service with a localhost hostname, run the following curl command:
```
curl http://localhost:9080/inventory/systems/localhost
curl -s http://localhost:9080/inventory/systems/localhost | jq
```
{: codeblock}

Expand Down Expand Up @@ -139,7 +139,7 @@ ifdef::cloud-hosted[]
You do not need to restart the server.
Next, run the following curl command:
```
curl http://localhost:9080/inventory/systems/localhost
curl -s http://localhost:9080/inventory/systems/localhost | jq
```
{: codeblock}

Expand Down Expand Up @@ -240,7 +240,7 @@ in the [hotspot file=2]`SystemClient.java` class.
You will look into the `InventoryManager` class in more detail in the next section.

SystemResource.java
[source, java, linenums, role='code_column hide_tags=copyright tags=503_response']
[source, java, linenums, role='code_column tags=503_response hide_tags=copyright']
----
include::finish/src/main/java/io/openliberty/guides/system/SystemResource.java[]
----
Expand All @@ -252,7 +252,7 @@ include::finish/resources/CustomConfigSource.json[]
----

SystemClient.java
[source, java, linenums, role='code_column hide_tags=copyright tags=client']
[source, java, linenums, role='code_column tags=client hide_tags=copyright']
----
include::finish/src/main/java/io/openliberty/guides/inventory/client/SystemClient.java[]
----
Expand Down Expand Up @@ -356,15 +356,15 @@ endif::[]
ifdef::cloud-hosted[]
When the server is running, run the following curl command:
```
curl http://localhost:9080/inventory/systems/localhost
curl -s http://localhost:9080/inventory/systems/localhost | jq
```
{: codeblock}

You receive the system properties of your local JVM from the **inventory** service.

Next, run the following curl command which accesses the **system** service, to retrieve the system properties for the specific localhost:
```
curl http://localhost:9080/system/properties
curl -s http://localhost:9080/system/properties | jq
```
{: codeblock}

Expand Down Expand Up @@ -445,7 +445,7 @@ endif::[]
ifdef::cloud-hosted[]
After saving the file, run the following curl command to view the cached version of the properties:
```
curl http://localhost:9080/inventory/systems/localhost
curl -s http://localhost:9080/inventory/systems/localhost | jq
```
{: codeblock}

Expand Down

0 comments on commit cfc22a9

Please sign in to comment.