GET ./teste/question
Returns the next question with the answer options for a particular test.
Optionally you can also set the questionID.
The parameter questionID (int) - The ID of the question in the database. In the case of the Self-Knowledge test, when the start test is done, the questions are shuffled, for this reason we also have the variable 'questionPosition'.
The parameter questionPosition (int) - Represents the position of the question in the given test.
If the endpoint is called again after the last question, it will return {date: []}
Which means there's no question after that.
GET parameters
Name | Value Type | Validation | Details |
---|---|---|---|
testID | int | Required | Test ID. |
testRunID | int | Required | Profile ID generated after a test. |
questionID | int | Optional | Question ID. Used only if you want to check whether or not a specific question has been answered. |