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
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 aversion
query parameter gets information for that particular version. Otherwise, the most recent version (if one exists) is usedPOST /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 https://github.com/cosmicds/cosmicds/issues/260#issue-1837216528