From 1f8a1f1776a22961ead850f512eeeae5b317b3ff Mon Sep 17 00:00:00 2001 From: Julien Gantner Date: Tue, 7 Jan 2025 16:35:55 +0100 Subject: [PATCH] Adds content type headers for curl tests in docs --- 4. Projects/2. API-axum/Problem/Stage 1/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/4. Projects/2. API-axum/Problem/Stage 1/README.md b/4. Projects/2. API-axum/Problem/Stage 1/README.md index 88ffdb4..643d190 100644 --- a/4. Projects/2. API-axum/Problem/Stage 1/README.md +++ b/4. Projects/2. API-axum/Problem/Stage 1/README.md @@ -230,6 +230,7 @@ Create question curl --request POST \ --url http://localhost:8000/question \ --header 'Accept: application/json' \ + --header 'Content-Type: application/json' \ --data '{ "title": "Title", "description": "Description" @@ -250,6 +251,7 @@ Delete question curl --request DELETE \ --url http://localhost:8000/question \ --header 'Accept: application/json' \ + --header 'Content-Type: application/json' \ --data '{ "question_uuid": "[UUID of a created question]" }' @@ -261,6 +263,7 @@ Create answer curl --request POST \ --url http://localhost:8000/answer \ --header 'Accept: application/json' \ + --header 'Content-Type: application/json' \ --data '{ "question_uuid": "[UUID of a created question]", "content": "Content" @@ -284,6 +287,7 @@ Delete answer curl --request DELETE \ --url http://localhost:8000/answer \ --header 'Accept: application/json' \ + --header 'Content-Type: application/json' \ --data '{ "answer_uuid": "[UUID of a created answer]" }'