Paper

Schema

Examples

Minimal

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ]
}

Full

{
  "id": "123",
  "user": {
    "name": "John Doe"
  },
  "startDate": "2016-12-13T12:00:00",
  "endDate": "2016-12-13T14:00:00",
  "finished": true,
  "score": 14,
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ],
  "answers": [
    {
      "id": "123",
      "questionId": "1",
      "type": "application/x.open+json",
      "data": "Lorem ipsum"
    },
    {
      "id": "1234",
      "questionId": "2",
      "type": "application/x.choice+json",
      "data": ["1", "2"]
    }
  ]
}

With user

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "user": {
    "name": "John Doe"
  },
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ]
}

With end date

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "endDate": "2016-12-13T14:00:00",
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ]
}

With score

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "score": 14,
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ]
}

With finished

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "endDate": "2016-12-13T14:00:00",
  "finished": true,
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ]
}

With answers

{
  "id": "123",
  "startDate": "2016-12-13T12:00:00",
  "structure": [
    {
      "id": "1",
      "items": ["1", "2"]
    }
  ],
  "answers": [
    {
      "id": "123",
      "questionId": "1",
      "type": "application/x.open+json",
      "data": "Lorem ipsum"
    },
    {
      "id": "1234",
      "questionId": "2",
      "type": "application/x.choice+json",
      "data": ["1", "2"]
    }
  ]
}