Coverage for server / utilities / sample_payloads.py: 100%

15 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-10-04 09:33 +0000

1teacher_questionbank_payload = { 

2 "Multiple-choice": { 

3 "summary": "Multiple-choice", 

4 "description": "Create a multiple-choice question with single or multiple correct answers, including question text, answer choices, and detailed solution", 

5 "value": { 

6 "question": "<p>Which of the following are solutions to the quadratic equation x² + 5x + 6 = 0?</p>", 

7 "choices": [ 

8 { 

9 "id": 0, 

10 "text": "<p>x = -2</p>", 

11 }, 

12 {"id": 1, "text": "x = -3"}, 

13 {"id": 2, "text": "x = 2"}, 

14 {"id": 3, "text": "x = -1"}, 

15 ], 

16 "correctAnswer": { 

17 "answers": ["<p>x = -2</p>", "x = -3"], 

18 "answerDetails": "The solutions can be found by factoring: x² + 5x + 6 = (x + 2)(x + 3) = 0, therefore x = -2 or x = -3", 

19 }, 

20 "questionDetails": "This question tests understanding of quadratic equations and their solutions", 

21 "assignmentType": "STAAR", 

22 "questionType": "Multiple-choice", 

23 "difficulty": "Average", 

24 "teksCode": "A.4A", 

25 "points": 2, 

26 "category": "Algebra", 

27 "questionTopic": "Quadratic Equations" 

28 }, 

29 }, 

30 "Multiple-choice-Math-Editor": { 

31 "summary": "Multiple-choice (Erudition Math Editor)", 

32 "description": "Create a multiple-choice question with rich mathematical formatting using erudition-math editor document format for choices and answer details (supports LaTeX formulas)", 

33 "value": { 

34 "question": "<p>Which of the following are solutions to the quadratic equation x² + 5x + 6 = 0?</p>", 

35 "choices": [ 

36 { 

37 "id": 0, 

38 "text": { 

39 "id": "doc_choice_0", 

40 "type": "document", 

41 "blocks": [ 

42 { 

43 "id": "text_c0", 

44 "type": "paragraph", 

45 "data": {"text": "\\(x = -2\\)"} 

46 } 

47 ] 

48 } 

49 }, 

50 { 

51 "id": 1, 

52 "text": { 

53 "id": "doc_choice_1", 

54 "type": "document", 

55 "blocks": [ 

56 { 

57 "id": "text_c1", 

58 "type": "paragraph", 

59 "data": {"text": "\\(x = -3\\)"} 

60 } 

61 ] 

62 } 

63 }, 

64 { 

65 "id": 2, 

66 "text": { 

67 "id": "doc_choice_2", 

68 "type": "document", 

69 "blocks": [ 

70 { 

71 "id": "text_c2", 

72 "type": "paragraph", 

73 "data": {"text": "\\(x = 2\\)"} 

74 } 

75 ] 

76 } 

77 }, 

78 { 

79 "id": 3, 

80 "text": { 

81 "id": "doc_choice_3", 

82 "type": "document", 

83 "blocks": [ 

84 { 

85 "id": "text_c3", 

86 "type": "paragraph", 

87 "data": {"text": "\\(x = -1\\)"} 

88 } 

89 ] 

90 } 

91 } 

92 ], 

93 "correctAnswer": { 

94 "answers": ["-2", "-3"], 

95 "answerDetails": { 

96 "id": "doc_answer_details", 

97 "type": "document", 

98 "blocks": [ 

99 { 

100 "id": "text_ad1", 

101 "type": "paragraph", 

102 "data": {"text": "The solutions can be found by factoring:"} 

103 }, 

104 { 

105 "id": "text_ad2", 

106 "type": "paragraph", 

107 "data": {"text": "\\(x² + 5x + 6 = (x + 2)(x + 3) = 0\\)"} 

108 }, 

109 { 

110 "id": "text_ad3", 

111 "type": "paragraph", 

112 "data": {"text": "Therefore \\(x = -2\\) or \\(x = -3\\)"} 

113 } 

114 ] 

115 } 

116 }, 

117 "questionDetails": "This question tests understanding of quadratic equations and their solutions with mathematical notation", 

118 "assignmentType": "STAAR", 

119 "questionType": "Multiple-choice", 

120 "difficulty": "Average", 

121 "teksCode": "A.4A", 

122 "points": 2, 

123 "category": "Algebra", 

124 "questionTopic": "Quadratic Equations" 

125 }, 

126 }, 

127 "Multiple-choice-Mixed-Format": { 

128 "summary": "Multiple-choice (Mixed Plain Text and Math Editor)", 

129 "description": "Create a multiple-choice question with both plain text and erudition-math document format for choices (demonstrates dual format flexibility)", 

130 "value": { 

131 "question": "<p>Which of the following expressions are equivalent to (x + 2)²?</p>", 

132 "choices": [ 

133 { 

134 "id": 0, 

135 "text": { 

136 "id": "doc_choice_0", 

137 "type": "document", 

138 "blocks": [ 

139 { 

140 "id": "text_c0", 

141 "type": "paragraph", 

142 "data": {"text": "\\(x² + 4x + 4\\)"} 

143 } 

144 ] 

145 } 

146 }, 

147 { 

148 "id": 1, 

149 "text": "x² + 2x + 2" 

150 }, 

151 { 

152 "id": 2, 

153 "text": { 

154 "id": "doc_choice_2", 

155 "type": "document", 

156 "blocks": [ 

157 { 

158 "id": "text_c2", 

159 "type": "paragraph", 

160 "data": {"text": "\\((x + 2)(x + 2)\\)"} 

161 } 

162 ] 

163 } 

164 }, 

165 { 

166 "id": 3, 

167 "text": "x² + 2x + 4" 

168 } 

169 ], 

170 "correctAnswer": { 

171 "answers": ["x² + 4x + 4", "(x + 2)(x + 2)"], 

172 "answerDetails": "Using the square of binomial formula (a + b)² = a² + 2ab + b², or by multiplying (x + 2)(x + 2)" 

173 }, 

174 "questionDetails": "This question demonstrates flexibility in using both plain text and rich math formatting", 

175 "assignmentType": "STAAR", 

176 "questionType": "Multiple-choice", 

177 "difficulty": "Advance", 

178 "teksCode": "A.10C", 

179 "points": 3, 

180 "category": "Algebra", 

181 "questionTopic": "Binomial Expansion" 

182 }, 

183 }, 

184 "Checkbox": { 

185 "summary": "Checkbox", 

186 "description": "Create a checkbox question where students can select multiple correct answers from given options", 

187 "value": { 

188 "question": "<p>Which of the following expressions are equivalent to (x + 2)²?</p>", 

189 "choices": [ 

190 { 

191 "id": 0, 

192 "text": "<p>x² + 4x + 4</p>", 

193 }, 

194 {"id": 1, "text": "x² + 2x + 2"}, 

195 {"id": 2, "text": "(x + 2)(x + 2)"}, 

196 {"id": 3, "text": "x² + 2x + 4"}, 

197 ], 

198 "correctAnswer": { 

199 "answers": ["x² + 4x + 4", "(x + 2)(x + 2)"], 

200 "answerDetails": "Using the square of binomial formula (a + b)² = a² + 2ab + b², or by multiplying (x + 2)(x + 2)", 

201 }, 

202 "questionDetails": "This question assesses understanding of polynomial expressions and binomial expansion", 

203 "assignmentType": "STAAR", 

204 "questionType": "Checkbox", 

205 "difficulty": "Advance", 

206 "teksCode": "A.10C", 

207 "points": 3, 

208 "category": "Algebra", 

209 "questionTopic": "Binomial Expansion" 

210 }, 

211 }, 

212 "Free-response": { 

213 "summary": "Free-response (Plain Text)", 

214 "description": "Create an open-ended question with plain text format (simple, no rich formatting)", 

215 "value": { 

216 "question": "Solve the system of equations:\n3x + 2y = 12\nx - y = 3", 

217 "correctAnswer": { 

218 "answers": "x = 4, y = 1", 

219 "answerDetails": "Solution can be found using substitution or elimination method. Show all work for full credit.", 

220 }, 

221 "questionDetails": "This question tests understanding of solving systems of linear equations", 

222 "assignmentType": "STAAR", 

223 "questionType": "Free-response", 

224 "difficulty": "Average", 

225 "teksCode": "A.5C", 

226 "points": 3, 

227 "category": "Algebra", 

228 "questionTopic": "Systems of Linear Equations" 

229 }, 

230 }, 

231 "Free-response-Math-Editor": { 

232 "summary": "Free-response (Erudition Math Editor)", 

233 "description": "Create an open-ended question with rich mathematical formatting using erudition-math editor document format (supports LaTeX, graphs, and formulas)", 

234 "value": { 

235 "question": { 

236 "id": "doc_question_12345", 

237 "type": "document", 

238 "blocks": [ 

239 { 

240 "id": "text_q1", 

241 "type": "paragraph", 

242 "data": {"text": "Solve the system of equations:"} 

243 }, 

244 { 

245 "id": "text_q2", 

246 "type": "paragraph", 

247 "data": {"text": "3x + 2y = 12"} 

248 }, 

249 { 

250 "id": "text_q3", 

251 "type": "paragraph", 

252 "data": {"text": "x - y = 3"} 

253 } 

254 ] 

255 }, 

256 "correctAnswer": { 

257 "answers": { 

258 "id": "doc_answer_12345", 

259 "type": "document", 

260 "blocks": [ 

261 { 

262 "id": "text_a1", 

263 "type": "paragraph", 

264 "data": {"text": "x = 4, y = 1"} 

265 } 

266 ] 

267 }, 

268 "answerDetails": { 

269 "id": "doc_details_12345", 

270 "type": "document", 

271 "blocks": [ 

272 { 

273 "id": "text_d1", 

274 "type": "paragraph", 

275 "data": {"text": "Solution can be found using substitution or elimination method. Show all work for full credit."} 

276 } 

277 ] 

278 } 

279 }, 

280 "questionDetails": "This question tests understanding of solving systems of linear equations", 

281 "assignmentType": "STAAR", 

282 "questionType": "Free-response", 

283 "difficulty": "Average", 

284 "teksCode": "A.5C", 

285 "points": 3, 

286 "category": "Algebra", 

287 "questionTopic": "Systems of Linear Equations" 

288 }, 

289 }, 

290 "Graph": { 

291 "summary": "Graph", 

292 "description": "Create a graphing question where students must plot points, draw functions, or analyze graphical representations", 

293 "value": { 

294 "question": "<p>Graph the linear function f(x) = 2x - 3 on the coordinate plane. Then identify the y-intercept and slope.</p>", 

295 "correctAnswer": { 

296 "answers": "y-intercept: (0, -3), slope: 2", 

297 "answerDetails": "The y-intercept is found by setting x=0: f(0)=-3. The slope is the coefficient of x, which is 2.", 

298 }, 

299 "questionDetails": "This question assesses understanding of linear functions and their graphical representations", 

300 "assignmentType": "STAAR", 

301 "questionType": "Graph", 

302 "difficulty": "Average", 

303 "teksCode": "A.3C", 

304 "points": 3, 

305 "category": "Functions", 

306 "questionTopic": "Linear Functions and Graphs" 

307 }, 

308 }, 

309 "Drop-down-Menu": { 

310 "summary": "Drop-down-Menu", 

311 "description": "Create a question where students select answers from multiple dropdown menus to complete statements or equations", 

312 "value": { 

313 "question": "The slope of a line can be calculated using the formula m = __blank__ / __blank__ where (x₁,y₁) and (x₂,y₂) are any two points on the line.", 

314 "choices": [ 

315 {"id": 0, "items": ["y₂ - y₁", "x₂ - x₁", "y₂ + y₁", "x₂ + x₁"]}, 

316 {"id": 1, "items": ["x₂ - x₁", "y₂ - y₁", "y₂ + y₁", "x₂ + x₁"]}, 

317 ], 

318 "correctAnswer": { 

319 "answers": [ 

320 {"id": 0, "answer": "y₂ - y₁"}, 

321 {"id": 1, "answer": "x₂ - x₁"}, 

322 ], 

323 "answerDetails": "<p>The slope formula is m = (y₂ - y₁)/(x₂ - x₁), representing the change in y divided by the change in x.</p>", 

324 }, 

325 "questionDetails": "<p>Tests understanding of the slope formula and its components</p>", 

326 "assignmentType": "STAAR", 

327 "questionType": "Drop-down-Menu", 

328 "difficulty": "Average", 

329 "teksCode": "A.3B", 

330 "points": 2, 

331 "category": "Functions", 

332 "questionTopic": "Slope and Rate of Change" 

333 }, 

334 }, 

335 "Drag-and-Drop": { 

336 "summary": "Drag-and-Drop", 

337 "description": "Create an interactive question where students drag and drop items into correct positions or sequences", 

338 "value": { 

339 "question": "Order the following steps to solve the equation 2(x + 3) - 4 = 10 from first to last: __blank__ → __blank__ → __blank__ → __blank__", 

340 "choices": [ 

341 {"id": 0, "text": "Distribute: 2x + 6 - 4 = 10"}, 

342 {"id": 1, "text": "Combine like terms: 2x + 2 = 10"}, 

343 {"id": 2, "text": "Subtract 2 from both sides: 2x = 8"}, 

344 {"id": 3, "text": "Divide both sides by 2: x = 4"}, 

345 ], 

346 "correctAnswer": { 

347 "answers": [ 

348 {"id": 0, "answer": "Distribute: 2x + 6 - 4 = 10"}, 

349 {"id": 1, "answer": "Combine like terms: 2x + 2 = 10"}, 

350 {"id": 2, "answer": "Subtract 2 from both sides: 2x = 8"}, 

351 {"id": 3, "answer": "Divide both sides by 2: x = 4"}, 

352 ], 

353 "answerDetails": "<p>Shows the proper sequence of steps using the order of operations and algebraic properties</p>", 

354 }, 

355 "questionDetails": "<p>Tests understanding of algebraic problem-solving steps and their logical sequence</p>", 

356 "assignmentType": "STAAR", 

357 "questionType": "Drag-and-Drop", 

358 "difficulty": "Average", 

359 "teksCode": "A.2A", 

360 "points": 3, 

361 "category": "Algebra", 

362 "questionTopic": "Multi-Step Equation Solving" 

363 }, 

364 }, 

365 "Embedded-Multiple-Choice": { 

366 "summary": "Embedded Multiple-Choice", 

367 "description": "Create a question where the answer choices are words or phrases embedded directly in a passage — the student clicks the correct one instead of picking from a separate list", 

368 "value": { 

369 "question": ( 

370 '<p>The Earth revolves around the ' 

371 '<span data-embedded-choice-id="choice-1">Sun</span> and completes one orbit in ' 

372 'approximately <span data-embedded-choice-id="choice-2">365 days</span>.</p>' 

373 ), 

374 "choices": [ 

375 {"id": "choice-1", "text": "Sun"}, 

376 {"id": "choice-2", "text": "365 days"}, 

377 ], 

378 "correctAnswer": { 

379 "answers": ["choice-1"], 

380 "answerDetails": "<p>The Earth orbits the Sun, completing one full revolution approximately every 365 days.</p>", 

381 }, 

382 "questionDetails": "<p>Tests understanding of the Earth's orbital motion around the Sun</p>", 

383 "assignmentType": "STAAR", 

384 "questionType": "Embedded-Multiple-Choice", 

385 "difficulty": "Average", 

386 "teksCode": "6.11A", 

387 "points": 2, 

388 "category": "Science", 

389 "questionTopic": "Earth's Orbit" 

390 }, 

391 }, 

392 "Single-Stimulus": { 

393 "summary": "Single Stimulus", 

394 "description": "Create a question with one shared main question and two or more independently-scored groups (each its own interaction type, choices, and correct answer)", 

395 "value": { 

396 "question": "<p>Study the water cycle diagram, then answer each part below.</p>", 

397 "groups": [ 

398 { 

399 "group_id": "group-1", 

400 "page": 1, 

401 "type": "multiple-choice", 

402 "points": 1, 

403 "choices": [ 

404 {"id": 0, "text": "Condensation"}, 

405 {"id": 1, "text": "Evaporation"}, 

406 ], 

407 "correctAnswer": {"answers": ["Evaporation"]}, 

408 }, 

409 { 

410 "group_id": "group-2", 

411 "page": 2, 

412 "type": "checkbox", 

413 "points": 1, 

414 "choices": [ 

415 {"id": 0, "text": "Evaporation"}, 

416 {"id": 1, "text": "Condensation"}, 

417 ], 

418 "correctAnswer": {"answers": ["Evaporation", "Condensation"]}, 

419 }, 

420 { 

421 "group_id": "group-3", 

422 "page": 3, 

423 "type": "drop-down", 

424 "points": 1, 

425 "content": "<p>Water changes from a liquid to a gas through __blank__.</p>", 

426 "choices": [ 

427 {"id": 0, "items": ["evaporation", "precipitation"]}, 

428 ], 

429 "correctAnswer": {"answers": [{"id": 0, "answer": "evaporation"}]}, 

430 }, 

431 { 

432 "group_id": "group-4", 

433 "page": 4, 

434 "type": "drag-and-drop", 

435 "points": 1, 

436 "content": "<p>Drag the correct term into the blank: __blank__ turns liquid water into vapor.</p>", 

437 "choices": [ 

438 {"id": 0, "text": "Evaporation"}, 

439 {"id": 1, "text": "Condensation"}, 

440 ], 

441 "correctAnswer": {"answers": [{"id": 0, "answer": "Evaporation"}]}, 

442 }, 

443 ], 

444 "correctAnswer": { 

445 "answers": [], 

446 "answerDetails": "<p>Water evaporates from the surface, then condenses back into liquid as it cools — both groups test a different part of that cycle.</p>", 

447 }, 

448 "questionDetails": "", 

449 "assignmentType": "STAAR", 

450 "questionType": "Single-Stimulus", 

451 "difficulty": "Average", 

452 "teksCode": "6.11A", 

453 "points": 2, 

454 "category": "Science", 

455 "questionTopic": "Water Cycle" 

456 }, 

457 }, 

458 "Multi-Part-Question": { 

459 "summary": "Multi-Part Question", 

460 "description": "Same as Single-Stimulus (one shared main question, two or more independently-scored groups) except every group also has its own individual question, in addition to the shared main question", 

461 "value": { 

462 "question": "<p>Study the water cycle diagram, then answer each part below.</p>", 

463 "groups": [ 

464 { 

465 "group_id": "group-1", 

466 "page": 1, 

467 "type": "multiple-choice", 

468 "points": 1, 

469 "questionText": "<p>Which process turns liquid water into vapor?</p>", 

470 "choices": [ 

471 {"id": 0, "text": "Condensation"}, 

472 {"id": 1, "text": "Evaporation"}, 

473 ], 

474 "correctAnswer": {"answers": ["Evaporation"]}, 

475 }, 

476 { 

477 "group_id": "group-2", 

478 "page": 2, 

479 "type": "checkbox", 

480 "points": 1, 

481 "questionText": "<p>Which processes are part of the water cycle?</p>", 

482 "choices": [ 

483 {"id": 0, "text": "Evaporation"}, 

484 {"id": 1, "text": "Condensation"}, 

485 ], 

486 "correctAnswer": {"answers": ["Evaporation", "Condensation"]}, 

487 }, 

488 { 

489 "group_id": "group-3", 

490 "page": 3, 

491 "type": "drop-down", 

492 "points": 1, 

493 "questionText": "<p>Fill in the blank to complete the sentence.</p>", 

494 "content": "<p>Water changes from a liquid to a gas through __blank__.</p>", 

495 "choices": [ 

496 {"id": 0, "items": ["evaporation", "precipitation"]}, 

497 ], 

498 "correctAnswer": {"answers": [{"id": 0, "answer": "evaporation"}]}, 

499 }, 

500 { 

501 "group_id": "group-4", 

502 "page": 4, 

503 "type": "drag-and-drop", 

504 "points": 1, 

505 "questionText": "<p>Drag the correct term to complete the sentence.</p>", 

506 "content": "<p>Drag the correct term into the blank: __blank__ turns liquid water into vapor.</p>", 

507 "choices": [ 

508 {"id": 0, "text": "Evaporation"}, 

509 {"id": 1, "text": "Condensation"}, 

510 ], 

511 "correctAnswer": {"answers": [{"id": 0, "answer": "Evaporation"}]}, 

512 }, 

513 ], 

514 "correctAnswer": { 

515 "answers": [], 

516 "answerDetails": "<p>Water evaporates from the surface, then condenses back into liquid as it cools — each group's own question tests a different part of that cycle.</p>", 

517 }, 

518 "questionDetails": "", 

519 "assignmentType": "STAAR", 

520 "questionType": "Multi-Part-Question", 

521 "difficulty": "Average", 

522 "teksCode": "6.11A", 

523 "points": 2, 

524 "category": "Science", 

525 "questionTopic": "Water Cycle" 

526 }, 

527 }, 

528 "Grid-Question": { 

529 "summary": "Grid Question", 

530 "description": ( 

531 "Create a question with statements as rows and a shared set of answer options as " 

532 "columns — the student picks exactly one column per row" 

533 ), 

534 "value": { 

535 "question": "<p>Classify each process below as physical or chemical.</p>", 

536 "rows": [ 

537 {"id": 0, "text": "Water freezing into ice"}, 

538 {"id": 1, "text": "Iron rusting"}, 

539 {"id": 2, "text": "Paper being torn"}, 

540 ], 

541 "choices": [ 

542 {"id": 0, "text": "Physical Change"}, 

543 {"id": 1, "text": "Chemical Change"}, 

544 ], 

545 "correctAnswer": { 

546 "answers": [ 

547 {"id": 0, "answer": "Physical Change"}, 

548 {"id": 1, "answer": "Chemical Change"}, 

549 {"id": 2, "answer": "Physical Change"}, 

550 ], 

551 "answerDetails": "<p>Freezing and tearing don't form new substances; rusting does.</p>", 

552 }, 

553 "questionDetails": "<p>Tests the ability to distinguish physical from chemical changes</p>", 

554 "assignmentType": "STAAR", 

555 "questionType": "Grid-Question", 

556 "difficulty": "Average", 

557 "teksCode": "6.5A", 

558 "points": 3, 

559 "category": "Science", 

560 "questionTopic": "Physical and Chemical Changes" 

561 }, 

562 }, 

563 "Graph-Multiple-Select": { 

564 "summary": "Graph-Multiple-Select", 

565 "description": ( 

566 "Create a Graph Multiple-Select question: the author places toggle dots " 

567 "(and optional background drawings); students select dots on/off within min/max limits" 

568 ), 

569 "value": { 

570 "question": "<p>Select the points that lie on the line y = x.</p>", 

571 "correctAnswer": { 

572 "answers": { 

573 "format": "Graph2D", 

574 "data": { 

575 "interactiveDots": [ 

576 {"x": 1, "y": 1, "active": True}, 

577 {"x": 2, "y": 3, "active": False}, 

578 {"x": -1, "y": -1, "active": True}, 

579 ], 

580 "interactiveDotLimits": {"min": 1, "max": 2}, 

581 "dots": [], 

582 "labeldots": [], 

583 "pointValueDots": [], 

584 "odots": [], 

585 "lines": [], 

586 "tplines": [], 

587 "ineqlines": [], 

588 "attributes": { 

589 "xMin": -10, 

590 "xMax": 10, 

591 "yMin": -10, 

592 "yMax": 10, 

593 "steps": 1, 

594 "borderPixel": 5, 

595 "width": 410, 

596 "height": 410, 

597 }, 

598 }, 

599 }, 

600 "answerDetails": "<p>Points on y = x have equal coordinates.</p>", 

601 }, 

602 "questionDetails": "", 

603 "assignmentType": "STAAR", 

604 "questionType": "Graph-Multiple-Select", 

605 "difficulty": "Average", 

606 "teksCode": "A.2A", 

607 "points": 2, 

608 "category": "Functions", 

609 "questionTopic": "Points on a Line", 

610 }, 

611 }, 

612} 

