[PRBE-27] 퀴즈 관련 API 추가 #12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎟️ 관련 Jira 이슈
Resolves #PRBE-27
👩💻 구현 내용
💭 고려한 점
현재 퀴즈 후 바로 정답을 보여주는 방식이기에, 정답을 첫 요청에 함께 전달합니다.
그렇지 않고는 정답을 한번씩 요청해야 하기에 이는 되레 더 비효율적이라고 판단했기 때문입니다.
하지만, 정답률 처리가 필요하기에 추후에 정답과 퀴즈 id에 대해서는 리스트로 받아 한번에 정답률 처리를 진행합니다.
해당 부분은 프론트가 마지막에 한번에 처리가 가능하도록 리스트 개수에는 제한을 두지 않았습니다.
따라서 퀴즈를 10개 보게 되는 상황이 온다면, 정답률의 경우는 한번에 10개 처리할 수 있도록 설정하여 11번의 응답이 아닌 2번의 응답으로도 진행이 가능할 수 있도록 처리하였습니다.
추후에 본인이 푼 부분도 바로 정답률에 포함되도록 하려면 어떻게 해야할지에 대한 부분을 확인해 수정할 예정입니ㅏㄷ.