Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds content type headers for curl tests in docs #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4. Projects/2. API-axum/Problem/Stage 1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]"
}'
Expand All @@ -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"
Expand All @@ -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]"
}'
Expand Down