GET question/…
Returns the next question for the specified drill or collection of drills.
Resource URL
https://www.drillster.com/api/2/question/{drill_id}
or
https://www.drillster.com/api/2/question
When practicing a single drill, the drill ID can be specified in the path of the URL. When practicing multiple drills, the drill IDs must be specified as parameters.
Parameters
Field | Description |
---|---|
drill optional, repeatable |
Unique identifier of the drill to be practiced. To practice multiple drills combined, the drill parameter can be specified multiple times. If practicing a single drill, and the drill code is specified in the path of the REST URL, this parameter can be omitted.Example value: 5YiBVXMMkIB6FmcLssQ74Q |
Response
A 2.0 QuestionResponse object.
Example request
GET https://www.drillster.com/api/2/question/5YiBVXMMkIB6FmcLssQ74Q
or
GET https://www.drillster.com/api/2/question?drill=5YiBVXMMkIB6FmcLssQ74Q&drill=RZWbCW--Qa2fjV-NLlF5wg
Response
{
"question": {
"reference": "pepKDyrLR760Dk7XqxODrw",
"sequenceNr": 314,
"ask": {
"name": "Capital",
"term": {
"value": "Tripoli"
}
},
"tell": {
"name": "Country",
"composition": "SINGLE",
"type": "MULTIPLE_CHOICE",
"terms": [{
"value": "Comoros"
}, {
"value": "Trinidad and Tobago"
}, {
"value": "Libya"
}, {
"value": "Vietnam"
}]
}
},
"notifications" : [ ]
}