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

Save answer POST request #67

Closed
alodahl opened this issue Sep 13, 2020 · 3 comments · Fixed by #116
Closed

Save answer POST request #67

alodahl opened this issue Sep 13, 2020 · 3 comments · Fixed by #116
Assignees
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.

Comments

@alodahl
Copy link
Collaborator

alodahl commented Sep 13, 2020

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.

@alodahl alodahl added backend GHC2020 Project GraceHopperOSD Reserved for GHC Open Source Day! Priority 2 Priority 1 issues must be finished before picking these up. labels Sep 13, 2020
@alodahl alodahl added the good first issue Good for newcomers label Sep 13, 2020
@vegetabill vegetabill changed the title First POST request Save answer POST request Oct 1, 2020
@josselineperdomo
Copy link
Collaborator

I would like to choose this issue.

@vegetabill
Copy link
Collaborator

@josselineperdomo I've assigned you so you can get started but keep in mind to get this fully working, you'll need #72 to be merged so just keep that in mind 😃

@josselineperdomo
Copy link
Collaborator

I saw that the #72 was merged so I am finishing this issue, I am going create the PR soon :)

Open-source issue board - Keyboard Shortcuts on mac automation moved this from In progress to Done Oct 1, 2020
vegetabill added a commit that referenced this issue Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Development

Successfully merging a pull request may close this issue.

3 participants