Problem/Motivation
Files linked to in the REST API are served from a (generally shared, not just REST) endpoint, that requires authentication using the same tokens but different parameter names as the REST endpoint. (NB it also requires the core_files_get_files permission).
Specific use case, add the ability to download files attached to courses in the course migration.
Proposed resolution & Tasks
Implement a method for accessing the files on the Moodle Service.
Add a process plugin for migrations.
User interface changes
None.
API changes
New method: MoodleRest::requestFile() and new migrate plugin moodle_file
Data model changes
None. Just document how to add field to courses, and give an example of the migration.
Issue fork moodle_rest-3249334
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #6
ekes commentedMerged.
Comment #7
ekes commented