Merge branch 'MDL-49360-28' of git://github.com/lameze/moodle into MOODLE_28_STABLE
[moodle.git] / webservice / upgrade.txt
blob32af7f4d84ef32eb610ea8ec415863d729bb3315
1 This files describes API changes in /webservice/*
2 information provided here is intended especially for developers.
4 This information is intended for authors of webservices, not people writing webservice clients.
6 === 2.7 ===
8 * All webservice server.php and simpleserver.php scripts must define('WS_SERVER', true)
9   before including config.php file.
12 === 2.6 ===
14 * webservice/upload.php
15 Accepts 2 new post parameters to allow uploading of files to a users draft area.
16  - filearea should be either 'private' (default) or 'draft'
17  - itemid unused if the filearea is 'private', for 'draft' it can be the id of a previously
18    created draft area - or 0 which will generate a new draft area for the files.