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

REST simpleserver does not accept the moodlewsrestformat parameter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 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.

    Description

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

      Attachments

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              hal9000 Sebastian Vassiliou
              Rossiani Wijaya Rossiani Wijaya
              Sam Hemelryk Sam Hemelryk
              Gerard Caulfield Gerard Caulfield
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Mar/12