613 

614 

615question_payload = { 

616 "staar_type_question": { 

617 "summary": "Staar type question", 

618 "description": "Create a staar type question", 

619 "value": { 

620 "classification": "STAAR", 

621 "question_type": "Text Entry", 

622 "question_content": "This is a question example", 

623 "question_img": "", 

624 "correct_answer": "Type answer here", 

625 "solutions": "Input solution here", 

626 "release_date": "2023-12", 

627 "category": "1", 

628 "TEKS": ["A.10(A)"], 

629 "readiness": ["A.10(E)"], 

630 "topic": "Quadratic Equations", 

631 "vocabulary": "slope", 

632 "difficulty": "easy", 

633 "points": 1, 

634 }, 

635 }, 

636 "mathmatters_custom_question": { 

637 "summary": "MathMatters type question", 

638 "description": "Create a mathmatters type question", 

639 "value": { 

640 "classification": "MathMatters", 

641 "question_type": "Text Entry", 

642 "question_content": "This is a question example", 

643 "question_img": "", 

644 "correct_answer": "Type answer here", 

645 "solutions": "Input solution here", 

646 "release_date": "2023-12", 

647 "category": "1", 

648 "TEKS": ["A.10(A)"], 

649 "readiness": ["A.10(E)"], 

650 "topic": "Quadratic Equations", 

651 "vocabulary": "slope", 

652 "difficulty": "easy", 

653 "points": 1, 

654 }, 

655 }, 

656 "sat_question": { 

657 "summary": "SAT type question", 

658 "description": "Create a SAT type question", 

659 "value": { 

660 "classification": "SAT", 

661 "question_type": "Text Entry", 

662 "question_content": "This is a question example", 

663 "question_img": "", 

664 "correct_answer": "Type answer here", 

665 "solutions": "Input solution here", 

666 "topic": "Quadratic Equations", 

667 "vocabulary": "slope", 

668 "difficulty": "easy", 

669 "points": 1, 

670 }, 

671 }, 

672 "act_question": { 

673 "summary": "ACT type question", 

674 "description": "Create a ACT type question", 

675 "value": { 

676 "classification": "ACT", 

677 "question_type": "Text Entry", 

678 "question_content": "This is a question example", 

679 "question_img": "", 

680 "correct_answer": "Type answer here", 

681 "solutions": "Input solution here", 

682 "topic": "Quadratic Equations", 

683 "vocabulary": "slope", 

684 "difficulty": "easy", 

685 "points": 1, 

686 }, 

687 }, 

688 "tsi_question": { 

689 "summary": "TSI type question", 

690 "description": "Create a TSI type question", 

691 "value": { 

692 "classification": "TSI", 

693 "question_type": "Text Entry", 

694 "question_content": "This is a question example", 

695 "question_img": "", 

696 "correct_answer": "Type answer here", 

697 "solutions": "Input solution here", 

698 "topic": "Quadratic Equations", 

699 "vocabulary": "slope", 

700 "difficulty": "easy", 

701 "points": 1, 

702 }, 

703 }, 

704 "staar_type_question_multiple_choice": { 

705 "summary": "Staar type question - multiple choice", 

706 "description": "Create a staar type question", 

707 "value": { 

708 "classification": "STAAR", 

709 "question_type": "Multiple Choice", 

710 "question_content": "This is a question example", 

711 "question_img": "", 

712 "options": [ 

713 { 

714 "letter": "A", 

715 "content": "Sample content", 

716 "image": "", 

717 "unit": "", 

718 "is_answer": True, 

719 }, 

720 { 

721 "letter": "B", 

722 "content": "Sample content", 

723 "image": "", 

724 "unit": "", 

725 "is_answer": False, 

726 }, 

727 ], 

728 "solutions": "Input solution here", 

729 "release_date": "2023-12", 

730 "category": "1", 

731 "TEKS": ["A.10(A)"], 

732 "readiness": ["A.10(E)"], 

733 "topic": "Quadratic Equations", 

734 "vocabulary": "slope", 

735 "difficulty": "easy", 

736 "points": 1, 

737 }, 

738 }, 

739 "mathmatters_type_question_multiple_choice": { 

740 "summary": "MathMatters type question - multiple choice", 

741 "description": "Create a mathmatters type question", 

742 "value": { 

743 "classification": "MathMatters", 

744 "question_type": "Multiple Choice", 

745 "question_content": "This is a question example", 

746 "question_img": "", 

747 "options": [ 

748 { 

749 "letter": "A", 

750 "content": "Sample content", 

751 "image": "", 

752 "unit": "", 

753 "is_answer": True, 

754 }, 

755 { 

756 "letter": "B", 

757 "content": "Sample content", 

758 "image": "", 

759 "unit": "", 

760 "is_answer": False, 

761 }, 

762 ], 

763 "solutions": "Input solution here", 

764 "release_date": "2023-12", 

765 "category": "1", 

766 "TEKS": ["A.10(A)"], 

767 "readiness": ["A.10(E)"], 

768 "topic": "Quadratic Equations", 

769 "vocabulary": "slope", 

770 "difficulty": "easy", 

771 "points": 1, 

772 }, 

773 }, 

774 "tsi_sat_act_question_multiple_choice": { 

775 "summary": "TSI SAT ACT type question - multiple choice", 

776 "description": "Create a TSI type question", 

777 "value": { 

778 "classification": "TSI", 

779 "question_type": "Text Entry", 

780 "question_content": "This is a question example", 

781 "question_img": "", 

782 "options": [ 

783 { 

784 "letter": "A", 

785 "content": "Sample content", 

786 "image": "", 

787 "unit": "", 

788 "is_answer": True, 

789 }, 

790 { 

791 "letter": "B", 

792 "content": "Sample content", 

793 "image": "", 

794 "unit": "", 

795 "is_answer": False, 

796 }, 

797 ], 

798 "correct_answer": "", 

799 "solutions": "Input solution here", 

800 "topic": "Quadratic Equations", 

801 "vocabulary": "slope", 

802 "difficulty": "easy", 

803 "points": 1, 

804 }, 

805 }, 

806} 

