{ "verb": { "id": "http://bao.mijnklas.nl/xapi/verbs/context", "display": { "nl-NL": "Context" } }, "object": { "id": "http://bao.mijnklas.nl/xapi/activities/get-context-request", "objectType": "Activity" } }Response:
Due to legacy content, the first and the second key-value pair should always be:{ "name": "user.role", "value": "teacher" }, { "name": "content.mode", "value": "edit" }
{ "verb": { "id": "http://bao.mijnklas.nl/xapi/verbs/context", "display": { "nl-NL": "Context" } }, "object":{ "id":"http://bao.mijnklas.nl/xapi/activities/get-context-response", "objectType":"Activity" }, "result": { "duration": "PT3S", "extensions": { "http://bao.mijnklas.nl/xapi/extensions/objectType": "http://bao.mijnklas.nl/xapi/extensions/jsonArray", "http://bao.mijnklas.nl/xapi/extensions/jsonArray": [ { "name": "user.role", "value": "teacher" }, { "name": "content.mode", "value": "edit" } { "name": "user.name", "value": "Anita" }, { "name": "groupName", "value": "nederland" }, { "name": "totalUserEarnedRobbies", "value": "5" }, { "name": "backgroundspread.isFirst", "value": "true" /* for navigation through the background spreads, used within the digilino platform*/ }, { "name": "backgroundspread.isLast", "value": "false" /* for navigation through the background spreads, used within the digilino platform*/ } ] } } }
Different colors in the JSON Representation give special meaning to that part of the json.
Optional: May be added for clarity. Bao xApi ignores it if present.
Removed: Bao xApi has no use for it but TinCan Api requests/requires it. Bao xApi ignores it if present.
Comment: Comment for clarification of the property. This should not be present in the json representation