
To map your operation to a different HTTP method, use the WebInvokeAttribute instead. When /rss/file.php receives a request for an RSS feed it will look for a function within the blog/module to produce the feed.All service operations that apply the WebGetAttribute attribute are mapped to HTTP GET requests. The cache file naming convention allows all cached feeds for a particular forum instance, for example, to be removed. The user id should be supplied as a parameter to the query but not appear within the query itself.

The SQL should NOT contain the user id as this would cause on file to be created for each user. For example the SQL for the forum RSS feeds may contain groups conditions so that one file will be created in the cache for each group. The SQL should contain anything that leads to different users seeing different data in the feed. The filename format is the module instance id, an underscore then the hash of the SQL used to retrieve the data for the feed. RSS feeds are cached at $CFG->dataroot/rss/$modname/$filename.xmlįor example "moodledata/moodle/rss/forum/1_515fc92d53039eabee0a44301ca23531.xml" To reference a specific tag the URL structure is rss/file.php/%contextid%/%usertoken%/blog/%moduleinstanceid%/%groupid|courseid|userid%/%tagid%/rss.xmlįor example: /rss/file.php/24/2001080bd2a70b148338e61ab60dc65e/blog/2/12/4/rss.xml The URL structure is rss/file.php/%contextid%/%usertoken%/blog/%moduleinstanceid%/%groupid|courseid|userid%/rss.xmlįor example: /rss/file.php/24/2001080bd2a70b148338e61ab60dc65e/blog/2/12/rss.xml Note that any number of parameters can be supplied. The URL structure is rss/file.php/%contextid%/%usertoken%/%modulename%/%moduleinstanceid%/rss.xmlįor example: /rss/file.php/18/2001080bd2a70b148338e61ab60dc65e/forum/1/rss.xml The structure of the RSS feed URLs varies depending on whether the RSS is being provided by a blog or activity module. When an RSS feed is detected most browsers will insert an RSS icon in the browser address bar. This is done by inserting a header into the html document. The browser should aut-detect the RSS feed.The module can present an onscreen link to the RSS feed.RSS feeds are detectable by the user in two ways: MDL-22204 Secure RSS feeds using web tokens MDL-22413 Write documentation describing Moodle 2.0 RSS feeds

The RSS system must provide the capacity to present secure and user specific feeds to the user. Other areas of Moodle may make RSS feeds available in future. RSS feeds are currently available within the forum, data and glossary activities.


Ensure RSS feeds contain data that is as up to date as possible.Generate RSS feeds only when they are required.Present users with different versions of the same feed depending on their permissions.
