Saturday, December 3, 2011

Rest services guide for Drupal 7



You will need to download the latest version of SYPC and Mimeparse:
wget http://spyc.googlecode.com/svn/trunk/spyc.php -O  servers/rest_server/lib/spyc.php

Once downloaded you need to add spyc.php to the rest_server/lib folder which exists under
the location you have installed services in.

LogIn
POST http://<My drupal website>/<Path to endpoint>/user/login
Request Payload:

{

    "username": "<username>",
    "password": "<password>"

}



LogOut
POST http://<My drupal website>/<Path to endpoint>/user/logout
Request Payload:

{
    "username": "<username>",
    "password": "<password>"
}



No comments: