Skip to content

Commit 984b861

Browse files
committed
fixed missing category on post request
1 parent de17847 commit 984b861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
print(
55
requests.post(
66
"http://127.0.0.1:8000/",
7-
json={"name": "Screwdriver", "price": 3.99, "count": 10, "id": 4},
7+
json={"name": "Screwdriver", "price": 3.99, "count": 10, "id": 4, "category": "tools"},
88
).json()
99
)
1010
print(requests.get("http://127.0.0.1:8000/").json())

0 commit comments

Comments
 (0)