Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding answers to questions #82

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Conversation

Carifio24
Copy link
Member

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.

@Carifio24 Carifio24 merged commit 29e4b9c into cosmicds:main Aug 10, 2023
1 check passed
@Carifio24 Carifio24 deleted the answers branch August 18, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant