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

Add infrastructure for questions #78

Merged
merged 5 commits into from
Aug 4, 2023
Merged

Conversation

Carifio24
Copy link
Member

This PR creates a model for the newly-added Questions table, which contains information about the questions that we ask throughout each story. Additionally, this adds two new endpoints to the server:

  • GET /question/:tag - returns the information about the question with the given tag (if it exists). Specifying a version query parameter gets information for that particular version. Otherwise, the most recent version (if one exists) is used
  • POST /question/:tag - creates a new version of this question (version 1 if it didn't previously exist) using the information in the request body. Follows the scheme outlined in Create system for parsing question text to populate educator dashboard cosmicds#260 (comment)

@Carifio24 Carifio24 merged commit 7dee3e7 into cosmicds:main Aug 4, 2023
1 check passed
@Carifio24 Carifio24 deleted the questions branch October 16, 2024 04:39
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