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

New Web Service mod_feedback_launch_feedback

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • Feedback, Web Services
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-57816-master
    • Hide
      1. Create a mod_feedback activity with at least 2 questions in two separate pages.
      2. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      3. Create a Token for one student user in the course where the feedback is
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      4. 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=15&wsfunction=mod_feedback_launch_feedback&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool"

      5. Confirm that
        • The gopage is 0
      6. Now, in the Moodle Web interface access to the feedback and reply the questions in the first page, and click Nex page
      7. Now, execute the same curl request and check now that the gopage is 1
      Show
      Create a mod_feedback activity with at least 2 questions in two separate pages. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one student 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 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=15&wsfunction=mod_feedback_launch_feedback&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool" Confirm that The gopage is 0 Now, in the Moodle Web interface access to the feedback and reply the questions in the first page, and click Nex page Now, execute the same curl request and check now that the gopage is 1

    Description

      This WS should be used before starting or when continuing a feedback.

      The main goal of this WS is to return the last page the user completed in a feedback, so we can redirect them via the mod_feedback_get_page_items web service function

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jake Dallimore Jake Dallimore
              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