807 

808updated_question_payload = { 

809 "staar_type_question": { 

810 "summary": "Staar type question", 

811 "description": "Create a staar type question", 

812 "value": { 

813 "classification": "STAAR", 

814 "question_type": "Text Entry", 

815 "question_content": "This is a question example", 

816 "question_img": "", 

817 "correct_answer": "Type answer here", 

818 "solutions": "Input solution here", 

819 "release_date": "2023-12", 

820 "category": "1", 

821 "TEKS": ["A.10(A)"], 

822 "readiness": ["A.10(E)"], 

823 "topic": "Quadratic Equations", 

824 "vocabulary": "slope", 

825 "difficulty": "easy", 

826 "points": 1, 

827 "update_note": "note here", 

828 }, 

829 }, 

830 "mathmatters_custom_question": { 

831 "summary": "MathMatters type question", 

832 "description": "Create a mathmatters type question", 

833 "value": { 

834 "classification": "MathMatters", 

835 "question_type": "Text Entry", 

836 "question_content": "This is a question example", 

837 "question_img": "", 

838 "correct_answer": "Type answer here", 

839 "solutions": "Input solution here", 

840 "release_date": "2023-12", 

841 "category": "1", 

842 "TEKS": ["A.10(A)"], 

843 "readiness": ["A.10(E)"], 

844 "topic": "Quadratic Equations", 

845 "vocabulary": "slope", 

846 "difficulty": "easy", 

847 "points": 1, 

848 "update_note": "note here", 

849 }, 

850 }, 

851 "sat_question": { 

852 "summary": "SAT type question", 

853 "description": "Create a SAT type question", 

854 "value": { 

855 "classification": "SAT", 

856 "question_type": "Text Entry", 

857 "question_content": "This is a question example", 

858 "question_img": "", 

859 "correct_answer": "Type answer here", 

860 "solutions": "Input solution here", 

861 "topic": "Quadratic Equations", 

862 "vocabulary": "slope", 

863 "difficulty": "easy", 

864 "points": 1, 

865 "update_note": "note here", 

866 }, 

867 }, 

868 "act_question": { 

869 "summary": "ACT type question", 

870 "description": "Create a ACT type question", 

871 "value": { 

872 "classification": "ACT", 

873 "question_type": "Text Entry", 

874 "question_content": "This is a question example", 

875 "question_img": "", 

876 "correct_answer": "Type answer here", 

877 "solutions": "Input solution here", 

878 "topic": "Quadratic Equations", 

879 "vocabulary": "slope", 

880 "difficulty": "easy", 

881 "points": 1, 

882 "update_note": "note here", 

883 }, 

884 }, 

885 "tsi_question": { 

886 "summary": "TSI type question", 

887 "description": "Create a TSI type question", 

888 "value": { 

889 "classification": "TSI", 

890 "question_type": "Text Entry", 

891 "question_content": "This is a question example", 

892 "question_img": "", 

893 "correct_answer": "Type answer here", 

894 "solutions": "Input solution here", 

895 "topic": "Quadratic Equations", 

896 "vocabulary": "slope", 

897 "difficulty": "easy", 

898 "points": 1, 

899 "update_note": "note here", 

900 }, 

901 }, 

902 "staar_type_question_multiple_choice": { 

903 "summary": "Staar type question - multiple choice", 

904 "description": "Create a staar type question", 

905 "value": { 

906 "classification": "STAAR", 

907 "question_type": "Multiple Choice", 

908 "question_content": "This is a question example", 

909 "question_img": "", 

910 "options": [ 

911 { 

912 "letter": "A", 

913 "content": "Sample content", 

914 "image": "", 

915 "unit": "", 

916 "is_answer": True, 

917 }, 

918 { 

919 "letter": "B", 

920 "content": "Sample content", 

921 "image": "", 

922 "unit": "", 

923 "is_answer": False, 

924 }, 

925 ], 

926 "solutions": "Input solution here", 

927 "release_date": "2023-12", 

928 "category": "1", 

929 "TEKS": ["A.10(A)"], 

930 "readiness": ["A.10(E)"], 

931 "topic": "Quadratic Equations", 

932 "vocabulary": "slope", 

933 "difficulty": "easy", 

934 "points": 1, 

935 "update_note": "note here", 

936 }, 

937 }, 

938 "mathmatters_type_question_multiple_choice": { 

939 "summary": "MathMatters type question - multiple choice", 

940 "description": "Create a mathmatters type question", 

941 "value": { 

942 "classification": "MathMatters", 

943 "question_type": "Multiple Choice", 

944 "question_content": "This is a question example", 

945 "question_img": "", 

946 "options": [ 

947 { 

948 "letter": "A", 

949 "content": "Sample content", 

950 "image": "", 

951 "unit": "", 

952 "is_answer": True, 

953 }, 

954 { 

955 "letter": "B", 

956 "content": "Sample content", 

957 "image": "", 

958 "unit": "", 

959 "is_answer": False, 

960 }, 

961 ], 

962 "solutions": "Input solution here", 

963 "release_date": "2023-12", 

964 "category": "1", 

965 "TEKS": ["A.10(A)"], 

966 "readiness": ["A.10(E)"], 

967 "topic": "Quadratic Equations", 

968 "vocabulary": "slope", 

969 "difficulty": "easy", 

970 "points": 1, 

971 "update_note": "note here", 

972 }, 

973 }, 

974 "tsi_sat_act_question_multiple_choice": { 

975 "summary": "TSI SAT ACT type question - multiple choice", 

976 "description": "Create a TSI type question", 

977 "value": { 

978 "classification": "TSI", 

979 "question_type": "Text Entry", 

980 "question_content": "This is a question example", 

981 "question_img": "", 

982 "options": [ 

983 { 

984 "letter": "A", 

985 "content": "Sample content", 

986 "image": "", 

987 "unit": "", 

988 "is_answer": True, 

989 }, 

990 { 

991 "letter": "B", 

992 "content": "Sample content", 

993 "image": "", 

994 "unit": "", 

995 "is_answer": False, 

996 }, 

997 ], 

998 "correct_answer": "", 

999 "solutions": "Input solution here", 

1000 "topic": "Quadratic Equations", 

1001 "vocabulary": "slope", 

1002 "difficulty": "easy", 

1003 "points": 1, 

1004 "update_note": "note here", 

1005 }, 

1006 }, 

1007} 

