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

Exam get endpoints shows correct answer for questions #286

Open
JeronimoMendes opened this issue Sep 15, 2022 · 0 comments
Open

Exam get endpoints shows correct answer for questions #286

JeronimoMendes opened this issue Sep 15, 2022 · 0 comments
Labels

Comments

@JeronimoMendes
Copy link
Member

Describe the error
When generating an exam, the response comes with all the questions, and each question comes with the possible answers, inside the answers there's a boolean field telling if the answer is correct or wrong

To Reproduce
Generate an exam and check the network tab on dev tools

Additional context
Example of the response

{
    "id": ...,
    "questions": [
        {
           ...
            "answer": [
                {
                    "id": 25,
                    "text": "910",
                    "correct": true
                },
                {
                    "id": 26,
                    "text": "455",
                    "correct": false
                },
                {
                    "id": 27,
                    "text": "700",
                    "correct": false
                },
                {
                    "id": 28,
                    "text": "210",
                    "correct": false
                }
            ],
           ...
        },
        {
           ...
            "answer": [
                {
                    "id": 45,
                    "text": "As abcissas dos pontos $A$ e $B$ são respetivamente $\\frac{2}{3}$ e  $\\frac{-1}{3}$.",
                    "correct": true
                },
                {
                    "id": 46,
                    "text": "As abcissas dos pontos $A$ e $B$ são respetivamente $0$ e  $\\frac{-1}{3}$.",
                    "correct": false
                },
                {
                    "id": 47,
                    "text": "As abcissas dos pontos $A$ e $B$ são respetivamente $\\frac{-1}{3}$ e  $\\frac{2}{3}$.",
                    "correct": false
                },
                {
                    "id": 48,
                    "text": "As abcissas dos pontos $A$ e $B$ são respetivamente $\\frac{1}{3}$ e  $\\frac{-1}{3}$.",
                    "correct": false
                }
            ],
           ...
        },
       ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant