Adyax_Test
Categories
Component ID
2747855
Component name
Adyax_Test
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Adyax_Test module implements simple REST Service.
Task
Without using any contributed modules, create custom module that implements simple REST Service.
Web service URL should be: /adyax_ws
It should support next methods:
- GET - returns JSON with data from node. NID provided in URL request, for example: /adyax_ws?nid=123;
- POST - retrieve JSON data with title, type and body and create new node based on provided data;
- PUT - retrieve JSON data and update node by NID provided in URL or JSON (up to you);
- DELETE - deletes node by provided NID
Automated review:
http://pareview.sh/pareview/httpsgitdrupalorgsandboxfortis2747855git
Installation
git clone --branch 7.x-1.x fortis@git.drupal.org:sandbox/fortis/2747855.git adyax_test
cd adyax_test
Then place and enable just like any other module.
REST Service is accessible for users with access adyax_test resource permission.