1008 

1009staff_question_payload = { 

1010 "staar_type_question": { 

1011 "summary": "STAAR type question", 

1012 "description": "Create a STAAR type question", 

1013 "value": { 

1014 "assignmentType": "STAAR", 

1015 "questionType": "Free-response", 

1016 "questionSubject": "Math", 

1017 "questionTopic": "Quadratic Equations", 

1018 "question": "Solve for x: x² - 4x + 4 = 0", 

1019 "questionDetails": "Provide a step-by-step solution.", 

1020 "questionImages": [], 

1021 "questionGraphs": [], 

1022 "studentExpectation": "Solve quadratic equations", 

1023 "correctAnswer": { 

1024 "answers": "x = 2", 

1025 "answerDetails": "Factoring (x-2)(x-2) = 0", 

1026 "graph": "" 

1027 }, 

1028 "solutions": "Factor and solve for x.", 

1029 "releaseDate": "2025-01-01T00:00:00Z", 

1030 "category": "1", 

1031 "gradeLevel": 3, 

1032 "teksCode": "1", 

1033 "difficulty": "Easy", 

1034 "points": 1, 

1035 "keywords": ["quadratic equations", "math"] 

1036 } 

1037 }, 

1038 "sat_question": { 

1039 "summary": "SAT question", 

1040 "description": "Create an SAT-style question", 

1041 "value": { 

1042 "assignmentType": "SAT", 

1043 "questionType": "Multiple-choice", 

1044 "questionSubject": "Math", 

1045 "questionTopic": "Algebra", 

1046 "question": "If 3x - 5 = 16, what is the value of x?", 

1047 "questionDetails": "Choose the correct answer from the given options.", 

1048 "questionImages": [], 

1049 "questionGraphs": [], 

1050 "studentExpectation": "Solve linear equations", 

1051 "correctAnswer": { 

1052 "answers": "x = 7", 

1053 "answerDetails": "Add 5 to both sides, then divide by 3.", 

1054 "graph": "" 

1055 }, 

1056 "solutions": "3x = 21 → x = 7", 

1057 "releaseDate": "2025-01-01T00:00:00Z", 

1058 "category": "2", 

1059 "gradeLevel": 10, 

1060 "teksCode": "2", 

1061 "difficulty": "Average", 

1062 "points": 2, 

1063 "keywords": ["SAT", "algebra", "math"] 

1064 } 

1065 }, 

1066 "act_question": { 

1067 "summary": "ACT question", 

1068 "description": "Create an ACT-style question", 

1069 "value": { 

1070 "assignmentType": "ACT", 

1071 "questionType": "Multiple-choice", 

1072 "questionSubject": "Science", 

1073 "questionTopic": "Biology", 

1074 "question": "Which organelle is responsible for producing ATP?", 

1075 "questionDetails": "Select the best answer.", 

1076 "questionImages": [], 

1077 "questionGraphs": [], 

1078 "studentExpectation": "Identify cell organelles", 

1079 "correctAnswer": { 

1080 "answers": "Mitochondria", 

1081 "answerDetails": "Mitochondria produce ATP via cellular respiration.", 

1082 "graph": "" 

1083 }, 

1084 "solutions": "Mitochondria generate ATP through oxidative phosphorylation.", 

1085 "releaseDate": "2025-01-01T00:00:00Z", 

1086 "category": "3", 

1087 "gradeLevel": 11, 

1088 "teksCode": "3", 

1089 "difficulty": "Average", 

1090 "points": 2, 

1091 "keywords": ["ACT", "biology", "cell structure"] 

1092 } 

1093 }, 

1094 "tsi_question": { 

1095 "summary": "TSI question", 

1096 "description": "Create a TSI-style question", 

1097 "value": { 

1098 "assignmentType": "TSI", 

1099 "questionType": "Multiple-choice", 

1100 "questionSubject": "English", 

1101 "questionTopic": "Reading Comprehension", 

1102 "question": "What is the main idea of the passage?", 

1103 "questionDetails": "Choose the correct main idea.", 

1104 "questionImages": [], 

1105 "questionGraphs": [], 

1106 "studentExpectation": "Analyze main ideas in a text", 

1107 "correctAnswer": { 

1108 "answers": "The passage discusses the impact of climate change.", 

1109 "answerDetails": "The main idea summarizes the key argument of the passage.", 

1110 "graph": "" 

1111 }, 

1112 "solutions": "Input solution here", 

1113 "topic": "Quadratic Equations", 

1114 "difficulty": "Easy", 

1115 "points": 1, 

1116 "gradeLevel": 3, 

1117 }, 

1118 }, 

1119 "staar_type_question_multiple_choice": { 

1120 "summary": "Staar type question - multiple choice", 

1121 "description": "Create a staar type question", 

1122 "value": { 

1123 "assignmentType": "STAAR", 

1124 "questionType": "Free-response", 

1125 "questionSubject": "Math", 

1126 "questionTopic": "test", 

1127 "question": "This is a question example", 

1128 "questionDetails": "test", 

1129 "questionImages": [], 

1130 "questionGraphs": [], 

1131 "studentExpectation": "test", 

1132 "choices": [ 

1133 {"id": 0, "text": "<p>x = -2</p>"}, 

1134 {"id": 1, "text": "x = -3"}, 

1135 {"id": 2, "text": "x = 2"}, 

1136 {"id": 3, "text": "x = -1"}, 

1137 ], 

1138 "correctAnswer": { 

1139 "answers": ["-2", "-3"], 

1140 "answerDetails": "The solutions can be found by factoring: x² + 5x + 6 = (x + 2)(x + 3) = 0, therefore x = -2 or x = -3", 

1141 }, 

1142 "solutions": "Input solution here", 

1143 "releaseDate": "2025-01-01T00:00:00Z", 

1144 "category": "1", 

1145 "gradeLevel": 3, 

1146 "teksCode": "1", 

1147 "topic": "Quadratic Equations", 

1148 "difficulty": "Easy", 

1149 "points": 1, 

1150 "keywords": ["test"], 

1151 }, 

1152 }, 

1153 "mathmatters_type_question_multiple_choice": { 

1154 "summary": "MathMatters type question - multiple choice", 

1155 "description": "Create a mathmatters type question", 

1156 "value": { 

1157 "assignmentType": "SAT", 

1158 "questionType": "Multiple-choice", 

1159 "questionSubject": "test", 

1160 "questionTopic": "test", 

1161 "questionContent": "This is a question example", 

1162 "questionImages": [], 

1163 "questionGraphs": [], 

1164 "options": [ 

1165 { 

1166 "letter": "A", 

1167 "content": "Sample content", 

1168 "image": "", 

1169 "unit": "", 

1170 "is_answer": True, 

1171 }, 

1172 { 

1173 "letter": "B", 

1174 "content": "Sample content", 

1175 "image": "", 

1176 "unit": "", 

1177 "is_answer": False, 

1178 }, 

1179 ], 

1180 "solutions": "Input solution here", 

1181 "releaseDate": "2025-01-01T00:00:00Z", 

1182 "category": "1", 

1183 "teksCode": "1", 

1184 "topic": "Quadratic Equations", 

1185 "difficulty": "Easy", 

1186 "gradeLevel": 3, 

1187 "points": 1, 

1188 }, 

1189 }, 

1190 "tsi_sat_act_question_multiple_choice": { 

1191 "summary": "TSI SAT ACT type question - multiple choice", 

1192 "description": "Create a TSI type question", 

1193 "value": { 

1194 "assignmentType": "TSI", 

1195 "questionType": "Multiple-choice", 

1196 "questionSubject": "test", 

1197 "questionTopic": "test", 

1198 "questionContent": "This is a question example", 

1199 "questionDetails": "test", 

1200 "questionImages": [], 

1201 "questionGraphs": [], 

1202 "options": [ 

1203 { 

1204 "letter": "A", 

1205 "content": "Sample content", 

1206 "image": "", 

1207 "unit": "", 

1208 "is_answer": True, 

1209 }, 

1210 { 

1211 "letter": "B", 

1212 "content": "Sample content", 

1213 "image": "", 

1214 "unit": "", 

1215 "is_answer": False, 

1216 }, 

1217 ], 

1218 "correctAnswer": "", 

1219 "solutions": "Input solution here", 

1220 "topic": "Quadratic Equations", 

1221 "difficulty": "Easy", 

1222 "gradeLevel": 3, 

1223 "points": 1, 

1224 }, 

1225 }, 

1226 "staar_multiple_choice_question": { 

1227 "summary": "STAAR multiple-choice question", 

1228 "description": "Create a STAAR multiple-choice question", 

1229 "value": { 

1230 "assignmentType": "STAAR", 

1231 "questionType": "Multiple-choice", 

1232 "questionSubject": "Math", 

1233 "questionTopic": "Quadratic Equations", 

1234 "question": "What is the solution to x² - 4x + 4 = 0?", 

1235 "questionDetails": "Choose the correct answer.", 

1236 "questionImages": [], 

1237 "questionGraphs": [], 

1238 "studentExpectation": "Solve quadratic equations", 

1239 "choices": [ 

1240 { "id": 0, "text": "<p>x = 4</p>", "graph": "" }, 

1241 { "id": 1, "text": "x = 2", "graph": "graph_url_1.png" }, 

1242 { "id": 2, "text": "x = -2", "graph": "" }, 

1243 { "id": 3, "text": "x = -4", "graph": "graph_url_2.png" } 

1244 ], 

1245 "correctAnswer": { 

1246 "answers": [ 

1247 { "id": 1, "answer": "2", "graph": "graph_url_1.png" } 

1248 ], 

1249 "answerDetails": "Factoring (x-2)(x-2) = 0, so x = 2." 

1250 }, 

1251 "solutions": "Factor and solve for x.", 

1252 "releaseDate": "2025-01-01T00:00:00Z", 

1253 "category": "1", 

1254 "gradeLevel": 3, 

1255 "teksCode": "1", 

1256 "difficulty": "Easy", 

1257 "points": 1, 

1258 "keywords": ["quadratic equations", "math"] 

1259 } 

1260 }, 

1261 "sat_multiple_choice_question": { 

1262 "summary": "SAT multiple-choice question", 

1263 "description": "Create an SAT multiple-choice question", 

1264 "value": { 

1265 "assignmentType": "SAT", 

1266 "questionType": "Multiple-choice", 

1267 "questionSubject": "Math", 

1268 "questionTopic": "Algebra", 

1269 "question": "If 3x - 5 = 16, what is the value of x?", 

1270 "questionDetails": "Choose the correct answer.", 

1271 "questionImages": [], 

1272 "questionGraphs": [], 

1273 "studentExpectation": "Solve linear equations", 

1274 "choices": [ 

1275 { "id": 0, "text": "x = 5", "graph": "" }, 

1276 { "id": 1, "text": "x = 6", "graph": "graph_url_3.png" }, 

1277 { "id": 2, "text": "x = 7", "graph": "" }, 

1278 { "id": 3, "text": "x = 8", "graph": "" } 

1279 ], 

1280 "correctAnswer": { 

1281 "answers": [ 

1282 { "id": 2, "answer": "7", "graph": "" } 

1283 ], 

1284 "answerDetails": "Add 5 to both sides, then divide by 3." 

1285 }, 

1286 "solutions": "3x = 21 → x = 7", 

1287 "releaseDate": "2025-01-01T00:00:00Z", 

1288 "category": "2", 

1289 "gradeLevel": 10, 

1290 "teksCode": "2", 

1291 "difficulty": "Average", 

1292 "points": 2, 

1293 "keywords": ["SAT", "algebra", "math"] 

1294 } 

1295 }, 

1296 "act_multiple_choice_question": { 

1297 "summary": "ACT multiple-choice question", 

1298 "description": "Create an ACT multiple-choice question", 

1299 "value": { 

1300 "assignmentType": "ACT", 

1301 "questionType": "Multiple-choice", 

1302 "questionSubject": "Science", 

1303 "questionTopic": "Biology", 

1304 "question": "Which organelle is responsible for producing ATP?", 

1305 "questionDetails": "Select the best answer.", 

1306 "questionImages": [], 

1307 "questionGraphs": [], 

1308 "studentExpectation": "Identify cell organelles", 

1309 "choices": [ 

1310 { "id": 0, "text": "Nucleus", "graph": "" }, 

1311 { "id": 1, "text": "Mitochondria", "graph": "graph_url_4.png" }, 

1312 { "id": 2, "text": "Ribosome", "graph": "" }, 

1313 { "id": 3, "text": "Golgi Apparatus", "graph": "" } 

1314 ], 

1315 "correctAnswer": { 

1316 "answers": [ 

1317 { "id": 1, "answer": "Mitochondria", "graph": "graph_url_4.png" } 

1318 ], 

1319 "answerDetails": "Mitochondria produce ATP via cellular respiration." 

1320 }, 

1321 "solutions": "Mitochondria generate ATP through oxidative phosphorylation.", 

1322 "releaseDate": "2025-01-01T00:00:00Z", 

1323 "category": "3", 

1324 "gradeLevel": 11, 

1325 "teksCode": "3", 

1326 "difficulty": "Average", 

1327 "points": 2, 

1328 "keywords": ["ACT", "biology", "cell structure"] 

1329 } 

1330 }, 

1331 "tsi_multiple_choice_question": { 

1332 "summary": "TSI multiple-choice question", 

1333 "description": "Create a TSI multiple-choice question", 

1334 "value": { 

1335 "assignmentType": "TSI", 

1336 "questionType": "Multiple-choice", 

1337 "questionSubject": "English", 

1338 "questionTopic": "Reading Comprehension", 

1339 "question": "What is the main idea of the passage?", 

1340 "questionDetails": "Choose the correct main idea.", 

1341 "questionImages": [], 

1342 "questionGraphs": [], 

1343 "studentExpectation": "Analyze main ideas in a text", 

1344 "choices": [ 

1345 { "id": 0, "text": "The passage explains how volcanoes are formed.", "graph": "" }, 

1346 { "id": 1, "text": "The passage discusses the impact of climate change.", "graph": "graph_url_5.png" }, 

1347 { "id": 2, "text": "The passage tells a story about a scientist's journey.", "graph": "" }, 

1348 { "id": 3, "text": "The passage gives a step-by-step guide to planting trees.", "graph": "" } 

1349 ], 

1350 "correctAnswer": { 

1351 "answers": [ 

1352 { "id": 1, "answer": "The passage discusses the impact of climate change.", "graph": "graph_url_5.png" } 

1353 ], 

1354 "answerDetails": "The main idea summarizes the key argument of the passage." 

1355 }, 

1356 "solutions": "Identify the central argument of the passage.", 

1357 "releaseDate": "2025-01-01T00:00:00Z", 

1358 "category": "4", 

1359 "gradeLevel": 12, 

1360 "teksCode": "4", 

1361 "difficulty": "Advance", 

1362 "points": 3, 

1363 "keywords": ["TSI", "reading", "comprehension"] 

1364 } 

1365 }, 

1366} 

