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

New Web Service mod_feedback_get_analysis

    XMLWordPrintable

Details

    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-57820-master
    • Hide
      1. Create or use an existing feedback.
      2. Use two different students account to complete the feedback.
      3. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for one teacher user in the course where the feedback is
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the teacher user .
        • You need to replace the wstoken, feedbackid (the feedback instance value) and the URL of your moodle instance.

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'feedbackid=12&wsfunction=mod_feedback_get_analysis&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool"

      6. Confirm that
        • You receive the correct number of users who completed the feedback in the completedcount field, the itemscount field list the number of items in the feedback.
        • For each item, you have a data field where all the user responses are recorded
      Show
      Create or use an existing feedback. Use two different students account to complete the feedback. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one teacher user in the course where the feedback is Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the teacher user . You need to replace the wstoken, feedbackid (the feedback instance value) and the URL of your moodle instance. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'feedbackid=12&wsfunction=mod_feedback_get_analysis&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool" Confirm that You receive the correct number of users who completed the feedback in the completedcount field, the itemscount field list the number of items in the feedback. For each item, you have a data field where all the user responses are recorded

    Description

      Return the feedback responses analysis

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jun Pataleta Jun Pataleta
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17