Base question

Schema

Examples

With hints

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "hints": [
    {
      "id": "1",
      "value": "Lorem"
    },
    {
      "id": "2",
      "value": "Ipsum"
    }
  ]
}

With metadata

{
  "id": "1",
  "type": "application/x.type+json",
  "content": "this is the content of the question",
  "meta": {
    "authors": [
      {
        "name": "John Doe",
        "status": "Tutor"
      }
    ],
    "license": "CC",
    "created": "2014-06-23",
    "category": {
      "id": "1",
      "name": "Category A"
    }
  },
  "title": "Question ?"
}

With object

{
  "id": "1",
  "type": "application/x.type+json",
  "content": "this is the content of the question",
  "objects": [
    {
      "id": "1",
      "type": "text/html",
      "data": "<p>Lorem ipsum dolor sit amet</p>",
      "meta": {
        "title": "Lorem sample"
      }
    }
  ],
  "title": "Is the previous text written in english ?"
}

With resource

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "resources": [
    {
      "id": "1",
      "type": "application/pdf", 
      "url": "http://domain.com/syllabus.txt"
    }
  ]
}

With fixed score

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "score": {
    "type": "fixed",
    "success": 5,
    "failure": -1.5
  }
}

With sum score

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "score": {
    "type": "sum"
  }
}

Global feedback

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "feedback": "Lorem ipsum dolor sit amet"
}

With more info

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question",
  "description": "Lorem ipsum dolor sit amet"
}

With title

{
  "id": "1",
  "type": "application/x.type+json",
  "title": "Question ?",
  "content": "this is the content of the question"
}