1367 

1368staff_updated_question_payload = { 

1369 "staar_type_question_update": { 

1370 "summary": "Update STAAR type question", 

1371 "description": "Modify a STAAR type question", 

1372 "value": { 

1373 "assignmentType": "STAAR", 

1374 "questionType": "Free-response", 

1375 "questionSubject": "Math", 

1376 "questionTopic": "Quadratic Equations", 

1377 "question": "Solve for x: x² - 6x + 9 = 0", 

1378 "questionDetails": "Provide a detailed step-by-step solution.", 

1379 "questionImages": [], 

1380 "questionGraphs": [], 

1381 "studentExpectation": "Solve quadratic equations with perfect squares", 

1382 "correctAnswer": { 

1383 "answers": "x = 3", 

1384 "answerDetails": "Factoring (x-3)(x-3) = 0", 

1385 "graph": "" 

1386 }, 

1387 "solutions": "Factor and solve for x.", 

1388 "releaseDate": "2025-02-01T00:00:00Z", 

1389 "category": "1", 

1390 "gradeLevel": 3, 

1391 "teksCode": "1", 

1392 "difficulty": "Average", 

1393 "points": 2, 

1394 "keywords": ["quadratic equations", "math"] 

1395 } 

1396 }, 

1397 "sat_question_update": { 

1398 "summary": "Update SAT question", 

1399 "description": "Modify an SAT-style question", 

1400 "value": { 

1401 "assignmentType": "SAT", 

1402 "questionType": "Multiple-choice", 

1403 "questionSubject": "Math", 

1404 "questionTopic": "Algebra", 

1405 "question": "If 4x - 7 = 21, what is the value of x?", 

1406 "questionDetails": "Choose the correct answer from the given options.", 

1407 "questionImages": [], 

1408 "questionGraphs": [], 

1409 "studentExpectation": "Solve linear equations", 

1410 "choices": [ 

1411 { "id": 0, "text": "x = 5", "graph": "" }, 

1412 { "id": 1, "text": "x = 6", "graph": "" }, 

1413 { "id": 2, "text": "x = 7", "graph": "" }, 

1414 { "id": 3, "text": "x = 8", "graph": "" } 

1415 ], 

1416 "correctAnswer": { 

1417 "answers": [ 

1418 { "id": 2, "answer": "7", "graph": "" } 

1419 ], 

1420 "answerDetails": "Add 7 to both sides, then divide by 4." 

1421 }, 

1422 "solutions": "4x = 28 → x = 7", 

1423 "releaseDate": "2025-02-01T00:00:00Z", 

1424 "category": "2", 

1425 "gradeLevel": 10, 

1426 "teksCode": "2", 

1427 "difficulty": "Average", 

1428 "points": 2, 

1429 "keywords": ["SAT", "algebra", "math"] 

1430 } 

1431 }, 

1432 "act_question_update": { 

1433 "summary": "Update ACT question", 

1434 "description": "Modify an ACT-style question", 

1435 "value": { 

1436 "assignmentType": "ACT", 

1437 "questionType": "Multiple-choice", 

1438 "questionSubject": "Science", 

1439 "questionTopic": "Biology", 

1440 "question": "Which organelle is known as the powerhouse of the cell?", 

1441 "questionDetails": "Select the best answer.", 

1442 "questionImages": [], 

1443 "questionGraphs": [], 

1444 "studentExpectation": "Identify cell organelles", 

1445 "choices": [ 

1446 { "id": 0, "text": "Nucleus", "graph": "" }, 

1447 { "id": 1, "text": "Mitochondria", "graph": "" }, 

1448 { "id": 2, "text": "Ribosome", "graph": "" }, 

1449 { "id": 3, "text": "Golgi Apparatus", "graph": "" } 

1450 ], 

1451 "correctAnswer": { 

1452 "answers": [ 

1453 { "id": 1, "answer": "Mitochondria", "graph": "" } 

1454 ], 

1455 "answerDetails": "Mitochondria produce ATP via cellular respiration." 

1456 }, 

1457 "solutions": "Mitochondria generate ATP through oxidative phosphorylation.", 

1458 "releaseDate": "2025-02-01T00:00:00Z", 

1459 "category": "3", 

1460 "gradeLevel": 11, 

1461 "teksCode": "3", 

1462 "difficulty": "Average", 

1463 "points": 2, 

1464 "keywords": ["ACT", "biology", "cell structure"] 

1465 } 

1466 }, 

1467 "tsi_question_update": { 

1468 "summary": "Update TSI question", 

1469 "description": "Modify a TSI-style question", 

1470 "value": { 

1471 "assignmentType": "TSI", 

1472 "questionType": "Multiple-choice", 

1473 "questionSubject": "English", 

1474 "questionTopic": "Reading Comprehension", 

1475 "question": "What is the main idea of the passage?", 

1476 "questionDetails": "Choose the correct main idea.", 

1477 "questionImages": [], 

1478 "questionGraphs": [], 

1479 "studentExpectation": "Analyze main ideas in a text", 

1480 "choices": [ 

1481 { "id": 0, "text": "The passage explains the water cycle.", "graph": "" }, 

1482 { "id": 1, "text": "The passage discusses the effects of deforestation.", "graph": "" }, 

1483 { "id": 2, "text": "The passage describes an experiment on plant growth.", "graph": "" }, 

1484 { "id": 3, "text": "The passage tells a story about a scientist's career.", "graph": "" } 

1485 ], 

1486 "correctAnswer": { 

1487 "answers": [ 

1488 { "id": 1, "answer": "The passage discusses the effects of deforestation.", "graph": "" } 

1489 ], 

1490 "answerDetails": "The main idea summarizes the key argument of the passage." 

1491 }, 

1492 "solutions": "Identify the central argument of the passage.", 

1493 "releaseDate": "2025-02-01T00:00:00Z", 

1494 "category": "4", 

1495 "gradeLevel": 12, 

1496 "teksCode": "4", 

1497 "difficulty": "Advance", 

1498 "points": 3, 

1499 "keywords": ["TSI", "reading", "comprehension"] 

1500 } 

1501 } 

1502} 

