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

REST simpleserver does not accept the moodlewsrestformat parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.2
    • Component/s: Web Services
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:

      Description

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12