clemsonMakerspace / unified-makerspace

The Makerspace - now unified.
Apache License 2.0
9 stars 11 forks source link

Add post quiz request to lambda QuizFunction #140

Closed lrboyer closed 9 months ago

lrboyer commented 10 months ago

Adds business logic to quiz lambda for handling a POST request.

Steps for adding quiz info to db:

  1. Check if quiz_id exist in quiz_list
    • if not -> add quiz_id to quiz_list
  2. Format incoming data for db
  3. Insert quiz_info into quiz_progress_table

"last_updated" will be included in test request as a TTL for the data. This way test request expire from the quiz_list and quiz_progress table.