1503 

1504account_payload = { 

1505 "admin_create_account": { 

1506 "summary": "Create staff or admin account details", 

1507 "description": "Create staff or admin account details", 

1508 "value": { 

1509 "first_name": "John", 

1510 "middle_name": "Dee", 

1511 "last_name": "Doe", 

1512 "role": "staff", 

1513 "email": "john_d_doe@gmail.com", 

1514 "password": "HeyyWorld123!", 

1515 "repeat_password": "HeyyWorld123!", 

1516 }, 

1517 }, 

1518} 

1519 

1520staff_payload = { 

1521 "first_name": "John", 

1522 "middle_name": "Dee", 

1523 "last_name": "Doe", 

1524 "role": "staff", 

1525 "profile_picture": "", 

1526 "organization": "", 

1527 "email": "john_d_doe@gmail.com", 

1528 "password": "HeyyWorld123!", 

1529 "repeat_password": "HeyyWorld123!", 

1530 } 

1531 

1532admin_payload = { 

1533 "first_name": "John", 

1534 "middle_name": "Dee", 

1535 "last_name": "Doe", 

1536 "role": "admin", 

1537 "profile_picture": "", 

1538 "organization": "", 

1539 "email": "username@erudition.com", 

1540 "password": "HeyyWorld123!", 

1541 "repeat_password": "HeyyWorld123!", 

1542 } 

