Download OpenAPI specification:Download
API to handle a QCM between teachers and students.
data
| role | string Enum: "TEACHER" "STUDENT" "ADMIN" |
| username | string |
The JWT
Created
The credentials supplied aren't correct
Unauthorized
Forbidden
Not Found
| id required | integer <int32> id |
| name | string |
newQcm
| id | integer <int32> |
| name | string |
| questions | Array of objects (Question) |
| state | string Enum: "COMPLETE" "INCOMPLETE" "STARTED" "FINISHED" |
Successfully updated qcm
Created
The qcm is malformed
Unauthorized
You are not the owner of this qcm
The qcm you were trying to reach is not found
| id required | integer <int32> id |
| name | string |
Successfully returned the current question
Unauthorized
You are not authenticated
The qcm you were trying to reach is not found
| id required | integer <int32> id |
| name | string |
Successfully view the result
Unauthorized
You are not authenticated
The qcm you were trying to reach is not found
| id required | integer <int32> id |
| name | string |
Successfully retrieved result
Unauthorized
You are not authenticated or you are a teacher
Question with given id not found
| name | string |
cIds
| ids | Array of integers <int32> |
Successfully posted the response
Created
The user has already responded for a given question
Unauthorized
You are not a student
A choice hasn't been found