Who:As a developer
What:I want to be able to create a new ANSWER associated to a specific QUESTION using a POST endpoint
Why:so that we can add a ANSWER to the APP.
Implementation details
Create the POST endpoint api/answers and using question id as a parameter so that we are sure that we know for what question the answer is.
User story
Who: As a developer What: I want to be able to create a new ANSWER associated to a specific QUESTION using a POST endpoint Why: so that we can add a ANSWER to the APP.
Implementation details
api/answers
and usingquestion id
as a parameter so that we are sure that we know for what question the answer is.Look at the database diagram for details on what fields to add -> https://github.com/HackYourFuture-CPH/Guide-IT#%EF%B8%8F-database-model-diagram
Check the README file here https://github.com/HackYourFuture-CPH/guide-it#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/