GET question
GET 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 Example value: |
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" : [ ]
}