From 65a4ca61f8a8915f46c964d648f4e589e80b2b38 Mon Sep 17 00:00:00 2001 From: Amit Arie Date: Wed, 23 Feb 2022 07:55:52 +0200 Subject: [PATCH] Update Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 85b5f28..5328a01 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,9 @@ test: poetry run pytest create-items: - curl -X POST localhost:8000/foo/item/ --data '{"description":"some item description", "public":false}' && echo - curl -X POST localhost:8000/foo/item/ --data '{"description":"some item description", "public":true}' + curl -X POST localhost:8000/foo/item/ -H 'Content-Type: application/json' --data '{"description":"some item description", "public":false}' && echo + curl -X POST localhost:8000/foo/item/ -H 'Content-Type: application/json' --data '{"description":"some item description", "public":true}' get-items: curl -X GET localhost:8000/foo/item/1 && echo - curl -X GET localhost:8000/foo/item/2 \ No newline at end of file + curl -X GET localhost:8000/foo/item/2