RESTWS Alias

Component ID

2470461

Component name

RESTWS Alias

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module allows RESTful Webservices (using restws module) to be accessible through url aliases in addition to just the direct path.

For example: If you have a node with direct path "node/1" and url alias "page/awesomepage", the restws module allows you to access json representation of the node through "node/1.json" and not "page/awesomepage.json".

Read more discussion here: https://www.drupal.org/node/1311788

This module allows you to access the node through "page/awesomepage.json" by adding new url aliases such as:
page/awesomepage.json ==> node/1.json
page/awesomepage.xml ==> node/1.xml
page/awesomepage.rdf ==> node/1.rdf

Please Note:
To generate these aliases for the nodes already existing in the system, please bulk update the aliases by going to:
Configuration -> URL aliases. Then Delete and Bulk update in succession.

Project Demo

http://simplytest.me/project/2470461/7.x-1.0-alpha1
Just enable the module (if not already enabled), create a new node and enter url alias in the "url path settings" on the edit module page.
Then, just add ".json" at the end of the url.

Case Study

  1. Bioconnector | University of Virginia - https://www.cvillecouncil.us/content/path-aliased-restful-services-restws-restws-alias