You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Delete an existing questions from the available questions based on the question ID
@@ -206,7 +206,7 @@ deleted: Question ID that is deleted
206
206
}
207
207
208
208
****
209
-
POST /questions
209
+
POST /questions
210
210
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'
211
211
212
212
@@ -222,7 +222,7 @@ created: Question ID that is created
222
222
}
223
223
224
224
****
225
-
POST "/questions/search"
225
+
POST "/questions/search"
226
226
curl -X POST -H "Content-Type: application/json" -d '{"searchTerm":"Taj"}' 'http://127.0.0.1:5000/questions/search'
227
227
228
228
- 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
249
249
}
250
250
251
251
****
252
-
GET "/categories/<int:category_id>/questions"
252
+
GET "/categories/<int:category_id>/questions"
253
253
curl -X GET 'http://127.0.0.1:5000/categories/2/questions'
254
254
255
255
- Fetches a dictionary of questions for the given category ID
@@ -282,9 +282,9 @@ total_questions: Total Number of questions under the given category
0 commit comments