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

fix: make the scripts easier to be copied #27

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading