Set question

Schema

Examples

Basic

{
  "id": "1",
  "type": "application/x.set+json",
  "content": "Question ?",
  "penalty": 1,
  "random": false,
  "sets": [
    {
      "id": "2",
      "type": "text/html",
      "data": "Set A"
    },
    {
      "id": "3",
      "type": "text/html",
      "data": "Set B"
    }
  ],
  "items": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item X"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item Y"
    },
    {
      "id": "6",
      "type": "text/plain",
      "data": "Item Z"
    }
  ]
}

With solutions

{
  "id": "1",
  "type": "application/x.set+json",
  "content": "Question ?",
  "penalty": 1,
  "random": false,
  "sets": [
    {
      "id": "2",
      "type": "text/html",
      "data": "Set A"
    },
    {
      "id": "3",
      "type": "text/html",
      "data": "Set B"
    }
  ],
  "items": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item X"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item Y"
    },
    {
      "id": "6",
      "type": "text/plain",
      "data": "Item Z"
    }
  ],
  "solutions": {
    "associations": [
      {
        "setId": "2",
        "itemId": "4",
        "score": 3
      },
      {
        "setId": "3",
        "itemId": "5",
        "score": 0.5
      }
    ]
  }
}

With feedback

{
  "id": "1",
  "type": "application/x.set+json",
  "content": "Question ?",
  "penalty": 1,
  "random": false,
  "sets": [
    {
      "id": "2",
      "type": "text/html",
      "data": "Set A"
    },
    {
      "id": "3",
      "type": "text/html",
      "data": "Set B"
    }
  ],
  "items": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item X"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item Y"
    },
    {
      "id": "6",
      "type": "text/plain",
      "data": "Item Z"
    }
  ],
  "solutions": {
    "associations": [
      {
        "setId": "2",
        "itemId": "4",
        "score": 3,
        "feedback": "Lorem ipsum"
      },
      {
        "setId": "3",
        "itemId": "5",
        "score": 0.5,
        "feedback": "Lorem ipsum"
      }
    ]
  }


}

With odds

{
  "id": "1",
  "type": "application/x.set+json",
  "content": "Question ?",
  "penalty": 1,
  "random": false,
  "sets": [
    {
      "id": "2",
      "type": "text/html",
      "data": "Set A"
    },
    {
      "id": "3",
      "type": "text/html",
      "data": "Set B"
    }
  ],
  "items": [
    {
      "id": "3",
      "type": "text/plain",
      "data": "Item W"
    },
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item X"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item Y"
    },
    {
      "id": "6",
      "type": "text/plain",
      "data": "Item Z"
    }
  ],
  "solutions": {
    "associations": [
      {
        "setId": "2",
        "itemId": "4",
        "score": 3,
        "feedback": "Lorem ipsum"
      },
      {
        "setId": "3",
        "itemId": "5",
        "score": 0.5,
        "feedback": "Lorem ipsum"
      }
    ],
    "odd": [
      {
        "itemId": "3",
        "score": -1,
        "feedback": "Dolor sit amet"
      }
    ]
  }
}