Skip to content

Commit e308a59

Browse files
committed
docs: put curl commands on single lines
1 parent 5811f34 commit e308a59

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cli/demo/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ The API's `/items` endpoint doesn't validate the `price` field. When you POST an
5858

5959
```bash
6060
# This works correctly
61-
curl -X POST http://localhost:3000/items \
62-
-H "Content-Type: application/json" \
63-
-d '{"name": "Widget", "price": 10}'
61+
curl -X POST http://localhost:3000/items -H "Content-Type: application/json" -d '{"name": "Widget", "price": 10}'
6462

6563
# This triggers the bug (missing price)
66-
curl -X POST http://localhost:3000/items \
67-
-H "Content-Type: application/json" \
68-
-d '{"name": "Broken Widget"}'
64+
curl -X POST http://localhost:3000/items -H "Content-Type: application/json" -d '{"name": "Broken Widget"}'
6965
```
7066

7167
### Using Copilot to Debug

0 commit comments

Comments
 (0)