Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
Table of Drag and Drop actions:
Action | Description | Screenshot |
---|
Drag and Drop | Click to the Drag and Drop item:
Event: publish_event is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.item.picked_up","item_id":0} Response: {"result": "success"}
| |
| Click and move item to the Drag and Drop zone:
1. Event: publish_event is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.item.picked_up","item_id":0} Response: {"result": "success"}
2. Event: drop_item is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/drop_item Request Method: POST Payload: (Form Data)
{"val":0,"zone":"top"} Response:
{
"correct": true,
"grade": 0.4,
"finished": false,
"overall_feedback": [
{
"message": "Drag the items onto the image above.",
"message_class": "initial"
}
],
"feedback": [
{
"message": "Correct! This one belongs to The Top Zone.",
"message_class": null
}
]
}
3. Event: publish_event is sent.
Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.feedback.opened","content":"Correct! This one belongs to The Top Zone.","truncated":false} Response: {"result": "success"}
| |
| Close Drag and Drop feedback message: Event: publish_event is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.feedback.closed","content":"Correct! This one belongs to The Bottom Zone.","manually":true,"truncated":false} Response: {"result": "success"}
| Close feedback message. |
| Incorrect answer:
1. Event: publish_event is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.item.picked_up","item_id":4} Response: {"result": "success"} 2. Event: drop_item is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/drop_item Request Method: POST Payload: (Form Data)
{"val":4,"zone":"middle"} Response:
{
"correct": false,
"grade": 0.6,
"finished": false,
"overall_feedback": [
{
"message": "Drag the items onto the image above.",
"message_class": "initial"
}
],
"feedback": [
{
"message": "You silly, there are no zones for this one.",
"message_class": null
}
]
}
3. Event: publish_event is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/publish_event Request Method: POST Payload: (Form Data)
{"event_type":"edx.drag_and_drop_v2.feedback.opened","content":"You silly, there are no zones for this one.","truncated":false} Response: {"result": "success"}
| Incorrect answer. |
| Reset: Event: reset is sent. Request URL:
http://local.overhang.io:8000/courses/course-v1:d+d+d/xblock/block-v1:d+d+d+type@drag-and-drop-v2+block@92cea1db16524b0baad9edb5f7e773dc/handler/reset Request Method: POST Payload: (Form Data)
{} Response:
{
"items": {},
"finished": false,
"attempts": 0,
"grade": 1.0,
"overall_feedback": [
{
"message": "Drag the items onto the image above.",
"message_class": "initial"
}
]
}
| |
| Keyboard Help. Don’t need requests and responses from server.
| |