Skip to content

Commit 3a13b0e

Browse files
authored
Update README.md
1 parent 4642540 commit 3a13b0e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

backend/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ categories: A dictionary containing Category ID and Category Type as a key value
9292
}
9393

9494
****
95-
GET "\questions?page=<page_number>"
96-
curl -X GET 'http://127.0.0.1:5000/questions'
95+
GET "\questions?page=<page_number>"
96+
curl -X GET 'http://127.0.0.1:5000/questions'
9797
curl -X GET 'http://127.0.0.1:5000/questions?page=2'
9898

9999
- Fetches a paginated dictionary of questions of all available categories. A page contains 10 questions.
@@ -192,7 +192,7 @@ total_questions: Total Number of questions
192192
}
193193

194194
****
195-
DELETE "/questions/<question_id>"
195+
DELETE "/questions/<question_id>"
196196
curl -X DELETE 'http://127.0.0.1:5000/questions/2'
197197

198198
- Delete an existing questions from the available questions based on the question ID
@@ -206,7 +206,7 @@ deleted: Question ID that is deleted
206206
}
207207

208208
****
209-
POST /questions
209+
POST /questions
210210
curl -X POST -H "Content-Type: application/json" -d '{"question":"What is the capital city of India?", "answer":"New Delhi", "difficulty":2, "category":3}' 'http://127.0.0.1:5000/questions'
211211

212212

@@ -222,7 +222,7 @@ created: Question ID that is created
222222
}
223223

224224
****
225-
POST "/questions/search"
225+
POST "/questions/search"
226226
curl -X POST -H "Content-Type: application/json" -d '{"searchTerm":"Taj"}' 'http://127.0.0.1:5000/questions/search'
227227

228228
- Fetches all questions based on the search string provided (not case-sensitive)
@@ -249,7 +249,7 @@ total_questions: Total Number of questions having the search string
249249
}
250250

251251
****
252-
GET "/categories/<int:category_id>/questions"
252+
GET "/categories/<int:category_id>/questions"
253253
curl -X GET 'http://127.0.0.1:5000/categories/2/questions'
254254

255255
- Fetches a dictionary of questions for the given category ID
@@ -282,9 +282,9 @@ total_questions: Total Number of questions under the given category
282282
}
283283

284284
****
285-
POST "/quizzes"
285+
POST "/quizzes"
286286
For a particular category :
287-
curl -X POST -H "Content-Type: application/json" -d '{"previous_questions": [], "quiz_category": {"type": "Sports", "id": "6"}}' 'http://127.0.0.1:5000/quizzes'
287+
curl -X POST -H "Content-Type: application/json" -d '{"previous_questions": [], "quiz_category": {"type": "Sports", "id": "6"}}' 'http://127.0.0.1:5000/quizzes'
288288
For All categories:
289289
curl -X POST -H "Content-Type: application/json" -d '{"previous_questions": [], "quiz_category": {"type": "click", "id": 0}}' 'http://127.0.0.1:5000/quizzes'
290290

0 commit comments

Comments
 (0)