restws 7.x-2.0-alpha5
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.0-alpha5.tar.gz | 31.7 KB | bfb7d194f59c94024c0f45d9fb1ebc72 |
| restws-7.x-2.0-alpha5.zip | 41.26 KB | c799251fe51599e341f03a5bee58fbbc |
Release notes
Consumers should not issue GET requests to /@entity_type/@id with HTTP Accept headers set to the expected format aynmore, since that could interfere with Drupal's page cache. HTML might be returned from that URLs that could break clients.
Example of URLs that are deprecated and should not be used anymore:
GET /node/1
Accept: application/jsonGET /user/1
Accept: application/xmlExamples of URLs that should be used instead:
GET /node/1.jsonGET /user/1.xmlThis release also contains a minor API change to the RestWSFormatInterface. If you implement a custom format class you need to add the public getName() method that simply returns the format machine name (json, xml, rdf, etc.).
Changes since 7.x-2.0-alpha4:
- Fixed page caching problem.
- #1946042 by greggles: Improved description of basic auth submodule.
restws 7.x-1.3
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.3.tar.gz | 19.4 KB | 5fc1551e09468d47e69fbf96852d1459 |
| restws-7.x-1.3.zip | 23.54 KB | 3956857e715da366963284c4a4bcd170 |
Release notes
Consumers should not issue GET requests to /@entity_type/@id with HTTP Accept headers set to the expected format aynmore, since that could interfere with Drupal's page cache. HTML might be returned from that URLs that could break clients.
Example of URLs that are deprecated and should not be used anymore:
GET /node/1
Accept: application/jsonGET /user/1
Accept: application/xmlExamples of URLs that should be used instead:
GET /node/1.jsonGET /user/1.xmlThis release also contains a minor API change to the RestWSFormatInterface. If you implement a custom format class you need to add the public getName() method that simply returns the format machine name (json, xml, rdf, etc.).
restws 7.x-2.0-alpha4
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.0-alpha4.tar.gz | 31.1 KB | 10f192640bae085ce9493787d4cf4f3a |
| restws-7.x-2.0-alpha4.zip | 40.38 KB | 077b3ad4693efaba92e8d236d67a16a9 |
Release notes
See also SA-CONTRIB-2013-003
This release comes with a major API change for clients. A security token has been introduced to guard against CSRF attacks. This change only affects you if
* your client uses cookie-based user authentication and
* your client performs write operations (POST, PUT or DELETE).
Clients that only read data (GET requests) still work the same. Clients that use other authentication mechanisms (like restws_basic_auth) remain unaffected as well.
In order to still write to your Drupal installation those cookie-using clients need to add an X-CSRF-Token header to their HTTP requests. The token can be retrieved from http://example.com/restws/session/token (replace the URL with your site accordingly). You can also generate the token yourself and deliver it with JavaScript settings on the HTML page if you are calling back to the web service interface from JavaScript. That avoids an additional HTTP request just to get the token:
<?php
drupal_add_js(array('restws_csrf_token' => drupal_get_token('restws')), 'setting');
?>An example for the usage of the X-CSRF-Token header with PHP's cURL can be found in the Simpletests.
Changes since 7.x-2.0-alpha3:
Read morerestws 7.x-1.2
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.2.tar.gz | 18.74 KB | abbd6b95507faeb7cab80c8eae0e31f5 |
| restws-7.x-1.2.zip | 22.66 KB | afd9e11c1c2dd376def2e503b92a1ffc |
Release notes
See also SA-CONTRIB-2013-003
This release comes with a major API change for clients. A security token has been introduced to guard against CSRF attacks. This change only affects you if
* your client uses cookie-based user authentication and
* your client performs write operations (POST, PUT or DELETE).
Clients that only read data (GET requests) still work the same. Clients that use other authentication mechanisms (like restws_basic_auth) remain unaffected as well.
In order to still write to your Drupal installation those cookie-using clients need to add an X-CSRF-Token header to their HTTP requests. The token can be retrieved from http://example.com/restws/session/token (replace the URL with your site accordingly). You can also generate the token yourself and deliver it with JavaScript settings on the HTML page if you are calling back to the web service interface from JavaScript. That avoids an additional HTTP request just to get the token:
<?php
drupal_add_js(array('restws_csrf_token' => drupal_get_token('restws')), 'setting');
?>An example for the usage of the X-CSRF-Token header with PHP's cURL can be found in the Simpletests.
restws 7.x-2.0-alpha3
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.0-alpha3.tar.gz | 30.21 KB | 0ca0a6cc7b1ff2ee3ef2d3b7b49cd5d0 |
| restws-7.x-2.0-alpha3.zip | 39.38 KB | 2caf296e6a508c69def63d2cbdfecc50 |
Release notes
Fixes a CSRF security issue. SA-CONTRIB-2012-162 - RESTful Web Services - Cross site request forgery (CSRF)
API change: The format extension in URL paths only works for GET requests now.
Example that still works:
GET http://example.com/node/123.json
GET http://example.com/node.jsonExamples that do not work anymore:
POST http://example.com/node.json
PUT http://example.com/node/123.json
DELETE http://example.com/node/123.jsonYou have to set the content type header instead, example for JSON:
Content-Type: application/jsonrestws 7.x-1.1
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.1.tar.gz | 18.12 KB | b52a4bad46c8ff183ab595d2859de330 |
| restws-7.x-1.1.zip | 21.96 KB | 89b54736cbcaa718423d601c567e3572 |
Release notes
Fixes a CSRF security issue. SA-CONTRIB-2012-162 - RESTful Web Services - Cross site request forgery (CSRF)
API change: The format extension in URL paths only works for GET requests now.
Example that still works:
GET http://example.com/node/123.jsonExamples that do not work anymore:
POST http://example.com/node.json
PUT http://example.com/node/123.json
DELETE http://example.com/node/123.jsonYou have to set the content type header instead, example for JSON:
Content-Type: application/jsonrestws 7.x-2.0-alpha2
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.0-alpha2.tar.gz | 30.18 KB | 08a981dbd377b35dcd7c71bfa62e896d |
| restws-7.x-2.0-alpha2.zip | 39.35 KB | b71b30d2c59c99f2cc95d78947f9a310 |
Release notes
This release introduces querying support for entities. You can retrieve a list of entities now and even filter it with the power of EntityFieldQuery. See the Querying and Meta controls section in the README.txt. Big thanks to sepgil for implementing all this during Google Summer of Code!
Changes since 7.x-2.0-alpha1:
Read morerestws 7.x-1.0
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.0.tar.gz | 18.1 KB | 45349957346657e826a35c7146a7873f |
| restws-7.x-1.0.zip | 21.92 KB | 91e7afa9fdbb0d9f3ba01859e290e4a0 |
Release notes
Changes since 7.x-1.0-beta2:
- #1506190 by sepgil: Fixed Don't allow to create Entities without Bundles.
restws 7.x-2.0-alpha1
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.0-alpha1.tar.gz | 18.19 KB | 0e786de104329ac1a5d35f36d70fc99e |
| restws-7.x-2.0-alpha1.zip | 22.04 KB | c6e42e7c69286daa11b15f89b1bfd119 |
Release notes
First release of the new 2.x branch. The new branch was created because of an important API change: the HTTP request methods for create and update operations have been swapped (see #1472634: HTTP PUT / POST Reversed for CRUD CREATE / UPDATE Operations). The 7.x-1.x branch is now frozen and will get security fixes only. If you want to start a new project with RESTWS use the 2.x branch. If you are running 1.x versions of RESTWS do not upgrade to 2.x without prior testing/adoption of your clients.
This release also contains the first improvements achieved from our GSoC project.
Changes since 7.x-1.0-beta2:
restws 7.x-2.x-dev
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-2.x-dev.tar.gz | 31.7 KB | 818e590a9dbc5e7201aa443f5774d3fe |
| restws-7.x-2.x-dev.zip | 41.27 KB | ec989c10785b15f9f7a7aec8756296db |
Release notes
Nightly development snapshot.
restws 7.x-1.0-beta2
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.0-beta2.tar.gz | 17.88 KB | 0d2dec7fc2e527ebc17021aba5ae3805 |
| restws-7.x-1.0-beta2.zip | 21.68 KB | 2bbe4d1dd5896670cd6a8a30080060d3 |
Release notes
Very minor maintenance release. This is the last release before our Google Summer of Code changes will be started.
Changes since 7.x-1.0-beta1:
- #1343816: Fixed altering of menu paths and made sure that RESTWS runs last on hook_menu_alter().
- HTTP_ACCEPT might not be set in $_SERVER, added checks for that.
- Added a user name filter to restws_basic_auth to avoid unecessary login attempts for human users on HTTP auth protected sites.
- Fixed the update function message.
- Fixed some code style errors reported by Drupal Code Sniffer.
- #1242270 by garethsprice, Amitaibu: Fixed content type header detection for POST/PUT requests.
restws 7.x-1.0-beta1
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.0-beta1.tar.gz | 17.12 KB | 252d83f903f87a97f7742e4108f8d4c9 |
| restws-7.x-1.0-beta1.zip | 20.31 KB | 402aa6cefb608a784b77b6006e723566 |
Release notes
First beta release of RESTWS. See README.txt for usage instructions. Please report any problems in the issue queue.
restws 7.x-1.x-dev
| Download | Size | md5 hash |
|---|---|---|
| restws-7.x-1.x-dev.tar.gz | 19.41 KB | 5115021cf701f537293321b1aef61384 |
| restws-7.x-1.x-dev.zip | 23.55 KB | 531e71cc857bffbb76597f5f730a056c |
Release notes
Development snapshot of most recent work.