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

REST simpleserver does not accept the moodlewsrestformat parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.2
    • 2.2
    • Web Services
    • Any
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • Hide

      Call the simpleserver.php server instead of the server.php.
      Use the REST client demo and call simpleserver.php instead server.php. Set wsusername/wspassword parameters instead of the token parameter. That should be the only things to change in your REST demo client (in the condition that it was already preset and working). Also the user must have 'webservice' authentication method set. Note that you can not log into Moodle when this authentication method is set.

      Show
      Call the simpleserver.php server instead of the server.php. Use the REST client demo and call simpleserver.php instead server.php. Set wsusername/wspassword parameters instead of the token parameter. That should be the only things to change in your REST demo client (in the condition that it was already preset and working). Also the user must have 'webservice' authentication method set. Note that you can not log into Moodle when this authentication method is set.

      server.php accepts the new moodlewsrestformat parameter to allow json output, however simpleserver.php is lacking that.

            jerome Jérôme Mouneyrac
            hal9000 Sebastian Vassiliou
            Rossiani Wijaya Rossiani Wijaya
            Sam Hemelryk Sam Hemelryk
            Gerard Caulfield Gerard Caulfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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