{ "verb": { "id": "http://bao.mijnklas.nl/xapi/verbs/audio", "display": { "nl-NL": "Audio" } }, "object": { "id": "http://bao.mijnklas.nl/xapi/activities/audio-request", "objectType": "Activity", "definition": { "extensions": { "http://bao.mijnklas.nl/xapi/extensions/uniqueId": "[UniqueIdentifierOfTheAudio]" /* [UniqueIdentifierOfTheAudio] is an example, this should be a unique Id used to retrieve the audio-file. */ } } } }Response:
{ "verb": { "id": "http://bao.mijnklas.nl/xapi/verbs/audio" }, "result": { "duration": "PT13S", "extensions": { "uniqueId": "[UniqueIdentifierOfTheAudio]", /* [UniqueIdentifierOfTheAudio] is an example, this should be a unique Id used to find the audio-file, and should be the same as the one in the request. */ "objectType": "audio", "mimeType": "audio/mpeg", "audio": { "url": "[http://example.org/media/speach/123.mp3]" /* [http://example.org/media/speach/123.mp3] is an example url. */ } } } }
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