Closed googleknight closed 1 month ago
Check http://localhost:8000/docs for api docs. Content or file, either one of them should be available. While at least one type of question should be there. Request:
--form 'subject="Digestive system of human"' \ --form 'content="Human digestive system"' \ --form 'q_type_mcq_single="1"' \ --form 'q_type_mcq_multiple="2"' \ --form 'q_type_descriptive="1"' \ --form 'q_type_fill_in_the_blanks="2"' \ --form 'file=@"/Human Digestive System.pdf"' \ --form 'difficulty="hard"'
Response:
"status": "success", "questions": [ { "question_text": "Which of the following is NOT a layer of the gastrointestinal tract?", "question_type": "single_answer_mcq", "choices": [ { "text": "Mucosa", "is_correct": false }, { "text": "Submucosa", "is_correct": false }, { "text": "Muscularis", "is_correct": false }, { "text": "Serosa", "is_correct": false }, { "text": "Epithelium", "is_correct": true } ], "correct_answer": null }, { "question_text": "Which of the following are functions of the digestive system?", "question_type": "multiple_answer_mcq", "choices": [ { "text": "Ingestion", "is_correct": true }, { "text": "Secretion", "is_correct": true }, { "text": "Absorption", "is_correct": true }, { "text": "Excretion", "is_correct": true }, { "text": "Respiration", "is_correct": false } ], "correct_answer": null }, { "question_text": "What are the two main types of digestion?", "question_type": "multiple_answer_mcq", "choices": [ { "text": "Mechanical", "is_correct": true }, { "text": "Chemical", "is_correct": true }, { "text": "Cellular", "is_correct": false }, { "text": "Physical", "is_correct": false } ], "correct_answer": null }, { "question_text": "Describe the process of digestion, starting from the mouth and ending with the elimination of waste.", "question_type": "descriptive", "choices": null, "correct_answer": null }, { "question_text": "The _______ is the outer layer of the GI tract, providing protection and connective tissue.", "question_type": "fill_in_the_blanks", "choices": null, "correct_answer": "serosa" }, { "question_text": "The _______ glands are located near the ears and secrete saliva via the parotid duct.", "question_type": "fill_in_the_blanks", "choices": null, "correct_answer": "parotid" } ] }
Check http://localhost:8000/docs for api docs. Content or file, either one of them should be available. While at least one type of question should be there. Request:
Response: