There should be an endpoint to run the grading script of the students and return the result of the report. The grade will automatically be inserted to the Database. Them a report is returned to the frontend holding the grading info. This grading endpoint can take a specific task or multiple tasks. Specific tasks resemble correcting for only 1 student and getting his/her grade. Multiple tasks (Unspecific) runs the grading endpoint will grade all students assigned to that task. For specific grading, the plagiarism must also be returned, thus, checking against all students is required in both ways.
1) Decide if it is grading a specific student or all students.
2) Grade the student and check for plagiarism
3) Insert the grade to the database (We will have an endpoint to update the grades later if the demonstrator thinks that the grading was not fair).
4) Return the results to the frontend.
There should be an endpoint to run the grading script of the students and return the result of the report. The grade will automatically be inserted to the Database. Them a report is returned to the frontend holding the grading info. This grading endpoint can take a specific task or multiple tasks. Specific tasks resemble correcting for only 1 student and getting his/her grade. Multiple tasks (Unspecific) runs the grading endpoint will grade all students assigned to that task. For specific grading, the plagiarism must also be returned, thus, checking against all students is required in both ways.
1) Decide if it is grading a specific student or all students. 2) Grade the student and check for plagiarism 3) Insert the grade to the database (We will have an endpoint to update the grades later if the demonstrator thinks that the grading was not fair). 4) Return the results to the frontend.