This PR updates the question model and associated POST endpoint to allow specifying answers to questions (for multiple choices). The new fields that one can specify in the POST request have the following structure:
answers_text: string[]
correct_answers: number[]
neutral_answers: number[]
For a free response question these should be omitted from the request body; they will automatically be set to NULL in the database.
@johnarban Let me know if you have any questions/issues/etc when using this for the questions analysis.
This PR updates the question model and associated
POST
endpoint to allow specifying answers to questions (for multiple choices). The new fields that one can specify in thePOST
request have the following structure:answers_text: string[]
correct_answers: number[]
neutral_answers: number[]
For a free response question these should be omitted from the request body; they will automatically be set to
NULL
in the database.@johnarban Let me know if you have any questions/issues/etc when using this for the questions analysis.