Hi,
I am developing a web application that can list and download all files related to a course. I am using the RESTful Web Service API and I am able to retrieve all course files, but I am unable to find the url or navigate inside the assignments of a course to retrieve any files that might be attached there.
Can anyone help me with a guide or explain what I need to do to retrieve assignment attached files? (The files uploaded by teachers only, that serve as assignment descriptions) Thank you!
Moodle version: 3.4
API user role permissions/capabilities allowed:
Capability | Permission | Risks | |||||
---|---|---|---|---|---|---|---|
Course | |||||||
View courses without participation moodle/course:view | Allow Default: Not set | ||||||
Web service: REST protocol | |||||||
Use REST protocol webservice/rest:use | Allow Default: Not set | ||||||
Activity: Assignment | |||||||
View assignment mod/assign:view | Allow Default: Not set | ||||||
Activity: Assignment 2.2 (Disabled) | |||||||
View assignment mod/assignment:view | Allow Default: Not set |