In the documentation of the REST Api a call to the sharedfolder of a course can be found:
But this call returns nothing. So I added a new function which returns links to the files and folders of this sharedfolder. This implies having to build a new SharedFolderWebService. The attached patch contains this new class and the code which builds the links to the contents of the sharedfolder in CourseResourceFolderWebService.