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

Allow downloading of report builder using web service api keys

XMLWordPrintable

      We've done various integrations with Totara report builder, custom plugins and recently with report_customsql to allow an export of these types of reports using a web service token.

      It would be awesome if we could do the same with report builder.

      So proposing to remove this endpoint

      /reportbuilder/download.php?download=csv&id=4

      and instead convert it to a normal plugin file url

      /pluginfile.php/1/core_reportbuilder/download?format=csv&id=4&foo=bar&foo2=bar2

      The UI would not change it would just go to the new url and mostly it's all just moving code around with no functional change.

      Then we now have the option for free of allowing an arbitrary report via web services:

      /webservice/pluginfile.php/1/core_reportbuilder/download?format=csv&id=4&foo=bar&foo2=bar2&token=MYWEBSERVICETOKEN

      If the report has any filters then these can also be tacked onto the url as extra query params, eg foo=bar above.

       

            Unassigned Unassigned
            brendanheywood Brendan Heywood
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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