REST API

Here you can find all the resources for a typical Drupal site running Services 3. All this definitions should work on any Drupal 6 or 7 site running Services 3.x, you only need to change the path.

Comment
Resource Description
GET comment

Gets a comment object given it's comment id

POST comment

Creates a new comment associated with a node

File
Resource Description
POST file

Create a file

GET file index

Get all the files in the site

GET file

Get a file

Flag
Resource Description
POST is_flagged

Check if a node, user or comment is flagged or not. The response will be TRUE or FALSE.

POST flag

Flag a node, comment or user

Node
Resource Description
GET node

Returns a node.

POST node

Create a node

GET node comments

Get all the comments associated with a given node

Search
Resource Description
GET search_node

Search for a keyword in a node

GET search_user

Search for users

User
Resource Description
GET user

Gets a user object given the user uid

POST login

Login into the site using the username and password of a user. Once logged in the response will be the user logged in object and a session_id and a session name.

POST logout

Terminates the session for a user. There is no response for this resource.

POST user

Create a user

POST user register

Create a user account. This is very similar to user create.

Views
Resource Description
GET views

Gets a view