Save answer POST request #67
Labels
backend
GHC2020 Project
good first issue
Good for newcomers
GraceHopperOSD
Reserved for GHC Open Source Day!
Hacktoberfest
Priority 2
Priority 1 issues must be finished before picking these up.
This depends on #72 so work on that first if you're interested and it isn't already assigned.
Add a new
POST
endpoint for the route:/user/answers/question/{questionNumber}
In the body of the request, include the necessary attributes (see #72) to save.
(Until auth is implemented, you can use
guest
as the user_id. Just make sure the record exists so the foreign key constraint isn't violated.)In the main.js browser JavaScript, please submit an AJAX request (using
fetch
) to the above endpoint for any correct answer from the user. We can ignore incorrect answers for now.This data will be retrieved in #96 if you're interested in working on that part.
The text was updated successfully, but these errors were encountered: