Fix README.md Step 4 orderId 42 is inconsistent with Step 5 orderId 41 (#114)

Signed-off-by: whirlwinder <69021934+my-Sakura@users.noreply.github.com>

Signed-off-by: whirlwinder <69021934+my-Sakura@users.noreply.github.com>
Co-authored-by: whirlwinder <69021934+my-Sakura@users.noreply.github.com>
This commit is contained in:
petrichor 2022-08-12 06:15:47 +08:00 committed by GitHub
parent b4f99cbc38
commit adecca8e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -107,7 +107,7 @@ POST http://localhost:3500/v1.0/invoke/nodeapp/method/neworder
{
"data": {
"orderId": "42"
"orderId": "41"
}
}
```
@ -115,10 +115,10 @@ POST http://localhost:3500/v1.0/invoke/nodeapp/method/neworder
You can also use the Postman GUI.
Open Postman and create a POST request against `http://localhost:3500/v1.0/invoke/nodeapp/method/neworder`
![Postman Screenshot](./img/postman1.jpg)
![Postman Screenshot](./img/postman1.png)
In your terminal window, you should see logs indicating that the message was received and state was updated:
```
== APP == Got a new order! Order ID: 42
== APP == Got a new order! Order ID: 41
== APP == Successfully persisted state.
```

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@ -1,3 +1,3 @@
POST http://localhost:3500/v1.0/invoke/nodeapp/method/neworder
{ "data": {"orderId":"42"} }
{ "data": {"orderId":"41"} }

View File

@ -1 +1,5 @@
{ "data": {"orderId":"42"} }
{
"data": {
"orderId": "41"
}
}