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

New Web Service mod_feedback_get_current_completed_tmp

XMLWordPrintable

    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • MDL-57814-master
    • Hide
      1. Create a mod_feedback activity with at least two question in two separate pages.
      2. As student access to the activity and answer only the questions in the first page.
      3. As admin, enable "Mobile services": Plugins ► Web Services ►  Mobile
      4. Create a Token for the student user you used in 2
        • 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
          {panel}
          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json'  --data 'feedbackid=7&wsfunction=mod_feedback_get_current_completed_tmp&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool"
          {panel}
      6. Confirm that
        • You receive a data structure that match the feedback_completedtmp database entry for the user and feedback you attempted in step 2.
      Show
      Create a mod_feedback activity with at least two question in two separate pages. As student access to the activity and answer only the questions in the first page. As admin, enable "Mobile services": Plugins ► Web Services ►  Mobile Create a Token for the student user you used in 2 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 {panel} curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json'  --data 'feedbackid=7&wsfunction=mod_feedback_get_current_completed_tmp&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool" {panel} Confirm that You receive a data structure that match the feedback_completedtmp database entry for the user and feedback you attempted in step 2.

      Return the current uncompleted feedback for the user

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.