Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 631b4f3

Browse files
committed
Readme updates
1 parent 09cf9b9 commit 631b4f3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To install the sample through Liberty configuration
4646
3. Replace the Liberty configuration file `server.xml` or update elements featureManager, safRegistry and application using [server.xml](etc/config/server.xml) as a basis.
4747
4. Install a JVMSERVER resource in the CICS region.
4848

49-
**Note:** JVMSERVER autoconfigure will configure the JVM server with the necessary elements in server.xml. Ensure autoconfigure is enabled in the JVM profile of the JVMSERVER used to run this sample.
49+
**Note:** JVM server autoconfigure will configure the JVM server with the necessary elements in server.xml. Ensure autoconfigure is enabled in the JVM profile of the JVMSERVER used to run this sample.
5050

5151
If the sample is correctly deployed, you should see the following messages in the Liberty logs:
5252

@@ -56,7 +56,7 @@ A CWWKT0016I: Web application available (default_host): http://mvs.example.ibm.c
5656
A CWWKT0016I: Web application available (default_host): http://mvs.example.ibm.com:9080/stock/
5757
```
5858

59-
If you use CICS bundle deployment, you will also need to define a RACF profile for users to access the stock REST API, where WEBUSER is the authenticated user ID.
59+
If you use CICS bundle deployment, you will also need to define a RACF EJBROLE profile for users to access the stock REST API which is protected by the Administrator role.
6060

6161
```
6262
RDEFINE EJBROLE BBGZDFLT.com.ibm.cicsdev.ejb.Administrator UACC(NONE)
@@ -70,7 +70,7 @@ To create new items in the store send an authenticated HTTP request to the stock
7070

7171
```http
7272
POST /stock/api/items HTTP/1.1
73-
Host: <hostname:port>
73+
Host: <hostname>:<port>
7474
Content-Type: application/json
7575
Authentication: BASIC <base64 encoded username,password>
7676
@@ -91,17 +91,17 @@ You can use this request using the command line tool cURL, replacing <hostname>,
9191
curl <hostname>:<port>/stock/api/items/ -X POST -d '{ "name": "CICS TS for z/OS", "stock": 2 }' -H 'Content-Type: application/json' --user <WEBUSER>
9292
```
9393

94-
**Note:** We use HTTP BASIC authentication in this example but other forms of authentiation could be used.
94+
**Note:** We use HTTP BASIC authentication in this example but other forms of authentiation could be used.
9595

9696

97-
Once one or more items have been created, you can then use a browser to navigate to http://<hostname>:<port>/shop/ and use the shop via the CartBean. There is no role protecting
98-
the CartBean so these HTTP requests do not need to be authenticated.
97+
Once one or more items have been created, you can then use a browser to navigate to http://hostname:port/shop/ and use the shop via the CartBean. There is no role protecting
98+
the CartBean so these requests do not need to be authenticated.
9999

100100
More stock can be added to an item through the following HTTP request (in this case we update item with the ID `1`):
101101

102102
```http
103103
PUT /stock/api/items/1
104-
Host: <hostname:port>
104+
Host: <hostname>:<port>
105105
Content-Type: application/json
106106
Authentication: BASIC <base64 encoded username,password>
107107
@@ -119,7 +119,7 @@ You can view the current state of an item by sending a GET request (in this case
119119

120120
```http
121121
GET /stock/api/items/1
122-
Host: <hostname:port>
122+
Host: <hostname>:<port>
123123
Accept: application/json
124124
Authentication: BASIC <base64 encoded username,password>
125125
```

0 commit comments

Comments
 (0)