Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: make the scripts easier to be copied (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeizhou-ap authored Mar 15, 2024
1 parent 087db4d commit 12ce458
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Add a new item to your cart using the command-line:

```bash
curl -i --json '{"userId": "Larry", "item": {"productId": "OLJCESPC7Z", "quantity": 1}}' localhost:8892/ingress/cart/add
```
Response
```
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Vary: Origin
Expand Down Expand Up @@ -89,6 +92,25 @@ curl --json '{
}
' localhost:8892/ingress/checkout/Larry | jq .
```
Response
```
{
"id": "19031e2c-a4b3-49fe-bbb8-464bc8707559",
"shippingAddress": {
"city": "Mountain View",
"country": "USA",
"state": "CA",
"streetAddress": "1600 Amphitheatre Parkway",
"zipCode": 94043
},
"shippingCost": {
"currencyCode": "AUD",
"nanos": 387449163,
"units": 11
},
"shippingTrackingId": "LS-44971-224078566"
}
```

Open up the [FTL console](http://localhost:8892). This will let you navigate the
logs, traces and structure of the FTL modules running locally. In the timeline,
Expand Down

0 comments on commit 12ce458

Please sign in to comment.