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

New Web Service mod_feedback_get_non_respondents

    XMLWordPrintable

Details

    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-57822-master
    • Hide
      1. Create or use an existing feedback with at least two questions in one unique page. It is recommend to use numeric, textfield or textarea questions.
      2. Add several students to the course.
      3. As one of the students in the course, complete the feedback.
      4. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      5. Create a Token for one user with the teacher role in the course.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      6. Next, you can do a CURL REST call simulating a WS client with the student 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=16&wsfunction=mod_feedback_get_non_respondents&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true' | python -m "json.tool"

      7. Confirm that
        • You receive a list containing the ids of the users who didn't complete the feedback.
      8. You can optionally test the pagination and sorting, via the parameters: page, perpage, and sort (allowed values are firstname, lastname or lastaccess)
      Show
      Create or use an existing feedback with at least two questions in one unique page. It is recommend to use numeric, textfield or textarea questions. Add several students to the course. As one of the students in the course, complete the feedback. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token for one user with the teacher role in the course. Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the student 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=16&wsfunction=mod_feedback_get_non_respondents&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true' | python -m "json.tool" Confirm that You receive a list containing the ids of the users who didn't complete the feedback. You can optionally test the pagination and sorting, via the parameters: page, perpage, and sort (allowed values are firstname, lastname or lastaccess)

    Description

      Return a list of the people who actually didn’t respond

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              David Monllaó David Monllaó
              Andrew Lyons Andrew Lyons
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17