• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9
    • 2.8.5
    • Web Services
    • MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-49498-master
    • Hide

      Note: Version number is bumped because a new web service is added into the Mobile app service.

      1. Create a new course
      2. Access to the course participants page via the navigation block
      3. As a teacher or admin, check that in the Report / Logs you see the "User list viewed" actions for the current user.
      4. As admin, enable "Mobile services": Plugins ► Web Services ► External services
      5. Create a Token for the user (not admin):
        • 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, courseid and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=4&wsfunction=core_user_view_user_list&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e'

      7. Confirm that
        • You can see new entries in the course log (User list viewed) for that course and the user. The origin for the new log entries is "ws"
        • If you change courseid to an non-existent course you got an error
        • If you change courseid to a course where you are not enrolled you got an error
      Show
      Note: Version number is bumped because a new web service is added into the Mobile app service. Create a new course Access to the course participants page via the navigation block As a teacher or admin, check that in the Report / Logs you see the "User list viewed" actions for the current user. As admin, enable "Mobile services": Plugins ► Web Services ► External services Create a Token for the user (not admin): 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, courseid and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=4&wsfunction=core_user_view_user_list&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e' Confirm that You can see new entries in the course log (User list viewed) for that course and the user. The origin for the new log entries is "ws" If you change courseid to an non-existent course you got an error If you change courseid to a course where you are not enrolled you got an error

      Trigger the user_list_viewed event when a user view a list of users (this web service will be initially used by the mobile app so information can be logged in the Moodle side when a user see that section in the app).

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Damyon Wiese Damyon Wiese
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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