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

New Web Service mod_feedback_get_finished_responses

    XMLWordPrintable

    Details

    • Testing Instructions:
      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)
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58230-master

      Description

      Return the list of finished responses

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jleyva Juan Leyva
                Reporter:
                jleyva Juan Leyva
                Peer reviewer:
                Pau Ferrer
                Integrator:
                David Monllaó
                Tester:
                Ankit Agarwal
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17