1543 

1544 

1545updated_staff_payload = { 

1546 "first_name": "John", 

1547 "middle_name": "Dee", 

1548 "last_name": "Doe", 

1549 "role": "staff", 

1550 "profile_picture": "", 

1551 "organization": "", 

1552 "email": "john_d_doe@gmail.com", 

1553} 

1554 

1555updated_admin_payload = { 

1556 "first_name": "John", 

1557 "middle_name": "Dee", 

1558 "last_name": "Doe", 

1559 "role": "admin", 

1560 "profile_picture": "", 

1561 "organization": "", 

1562 "email": "john_d_doe@gmail.com", 

1563} 

1564 

1565student_create_payload = { 

1566 "first_name": "John", 

1567 "middle_name": "Dee", 

1568 "last_name": "Doe", 

1569 "role": "student", 

1570 "school": "Harvard University", 

1571 "email": "john_d_doe@gmail.com", 

1572 "password": "Student123!", 

1573 "repeat_password": "Student123!", 

1574 "contact_person": { 

1575 "first_name": "Jane", 

1576 "middle_name": "Dee", 

1577 "last_name": "Doe", 

1578 "relationship": "Mother", 

1579 "country": "Philippines", 

1580 "state": "Davao del Sur", 

1581 "city": "Davao City", 

1582 "street": "0123 Sample Street", 

1583 "zip_code": "123456", 

1584 "phone_number": "09123456765", 

1585 }, 

1586} 

