Skip to content

Commit 8964fde

Browse files
authored
Merge pull request ArjanCodes#3 from cirillojon/original-code
Fixed missing category on post request
2 parents de17847 + 984b861 commit 8964fde

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)