Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
=== 4.5 Onwards ===
2
 
3
This file has been replaced by UPGRADING.md. See MDL-81125 for further information.
4
 
5
===
1 efrain 6
This files describes API changes in /webservice/*
7
information provided here is intended especially for developers.
8
 
9
This information is intended for authors of webservices, not people writing webservice clients.
10
 
11
=== 4.2 ===
12
 
13
* External function core_webservice_external::get_site_info() does not throw exceptions for missing components anymore.
14
 
15
=== 4.1 ===
16
 
17
* The XMLRPC webservice (protocol) has been completely removed. It's now available in the plugins directory.
18
 
19
=== 4.0 ===
20
 
21
* User access related exceptions have been changed to use the moodle_exception class instead of the
22
  generic webservice_access_exception, the main reason for this change is to allow clients to
23
  implement some code logic against an access error.
24
 
25
=== 3.11 ===
26
 
27
* The method webservice::get_user_capabilities() is deprecated now without a replacement. It has been used
28
  internally only to populate the list of missing capabilities. That functionality has been improved so that
29
  it no longer needs this standalone method.
30
 
31
=== 3.10 ===
32
 
33
* The class externallib_advanced_testcase, used in unit tests, has a new function called "configure_filters" to easily configure filters for external functions testing.
34
 
35
=== 3.8 ===
36
 
37
* Ajax calls can now specify a cache key. This allows for better caching capabilities on servers. If a cache key
38
  is passed and the web service call does not require the user to be logged in we will attempt to use GET for the
39
  request. This allows for things like proxy caching on URLs. The cache key must be changed if we do not want to
40
  retrieve what has been cached and want to perform the request again.
41
* External function core_webservice_external::get_site_info() now returns the user private access key "userprivateaccesskey".
42
  This key could be used for fetching files via the tokenpluginfile.php script instead webservice/pluginfile.php to avoid
43
  multiple GET requests that include the WS token as a visible parameter.
44
* External function core_webservice_external::get_site_info() now returns a new field "userissiteadmin" indicating if
45
  the current user is a site administrator.
46
 
47
=== 3.7 ===
48
 
49
* External function core_webservice_external::get_site_info() now returns the current site theme (for the user).
50
 
51
=== 3.4 ===
52
 
53
* External function core_webservice_external::get_site_info() now returns the calendar type used in the site and
54
  by the user in the sitecalendartype and usercalendartype fields.
55
* Implementations of forms for test clients now must follow naming schema: WSFUNCTIONNAME_testclient_form
56
  The old naming schema WSFUNCTIONNAME_form caused conflicts with existing classes.
57
  New class webservice_test_client_base_form can be used as a base class for such forms.
58
 
59
=== 3.2 ===
60
 
61
* webservice->get_external_functions now returns the external function list ordered by name ASC.
62
* The filearea optional parameter has been removed from webservice/upload.php.
63
  Since Moodle 3.1 all the uploads go to the draft area.
64
* external_format_text() function: component, filearea and itemid are now optional parameters.
65
  In some contexts those parameteres are not necessary because is not required to do a file rewrite via
66
  file_rewrite_pluginfile_urls.
67
* External function get_site_info now returns the site course ID. This new field is marked as VALUE_OPTIONAL for backwards compatibility.
68
* A new field "privatetoken" has been added to the "external_tokens" table.
69
  This private token must be safely stored (or not stored at all) by the client because it will be used in places where a request
70
  must be double-checked.
71
  This token should not be passed via GET paramaters and it must be transmitted only via https.
72
  This token is generated only in login/token.php after the user credential has been confirmed. It can't be generated by admins.
73
 
74
=== 3.1 ===
75
 
76
* The xmlrpc backend has changed, Zend_XmlRpc has been dropped and there might be slight differences in
77
  responses. Fault strings that were generated by Zend_XmlRpc_XXX_Exception exceptions (i.e. 'Method
78
  "[methodname]" does not exist') are no longer used which may display a different error message depending
79
  on the string returned by the getMessage() method of the thrown exception.
80
* The xmlrpc server is no longer enabled when the Mobile service is activated.
81
* Support for the AMF protocol has been dropped completely.
82
* As Zend Framework has been removed, the webservice_zend_* classes have also been removed.
83
* Zend_SOAP has been dropped. The native PHP SoapClient and SoapServer classes are now being used instead. WSDL is now
84
  generated by the new class webservice_soap_wsdl. For fault strings, a different error message might be shown depending
85
  on the string returned by the getMessage() method of the thrown exception.
86
* With Zend_SOAP dropped, moodle_zend_soap_server is now also deprecated.
87
* As mentioned in the 2.9 notes, deprecated web service functions have now been removed.
88
* Since our new XML-RPC server implementation does not support introspection, it is critical that all clients send
89
  parameters in the correct order.
90
* File uploading to the user private file area via the webservice/upload.php script is not supported anymore.
91
  Only uploads to the draft area are allowed.
92
 
93
=== 3.0 ===
94
 
95
* WS protocols webservice/myprotocol:use capabilities were defined with a high riskbitmask value
96
  when the fact that a user has that capability does not imply any risk, but other capabilities
97
  that the user may have do. If your ws protocol does not imply and risk by itself, you can remove the
98
  riskbitmask from your $capabilities array in webservice/myprotocol/db/access.php
99
* New function for formatting external strings: external_format_strings, it should be used as a replacement of format_string in
100
  external functions.
101
  All the occurrences of format_strings have been replaced with this new function.
102
 
103
=== 2.9 ===
104
 
105
* The deprecated functions can not be added to services anymore and
106
  a debugging message for developers is triggered when viewing an existing
107
  services using them. It is recommended to replace calls to the deprecated
108
  functions for calls to the proposed replacements. If you are using a moodle
109
  mobile app fork, it is recommended to update your customisations on top of
110
  the latest moodle mobile app version.
111
 
112
  The web services functions that will be finally deprecated in the next
113
  moodle version are:
114
    - moodle_course_create_courses
115
    - moodle_course_get_courses
116
    - moodle_enrol_get_enrolled_users
117
    - moodle_enrol_get_users_courses
118
    - moodle_enrol_manual_enrol_users
119
    - moodle_file_get_files
120
    - moodle_file_upload
121
    - moodle_group_add_groupmembers
122
    - moodle_group_create_groups
123
    - moodle_group_delete_groupmembers
124
    - moodle_group_delete_groups
125
    - moodle_group_get_course_groups
126
    - moodle_group_get_groupmembers
127
    - moodle_group_get_groups
128
    - moodle_message_send_instantmessages
129
    - moodle_notes_create_notes
130
    - moodle_role_assign
131
    - moodle_role_unassign
132
    - moodle_user_create_users
133
    - moodle_user_delete_users
134
    - moodle_user_get_course_participants_by_id
135
    - moodle_user_get_users_by_courseid
136
    - moodle_user_get_users_by_id
137
    - moodle_user_update_users
138
    - core_grade_get_definitions
139
    - core_user_get_users_by_id
140
    - moodle_webservice_get_siteinfo
141
 
142
* External function core_webservice_external::get_site_info now returns additional optional fields:
143
   - advancedfeatures: Array listing Moodle advanced features and if enabled or not.
144
   - usercanmanageownfiles: Whether the my files option is disabled.
145
   - userquota: User storage quota.
146
   - usermaxuploadfilesize: Files upload size limit.
147
 
148
 
149
=== 2.7 ===
150
 
151
* All webservice server.php and simpleserver.php scripts must define('WS_SERVER', true)
152
  before including config.php file.
153
 
154
 
155
=== 2.6 ===
156
 
157
* webservice/upload.php
158
Accepts 2 new post parameters to allow uploading of files to a users draft area.
159
 - filearea should be either 'private' (default) or 'draft'
160
 - itemid unused if the filearea is 'private', for 'draft' it can be the id of a previously
161
   created draft area - or 0 which will generate a new draft area for the files.
162