2.0 Term object

A term represents a single drill question or answer component.

Example

{
  "value": "Scientific researched showed that people achieve much higher marks if they prepare their test or exam with Drillster. How much higher will your test results be if you learn with Drillster?",
  "markup": [ {
    "type": "linebreak",
    "offset": 118,
    "length": 0
  }, {
    "type": "linebreak",
    "offset": 0,
    "length": 0
  } ]
}

Fields

Field Type Description
value
required
String The question value. In case of a text question, this is the question itself, e.g. “What is the capital of Denmark?”. But for other types of questions, such as images or audio, it is the value that uniquely identifies the question within Drillster, e.g. "c15a93396851402488bdde261472f7003f96ca10". In this case, the value should not be presented to the user, but the media object (described next) should be used to obtain the non-text contents.

Example values: What is the capital of Denmark? (for content type text/plain), or c15a93396851402488bdde261472f7003f96ca10 (for other content types).
markup
optional
List of 2.0 Markup objects An array of markup objects that are to be applied to the text value. In case of no markup, the array may be empty.
media
optional
2.0 Media object For regular text questions, no media is specified. For other other content types (e.g. image or audio), the media object contains all relevant data to either retrieve the media, or to display it.