@@ -48,9 +48,9 @@ To install the sample through Liberty configuration
48
48
If the sample is correctly deployed, you should see the following messages in the Liberty logs:
49
49
50
50
```
51
- A CWWKT0016I: Web application available (default_host): http://mvs.hursley .ibm.com/shop/
51
+ A CWWKT0016I: Web application available (default_host): http://mvs.example .ibm.com/shop/
52
52
...
53
- A CWWKT0016I: Web application available (default_host): http://mvs.hursley .ibm.com/stock/
53
+ A CWWKT0016I: Web application available (default_host): http://mvs.example .ibm.com/stock/
54
54
```
55
55
56
56
If you use CICS bundle deployment, you will also need to define a RACF profile for users to access the stock REST API.
@@ -65,7 +65,7 @@ To create new items in the store send a HTTP request to the stock API:
65
65
66
66
``` http
67
67
POST /stock/api/items HTTP/1.1
68
- Host: mvs.hursley .ibm.com
68
+ Host: mvs.example .ibm.com
69
69
Content-Type: application/json
70
70
Authentication: BASIC <base64 encoded username,password>
71
71
@@ -85,16 +85,16 @@ Content-Type: application/json
85
85
You can use this request using the command line tool cURL:
86
86
87
87
``` shell
88
- curl mvs.hursley .ibm.com/stock/api/items/ -X POST -d ' { "name": "CICS TS for z/OS", "stock": 2 }' -H ' Content-Type: application/json' --user MVSUSER1
88
+ curl mvs.example .ibm.com/stock/api/items/ -X POST -d ' { "name": "CICS TS for z/OS", "stock": 2 }' -H ' Content-Type: application/json' --user MVSUSER1
89
89
```
90
90
91
- Once one or more items have been created, you can then use a browser to navigate to http://mvs.hursley .ibm.com/shop/ and use the shop.
91
+ Once one or more items have been created, you can then use a browser to navigate to http://mvs.example .ibm.com/shop/ and use the shop.
92
92
93
93
More stock can be added to an item through the following request (in this case we update item with the ID ` 1 ` ):
94
94
95
95
``` http
96
96
PUT /stock/api/items/1
97
- Host: mvs.hurlsey .ibm.com
97
+ Host: mvs.example .ibm.com
98
98
Content-Type: application/json
99
99
Authentication: BASIC <base64 encoded username,password>
100
100
@@ -112,7 +112,7 @@ You can view the current state of an item by sending a GET request (in this case
112
112
113
113
``` http
114
114
GET /stock/api/items/1
115
- Host: mvs.hurlsey .ibm.com
115
+ Host: mvs.example .ibm.com
116
116
Accept: application/json
117
117
Authentication: BASIC <base64 encoded username,password>
118
118
```
0 commit comments