Submit Exercise Answers
POST /api/trainee/submitExercise
Request
| Header | Type | Description | 
| Authorization | string | Required. Bearer token to authenticate the trainee. | 
| Query | Type | Description | 
| courseId | string | Required. The course which the exercise belongs to. | 
| exerciseNum | string | Required. The number of the exercise the trainee is solving. | 
| Body | Type | Description | 
| traineeChoices | array | Required. An array containing the choice the trainee made for each question. | 
Get Trainee’s Answers in an Excersise.
GET /api/trainee/getAnswers
Request
| Header | Type | Description | 
| Authorization | string | Required. Bearer token to authenticate the trainee. | 
| Query | Type | Description | 
| courseId | string | Required. The course which the exercise belongs to. | 
| exerciseNum | string | Required. The exercise number. | 
Response
| Response | Type | Description | 
| grade | number | The grade the trainee scored in this exercise. | 
| choices | array | The list of the answers the trainee chose. | 
Response Example:-
{
    "grade": 0.5,
    "choices": [1,2,3,....]
}
Rate Course
POST /api/trainee/rateCourse/${courseId}
Request
| Header | Type | Description | 
| Authorization | string | Required. Bearer token to authenticate the trainee. |