- Receive a PUT request on route /api/surveys/{surveyId}/results
- Validate if request was made by an user authenticated
- Validate if the parameter survey_id is present
- Validate if the field answer is valid
- Creates a new register of the answer
- Updates the answer if the user have already answered
- Returns 200 with the data created
- Returns 404 if route does not exist
- Returns 403 if user is not registered
- Returns 403 if the parameter survey_id is invalid
- Returns 403 if the answer is invalid
- Returns 500 if error occurs while creating or updating the new survey result
- Returns 500 if error occurs while loading the survey