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

New Web Service mod_feedback_get_finished_responses

    XMLWordPrintable

Details

    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-58230-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. As one student in the course, complete the feedback.
      3. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      4. Create a Token for the student user you used to reply the feedback.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. 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=14&wsfunction=mod_feedback_get_finished_responses&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool"

      6. Confirm that
        • You receive the list of responses of all the questions you replied. You should check that the field value contains the response you choose (in some cases, like multichoice questions, it will be and id)
      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. As one student in the course, complete the feedback. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token for the student user you used to reply the feedback. 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=14&wsfunction=mod_feedback_get_finished_responses&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool" Confirm that You receive the list of responses of all the questions you replied. You should check that the field value contains the response you choose (in some cases, like multichoice questions, it will be and id)

    Description

      Return the list of finished responses

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              David Monllaó David Monllaó
              Ankit Agarwal Ankit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17