Skip to content

Commit cfc22a9

Browse files
authored
Merge pull request #182 from OpenLiberty/staging
Merge staging to prod - Update the curl instructions (#181)
2 parents bf44336 + 9b1f88f commit cfc22a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ ifdef::cloud-hosted[]
8484
Open another command-line session by selecting **Terminal** > **New Terminal** from the menu of the IDE.
8585
To access the **inventory** service with a localhost hostname, run the following curl command:
8686
```
87-
curl http://localhost:9080/inventory/systems/localhost
87+
curl -s http://localhost:9080/inventory/systems/localhost | jq
8888
```
8989
{: codeblock}
9090

@@ -139,7 +139,7 @@ ifdef::cloud-hosted[]
139139
You do not need to restart the server.
140140
Next, run the following curl command:
141141
```
142-
curl http://localhost:9080/inventory/systems/localhost
142+
curl -s http://localhost:9080/inventory/systems/localhost | jq
143143
```
144144
{: codeblock}
145145

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

242242
SystemResource.java
243-
[source, java, linenums, role='code_column hide_tags=copyright tags=503_response']
243+
[source, java, linenums, role='code_column tags=503_response hide_tags=copyright']
244244
----
245245
include::finish/src/main/java/io/openliberty/guides/system/SystemResource.java[]
246246
----
@@ -252,7 +252,7 @@ include::finish/resources/CustomConfigSource.json[]
252252
----
253253

254254
SystemClient.java
255-
[source, java, linenums, role='code_column hide_tags=copyright tags=client']
255+
[source, java, linenums, role='code_column tags=client hide_tags=copyright']
256256
----
257257
include::finish/src/main/java/io/openliberty/guides/inventory/client/SystemClient.java[]
258258
----
@@ -356,15 +356,15 @@ endif::[]
356356
ifdef::cloud-hosted[]
357357
When the server is running, run the following curl command:
358358
```
359-
curl http://localhost:9080/inventory/systems/localhost
359+
curl -s http://localhost:9080/inventory/systems/localhost | jq
360360
```
361361
{: codeblock}
362362

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

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

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

0 commit comments

Comments
 (0)