Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipPyrek authored Nov 10, 2021
1 parent ba7fba3 commit 6077ca5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 5-step-functions-async-actions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Run `npm run remove`

#### Make an order
Call `POST /order` with payload:
```
```json
{
"items": ["really nice t-shirt", "pants"]
}
```
The response should look like:
```
```json
{
"executionArn": "arn:aws:states:eu-central-1:...",
"startDate": ...
Expand All @@ -29,7 +29,7 @@ Save the executionArn somewhere, it is used as a order ID in the state machine.

#### Get the order status
After the order is created, use the orderId from the previous operation to call `GET /order/arn:aws:states:eu-central-1:...` to get the order status. The respose should be:
```
```json
{
"items": [
"pants",
Expand All @@ -42,7 +42,7 @@ After the order is created, use the orderId from the previous operation to call

#### Update the order status
Call `POST /order/update` with payload:
```
```json
{
"executionId": "arn:aws:states:eu-central-1:...",
"success": true
Expand Down

0 comments on commit 6077ca5

Please sign in to comment.