NOTE. . This answer is for Sakai 10. If you have an older version, you will need to add some new features manually that were added to the Keitai project ( https://jira.sakaiproject.org/browse/SAK-23358 ).
Using Sakai 10.x Night Server:
http:
And a site with the following id:
61a1ebbd-e507-4ca3-8f88-65abca0803d9
This URL will receive a list of tasks in the course:
http://nightly2.sakaiproject.org:8081/direct/assignment/site/61a1ebbd-e507-4ca3-8f88-65abca0803d9.json
(which returns JSON as shown below)
{"entityPrefix": "assignment", "assignment_collection": [ { "access": { }, "attachments": [], "authorLastModified": "admin", "authors": [], "closeTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "closeTimeString": "Jun 11, 2014 5:00 pm", "content": null, "contentReference": "\/assignment\/c\/61a1ebbd-e507-4ca3-8f88-65abca0803d9\/1fd9f025-2974-48d1-bcb5-ef47c4e89a30", "context": "61a1ebbd-e507-4ca3-8f88-65abca0803d9", "creator": "admin", "dropDeadTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "dropDeadTimeString": "Jun 11, 2014 5:00 pm", "dueTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "dueTimeString": "Jun 11, 2014 5:00 pm", "groups": [], "id": "8d96871c-8dcb-4963-b74a-f478dee53142", "instructions": "<p>This is an assignment<\/p>", "openTime": { "display": "Jun 4, 2014 12:00 pm", "time": 1401897600000 }, "openTimeString": "Jun 4, 2014 12:00 pm", "position_order": 0, "section": "", "status": "Open", "timeCreated": { "display": "Jun 4, 2014 11:30 pm", "time": 1401939011264 }, "timeLastModified": { "display": "Jun 4, 2014 11:30 pm", "time": 1401939011286 }, "title": "AZ assignment", "draft": false, "entityReference": "\/assignment\/8d96871c-8dcb-4963-b74a-f478dee53142", "entityURL": "http:\/\/nightly2.sakaiproject.org:8081\/direct\/assignment\/8d96871c-8dcb-4963-b74a-f478dee53142", "entityId": "8d96871c-8dcb-4963-b74a-f478dee53142", "entityTitle": "AZ assignment" } ]}
From this, you can find the destination identifier in the list (which can also be obtained in other ways), and then return the data of the same destination like this:
http://nightly2.sakaiproject.org:8081/direct/assignment/item/8d96871c-8dcb-4963-b74a-f478dee53142.json
(which returns JSON as shown below)
{ "access": { }, "attachments": [], "authorLastModified": "admin", "authors": [], "closeTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "closeTimeString": "Jun 11, 2014 5:00 pm", "content": null, "contentReference": "\/assignment\/c\/61a1ebbd-e507-4ca3-8f88-65abca0803d9\/1fd9f025-2974-48d1-bcb5-ef47c4e89a30", "context": "61a1ebbd-e507-4ca3-8f88-65abca0803d9", "creator": "admin", "dropDeadTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "dropDeadTimeString": "Jun 11, 2014 5:00 pm", "dueTime": { "display": "Jun 11, 2014 5:00 pm", "time": 1402520400000 }, "dueTimeString": "Jun 11, 2014 5:00 pm", "groups": [], "id": "8d96871c-8dcb-4963-b74a-f478dee53142", "instructions": "<p>This is an assignment<\/p>", "openTime": { "display": "Jun 4, 2014 12:00 pm", "time": 1401897600000 }, "openTimeString": "Jun 4, 2014 12:00 pm", "position_order": 0, "section": "", "status": "Open", "timeCreated": { "display": "Jun 4, 2014 11:30 pm", "time": 1401939011264 }, "timeLastModified": { "display": "Jun 4, 2014 11:30 pm", "time": 1401939011286 }, "title": "AZ assignment", "draft": false, "entityReference": "\/assignment\/8d96871c-8dcb-4963-b74a-f478dee53142", "entityURL": "http:\/\/nightly2.sakaiproject.org:8081\/direct\/assignment\/8d96871c-8dcb-4963-b74a-f478dee53142", "entityId": "8d96871c-8dcb-4963-b74a-f478dee53142", "entityTitle": "AZ assignment" }