1587 

1588user_payload = { 

1589 "create_student_account": { 

1590 "summary": "Create student account", 

1591 "description": "Create student account", 

1592 "value": { 

1593 "first_name": "John", 

1594 "middle_name": "Dee", 

1595 "last_name": "Doe", 

1596 "role": "student", 

1597 "school": "Harvard University", 

1598 "email": "john_d_doe@gmail.com", 

1599 "password": "HeyyWorld123!", 

1600 "repeat_password": "HeyyWorld123!", 

1601 "contact_person": { 

1602 "first_name": "Jane", 

1603 "middle_name": "Dee", 

1604 "last_name": "Doe", 

1605 "relationship": "Mother", 

1606 "country": "Philippines", 

1607 "state": "Davao del Sur", 

1608 "city": "Davao City", 

1609 "street": "", 

1610 "zip_code": "8000", 

1611 "phone_number": "09123456765", 

1612 }, 

1613 }, 

1614 }, 

1615 "create_teacher_account": { 

1616 "summary": "Create teacher account", 

1617 "description": "Create teacher account", 

1618 "value": { 

1619 "first_name": "John", 

1620 "middle_name": "Dee", 

1621 "last_name": "Doe", 

1622 "role": "teacher", 

1623 "school": "Harvard University", 

1624 "email": "john_d_doe@gmail.com", 

1625 "password": "HeyyWorld123!", 

1626 "repeat_password": "HeyyWorld123!", 

1627 }, 

1628 }, 

1629} 

1630 

1631teacher_payload = { 

1632 "first_name": "John", 

1633 "middle_name": "Dee", 

1634 "last_name": "Doe", 

1635 "role": "teacher", 

1636 "school": "Harvard University", 

1637 "email": "john_d_doe@gmail.com", 

1638 "password": "HeyyWorld123!", 

1639 "repeat_password": "HeyyWorld123!", 

1640} 

1641 

1642teacher_update_payload = { 

1643 "first_name": "John", 

1644 "middle_name": "Dee", 

1645 "last_name": "Doe" 

1646} 

1647 

1648class_payload = { 

1649 "create_new_class": { 

1650 "summary": "Create a new class", 

1651 "description": "Create a new class", 

1652 "value": { 

1653 "title": "Sample Title", 

1654 "description": "Sample description", 

1655 "section": "SEC-A", 

1656 "semester": "Fall", 

1657 "schedules": [ 

1658 { 

1659 "day": "Monday", 

1660 "time_start": "8:00 am", 

1661 "time_end": "5:00 pm", 

1662 } 

1663 ], 

1664 }, 

1665 }, 

1666} 

1667