If Moodle ends up implementing a system to update the core h5p libraries (lib/h5p folder) without having to upgrade Moodle, then we need a way to do the same for the app. The initial idea was to include those libraries in the app itself, but now I guess it'd be better to download them from the site, that way we can be sure that the app has the same versions as the Moodle site.
In this case, we'll need a WS that does the following:
- It shouldn't receive any parameter.
- It should return all the core h5p libraries for the site. One option is to return only the ones that are relevant to the app (no php or txt files), but maybe you want to return them all because other WS clients could want them (in this case the app itself would decide which ones need to be downloaded).
- For each file, the WS should return the URL, size and timemodified. You can check the class external_files to see the data that's usually returned for files in WebServices.
- has to be done after
-
MDL-67063 Add a mechanism to support multi H5P core_api versions
- Closed