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

Add the core_course_get_categories external function to the mobile service

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2
    • Fix Version/s: 3.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. Upgrade the site
      2. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      3. Create a Token for an authenticated user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      4. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data '&wsfunction=core_course_get_categories&wstoken=ffbe3a3002f235bf9d01fd9369e10b66'

      5. Check that you receive a list with all the categories visible for the user
      Show
      Upgrade the site As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for an authenticated user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data '&wsfunction=core_course_get_categories&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' Check that you receive a list with all the categories visible for the user
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-54856-master

      Description

      We need that function for solving MOBILE-1636

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Jake Dallimore
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Dec/16