To group Events or Objective Student Assessments together, it is possible to declare Learning Sessions. A Learning Session has a starting and an ending time, and the Events or Objective Student Assessments which are dated between these limits are parts of this learning session.
With ID provided
{
"id": 1,
"student_id": 4,
"uid": "LS4"
"payload": {},
"starting_time": "2019-05-20T14:43:31.000Z",
"ending_time": "2019-05-20T14:45:31.000Z",
"created_at": "2019-05-20T12:44:02.246Z",
"updated_at": "2019-05-20T12:44:02.246Z"
}
Without ID provided
[
{
"id": 1,
"student_id": 4,
"uid": "LS1"
"payload": {},
"starting_time": "2018-05-20T14:43:31.000Z",
"ending_time": "2018-05-20T14:45:31.000Z",
"created_at": "2019-05-20T12:44:02.246Z",
"updated_at": "2019-05-20T12:44:02.246Z"
},
{
"id": 2,
"student_id": 4,
"uid": "LS2"
"payload": {},
"starting_time": "2019-05-20T14:43:31.000Z",
"ending_time": "2019-05-20T14:45:31.000Z",
"created_at": "2019-05-20T12:55:46.394Z",
"updated_at": "2019-05-20T12:55:46.394Z"
}
]
{
"learning_session": {
"id": 4,
"uid": "LS4",
"student_id": 4,
"starting_time": "2019-05-20T14:43:31.000Z",
"ending_time": "2019-05-20T14:45:31.000Z",
"payload": null,
"created_at": "2019-05-23T09:25:05.529Z",
"updated_at": "2019-05-23T15:29:36.501Z"
},
"advices": [
{
"type": "good_usual",
"specific_advices": [
{
"objective_student_assessment": {
"id": 3,
"objective_student_id": 7,
"mark": 100,
"success_threshold": null,
"knowledge_node_update": true,
"created_at": "2019-05-23T12:31:03.613Z",
"updated_at": "2019-05-23T12:31:03.613Z",
"payload": null,
"start_date": "2019-05-20T14:44:31.000Z",
"end_date": "2019-05-20T14:45:22.000Z"
},
"content": {
"id": 13,
"uid": "C2",
"type": "Read",
"name": null,
"content_url": null,
"format": null,
"created_at": "2019-04-29T11:48:00.008Z",
"updated_at": "2019-04-29T11:48:00.008Z"
}
},
{
"objective_student_assessment": {
"id": 3,
"objective_student_id": 7,
"mark": 100,
"success_threshold": null,
"knowledge_node_update": true,
"created_at": "2019-05-23T12:31:03.613Z",
"updated_at": "2019-05-23T12:31:03.613Z",
"payload": null,
"start_date": "2019-05-20T14:44:31.000Z",
"end_date": "2019-05-20T14:45:22.000Z"
},
"content": {
"id": 15,
"uid": "C3",
"type": "Read",
"name": null,
"content_url": null,
"format": null,
"created_at": "2019-04-29T11:51:14.814Z",
"updated_at": "2019-04-29T11:51:14.814Z"
}
}
]
},
{
"type": "good_unusual",
"specific_advices": [
{
"objective_student_assessment": {
"id": 3,
"objective_student_id": 7,
"mark": 100,
"success_threshold": null,
"knowledge_node_update": true,
"created_at": "2019-05-23T12:31:03.613Z",
"updated_at": "2019-05-23T12:31:03.613Z",
"payload": null,
"start_date": "2019-05-20T14:44:31.000Z",
"end_date": "2019-05-20T14:45:22.000Z"
},
"content": {
"id": 13,
"uid": "C2",
"type": "Read",
"name": null,
"content_url": null,
"format": null,
"created_at": "2019-04-29T11:48:00.008Z",
"updated_at": "2019-04-29T11:48:00.008Z"
}
}
]
},
{
"type": "bad_usual",
"specific_advices": [
{
"objective_student_assessment": {
"id": 3,
"objective_student_id": 7,
"mark": 100,
"success_threshold": null,
"knowledge_node_update": true,
"created_at": "2019-05-23T12:31:03.613Z",
"updated_at": "2019-05-23T12:31:03.613Z",
"payload": null,
"start_date": "2019-05-20T14:44:31.000Z",
"end_date": "2019-05-20T14:45:22.000Z"
},
"content": {
"id": 13,
"uid": "C2",
"type": "Read",
"name": null,
"content_url": null,
"format": null,
"created_at": "2019-04-29T11:48:00.008Z",
"updated_at": "2019-04-29T11:48:00.008Z"
}
}
]
},
{
"type": "bad_unusual",
"specific_advices": [
{
"objective_student_assessment": {
"id": 3,
"objective_student_id": 7,
"mark": 100,
"success_threshold": null,
"knowledge_node_update": true,
"created_at": "2019-05-23T12:31:03.613Z",
"updated_at": "2019-05-23T12:31:03.613Z",
"payload": null,
"start_date": "2019-05-20T14:44:31.000Z",
"end_date": "2019-05-20T14:45:22.000Z"
},
"content": {
"id": 12,
"uid": "C1",
"type": "Evaluation",
"name": null,
"content_url": null,
"format": null,
"created_at": "2019-04-29T11:47:41.695Z",
"updated_at": "2019-04-29T11:47:41.919Z"
}
}
]
}
]
}