Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67071

Create WebService to get all the core H5P libraries for the site to allow H5P working offline in the Moodle Apps

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 3.8
    • H5P
    • MOODLE_38_STABLE

      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.

            Unassigned Unassigned
            cescobedo Carlos Escobedo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.