General developer forum

How to get assignment details

 
Picture of Zadok Lindt
How to get assignment details
 

I can see it is possible to get details of an assignment for the authenticated user, i.e.:

https://test/moodle/webservice/rest/server.php?wstoken=test&wsfunction=mod_assign_get_assignments&moodlewsrestformat=json

How do I get details of a specific assignment (i.e. by module or instance id?) Is it possible? I can see we can get basic details, i.e:


https://test/moodle/webservice/rest/server.php?wstoken=test&wsfunction=core_course_get_course_module&moodlewsrestformat=json&cmid=928

But it doesn't include important/useful details such as "Due Date", etc...

 
Average of ratings: -