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

Add JSON as web service protocol

    XMLWordPrintable

Details

    • MOODLE_20_STABLE
    • git@github.com:jason-platts/moodle.git
    • wip_MDL-21341_MASTER
    • Moderate
    • Hide

      1. From admin/settings.php?section=webservicesoverview setup web services either as one system or users accessing a web service.
      2. Enable JSON protocol (from step 2 on this screen)
      3. Ensure function 'moodle_user_get_users_by_id' is available to the web service user (step 6 or 4).
      3. Access the web service test client: admin/webservice/testclient.php
      4. Select json protocol and function 'moodle_user_get_users_by_id'.
      5. Select the authentication method that matches the web service setup undertaken in step 1.
      6.Submit the form and on the following screen enter either the token or login/password for the web service user. Enter some valid user ids for the web service to return.
      7. If successful copy and paste the resulting JSON (minus surrounding single quotes).
      8. Test JSON for validity e.g. at http://jsonlint.com/

      Show
      1. From admin/settings.php?section=webservicesoverview setup web services either as one system or users accessing a web service. 2. Enable JSON protocol (from step 2 on this screen) 3. Ensure function 'moodle_user_get_users_by_id' is available to the web service user (step 6 or 4). 3. Access the web service test client: admin/webservice/testclient.php 4. Select json protocol and function 'moodle_user_get_users_by_id'. 5. Select the authentication method that matches the web service setup undertaken in step 1. 6.Submit the form and on the following screen enter either the token or login/password for the web service user. Enter some valid user ids for the web service to return. 7. If successful copy and paste the resulting JSON (minus surrounding single quotes). 8. Test JSON for validity e.g. at http://jsonlint.com/

    Description

      JSON is said faster than xmlrpc/xml, it probably would be a good idea to support it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerome Jérôme Mouneyrac
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: